From 45beafd3976aae1e235a503119524b7ab4908fb6 Mon Sep 17 00:00:00 2001 From: xbrancher Date: Sun, 20 Dec 2020 13:33:29 +0100 Subject: [PATCH 1/4] Bumping version to 11.0.1-snapshot.0 --- package-lock.json | 2 +- package.json | 2 +- projects/auth/package.json | 2 +- projects/core/package.json | 2 +- projects/permissions/package.json | 2 +- projects/roles/package.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index e438491..63c1478 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ngx-security", - "version": "11.0.0", + "version": "11.0.1-snapshot.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 510fd75..26edc92 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-security", - "version": "11.0.0", + "version": "11.0.1-snapshot.0", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/projects/auth/package.json b/projects/auth/package.json index dca1b79..95acea7 100755 --- a/projects/auth/package.json +++ b/projects/auth/package.json @@ -1,6 +1,6 @@ { "name": "@ngx-security/auth", - "version": "11.0.0", + "version": "11.0.1-snapshot.0", "license": "MIT", "author": "developer@xbranch.io", "description": "Angular Security Auth Module", diff --git a/projects/core/package.json b/projects/core/package.json index 87e9179..0a64d49 100755 --- a/projects/core/package.json +++ b/projects/core/package.json @@ -1,6 +1,6 @@ { "name": "@ngx-security/core", - "version": "11.0.0", + "version": "11.0.1-snapshot.0", "license": "MIT", "author": "User ", "description": "Angular Core Roles Module", diff --git a/projects/permissions/package.json b/projects/permissions/package.json index ba46a66..c5d7eea 100644 --- a/projects/permissions/package.json +++ b/projects/permissions/package.json @@ -1,6 +1,6 @@ { "name": "@ngx-security/permissions", - "version": "11.0.0", + "version": "11.0.1-snapshot.0", "license": "MIT", "author": "User ", "description": "Angular Security Permissions Module", diff --git a/projects/roles/package.json b/projects/roles/package.json index 795f7f1..2b365cb 100755 --- a/projects/roles/package.json +++ b/projects/roles/package.json @@ -1,6 +1,6 @@ { "name": "@ngx-security/roles", - "version": "11.0.0", + "version": "11.0.1-snapshot.0", "license": "MIT", "author": "User ", "description": "Angular Security Roles Module", From 9fec70f22ed10e9a49644385512407a076b05ec6 Mon Sep 17 00:00:00 2001 From: xbrancher Date: Sun, 20 Dec 2020 13:46:28 +0100 Subject: [PATCH 2/4] add: improvements --- projects/auth/package.json | 6 +++--- projects/core/package.json | 4 ++-- projects/permissions/package.json | 6 +++--- projects/roles/package.json | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/projects/auth/package.json b/projects/auth/package.json index 95acea7..2413209 100755 --- a/projects/auth/package.json +++ b/projects/auth/package.json @@ -22,8 +22,8 @@ "tslib": "^2.0.0" }, "peerDependencies": { - "@angular/common": "^10.0.0-rc.0 || ^10.0.0", - "@angular/core": "^10.0.0-rc.0 || ^10.0.0", - "@ngx-security/core": "^10.0.0-snapshot.0 || ^10.0.0" + "@angular/common": "^11.0.0-rc.0 || ^11.0.0", + "@angular/core": "^11.0.0-rc.0 || ^11.0.0", + "@ngx-security/core": "^11.0.0-snapshot.0 || ^11.0.0" } } diff --git a/projects/core/package.json b/projects/core/package.json index 0a64d49..185f963 100755 --- a/projects/core/package.json +++ b/projects/core/package.json @@ -17,7 +17,7 @@ "tslib": "^2.0.0" }, "peerDependencies": { - "@angular/common": "^10.0.0-rc.0 || ^10.0.0", - "@angular/core": "^10.0.0-rc.0 || ^10.0.0" + "@angular/common": "^11.0.0-rc.0 || ^11.0.0", + "@angular/core": "^11.0.0-rc.0 || ^11.0.0" } } diff --git a/projects/permissions/package.json b/projects/permissions/package.json index c5d7eea..b64201e 100644 --- a/projects/permissions/package.json +++ b/projects/permissions/package.json @@ -20,8 +20,8 @@ "tslib": "^2.0.0" }, "peerDependencies": { - "@angular/common": "^10.0.0-rc.0 || ^10.0.0", - "@angular/core": "^10.0.0-rc.0 || ^10.0.0", - "@ngx-security/core": "^10.0.0-snapshot.0 || ^10.0.0" + "@angular/common": "^11.0.0-rc.0 || ^11.0.0", + "@angular/core": "^11.0.0-rc.0 || ^11.0.0", + "@ngx-security/core": "^11.0.0-snapshot.0 || ^11.0.0" } } diff --git a/projects/roles/package.json b/projects/roles/package.json index 2b365cb..6dc64e9 100755 --- a/projects/roles/package.json +++ b/projects/roles/package.json @@ -19,8 +19,8 @@ "tslib": "^2.0.0" }, "peerDependencies": { - "@angular/common": "^10.0.0-rc.0 || ^10.0.0", - "@angular/core": "^10.0.0-rc.0 || ^10.0.0", - "@ngx-security/core": "^10.0.0-snapshot.0 || ^10.0.0" + "@angular/common": "^11.0.0-rc.0 || ^11.0.0", + "@angular/core": "^11.0.0-rc.0 || ^11.0.0", + "@ngx-security/core": "^11.0.0-snapshot.0 || ^11.0.0" } } From 5a0822229d118867a6c466cd4381f68aa182a130 Mon Sep 17 00:00:00 2001 From: xbrancher Date: Sun, 20 Dec 2020 13:46:48 +0100 Subject: [PATCH 3/4] Bumping version to 11.0.1 --- package-lock.json | 2 +- package.json | 2 +- projects/auth/package.json | 2 +- projects/core/package.json | 2 +- projects/permissions/package.json | 2 +- projects/roles/package.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 63c1478..7725176 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ngx-security", - "version": "11.0.1-snapshot.0", + "version": "11.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 26edc92..a4dbe6b 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngx-security", - "version": "11.0.1-snapshot.0", + "version": "11.0.1", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/projects/auth/package.json b/projects/auth/package.json index 2413209..0c8ed2f 100755 --- a/projects/auth/package.json +++ b/projects/auth/package.json @@ -1,6 +1,6 @@ { "name": "@ngx-security/auth", - "version": "11.0.1-snapshot.0", + "version": "11.0.1", "license": "MIT", "author": "developer@xbranch.io", "description": "Angular Security Auth Module", diff --git a/projects/core/package.json b/projects/core/package.json index 185f963..233a90c 100755 --- a/projects/core/package.json +++ b/projects/core/package.json @@ -1,6 +1,6 @@ { "name": "@ngx-security/core", - "version": "11.0.1-snapshot.0", + "version": "11.0.1", "license": "MIT", "author": "User ", "description": "Angular Core Roles Module", diff --git a/projects/permissions/package.json b/projects/permissions/package.json index b64201e..e18c943 100644 --- a/projects/permissions/package.json +++ b/projects/permissions/package.json @@ -1,6 +1,6 @@ { "name": "@ngx-security/permissions", - "version": "11.0.1-snapshot.0", + "version": "11.0.1", "license": "MIT", "author": "User ", "description": "Angular Security Permissions Module", diff --git a/projects/roles/package.json b/projects/roles/package.json index 6dc64e9..4d60551 100755 --- a/projects/roles/package.json +++ b/projects/roles/package.json @@ -1,6 +1,6 @@ { "name": "@ngx-security/roles", - "version": "11.0.1-snapshot.0", + "version": "11.0.1", "license": "MIT", "author": "User ", "description": "Angular Security Roles Module", From 4ed2504428c657cba97fedb181f702a5bbc9a1fd Mon Sep 17 00:00:00 2001 From: xbrancher Date: Sun, 20 Dec 2020 13:47:33 +0100 Subject: [PATCH 4/4] Update docs app --- docs/index.html | 2 +- ...213c18e5176afc50b.js => main-es2015.8be5508f7959de712f42.js} | 2 +- ...b7f213c18e5176afc50b.js => main-es5.8be5508f7959de712f42.js} | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename docs/{main-es2015.b7f213c18e5176afc50b.js => main-es2015.8be5508f7959de712f42.js} (99%) rename docs/{main-es5.b7f213c18e5176afc50b.js => main-es5.8be5508f7959de712f42.js} (99%) diff --git a/docs/index.html b/docs/index.html index 3e0bf28..85d8c19 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,5 +10,5 @@ - + diff --git a/docs/main-es2015.b7f213c18e5176afc50b.js b/docs/main-es2015.8be5508f7959de712f42.js similarity index 99% rename from docs/main-es2015.b7f213c18e5176afc50b.js rename to docs/main-es2015.8be5508f7959de712f42.js index 27204e1..f218ad4 100644 --- a/docs/main-es2015.b7f213c18e5176afc50b.js +++ b/docs/main-es2015.8be5508f7959de712f42.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"/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))}}},0:function(t,e,n){t.exports=n("zUnb")},"0EQZ":function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return u}),n.d(e,"c",function(){return c}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return a});var s=n("7+OI"),r=n("LRne"),i=n("XNiG"),o=n("fXoL");function a(t){return t&&"function"==typeof t.connect}class l extends class{}{constructor(t){super(),this._data=t}connect(){return Object(s.a)(this._data)?this._data:Object(r.a)(this._data)}disconnect(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,s,r){t.forEachOperation((t,i,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,i,o),o,e,s(t)),l=a?1:0):null==o?(this._detachAndCacheView(i,e),l=3):(a=this._moveView(i,o,e,s(t)),l=2),r&&r({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy()}_insertView(t,e,n,s){let r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=s);const i=t();return n.createEmbeddedView(i.templateRef,i.context,i.index)}_detachAndCacheView(t,e){const n=this._detachView(t,e);this._maybeCacheView(n,e)}_moveView(t,e,n,s){const r=n.get(t);return n.move(r,e),r.context.$implicit=s,r}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const h=new o.q("_ViewRepeater")},"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)}},"1G5W":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("zx2A");function r(t){return e=>e.lift(new i(t))}class i{constructor(t){this.notifier=t}call(t,e){const n=new o(t),r=Object(s.c)(this.notifier,new s.a(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class o extends s.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"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}}},"3/4O":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("d8a0");class r extends s.a{constructor(t){super(s.b.CLIENT_CREDENTIALS,t),this.tokenUrl=t&&t.tokenUrl||null,this.clientSecret=t&&t.clientSecret||null,this.useHttpBasicAuth=t&&t.useHttpBasicAuth||!0}}},"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 p}),n.d(e,"b",function(){return ct}),n.d(e,"c",function(){return _t}),n.d(e,"d",function(){return vt}),n.d(e,"e",function(){return Ct}),n.d(e,"f",function(){return l}),n.d(e,"g",function(){return N}),n.d(e,"h",function(){return P}),n.d(e,"i",function(){return F}),n.d(e,"j",function(){return ft}),n.d(e,"k",function(){return xt}),n.d(e,"l",function(){return mt});var s=n("fXoL"),r=n("ofXK"),i=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const l=new s.q("NgValueAccessor"),c={provide:l,useExisting:Object(s.T)(()=>u),multi:!0};let u=(()=>{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.Jb(s.E),s.Jb(s.l))},t.\u0275dir=s.Eb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&s.Vb("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[s.yb([c])]}),t})();const h={provide:l,useExisting:Object(s.T)(()=>p),multi:!0},d=new s.q("CompositionEventMode");let p=(()=>{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.u)()?Object(r.u)().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.Jb(s.E),s.Jb(s.l),s.Jb(d,8))},t.\u0275dir=s.Eb({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.Vb("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.yb([h])]}),t})();function f(t){return null==t||0===t.length}function m(t){return null!=t&&"number"==typeof t.length}const g=new s.q("NgValidators"),b=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 y{static min(t){return e=>{if(f(e.value)||f(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(f(e.value)||f(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return f(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return f(t.value)||_.test(t.value)?null:{email:!0}}static minLength(t){return e=>f(e.value)||!m(e.value)?null:e.value.lengthm(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return y.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(f(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 x(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function O(t){return null!=t?y.compose(x(t)):null}function E(t){return null!=t?y.composeAsync(x(t)):null}function k(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function T(t){return t._rawValidators}function A(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=O(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=E(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.Eb({type:t}),t})(),I=(()=>{class t extends j{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return R(e||t)},t.\u0275dir=s.Eb({type:t,features:[s.wb]}),t})();const R=s.Qb(I);class N extends j{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class D{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let P=(()=>{class t extends D{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(N,2))},t.\u0275dir=s.Eb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.Bb("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.wb]}),t})(),F=(()=>{class t extends D{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(I,2))},t.\u0275dir=s.Eb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.Bb("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.wb]}),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.Jb(s.E),s.Jb(s.l))},t.\u0275dir=s.Eb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&s.Vb("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[s.yb([L])]}),t})();const M={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.Fb({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(N),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.Jb(s.E),s.Jb(s.l),s.Jb(U),s.Jb(s.r))},t.\u0275dir=s.Eb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&s.Vb("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[s.yb([M])]}),t})();const z={provide:l,useExisting:Object(s.T)(()=>B),multi:!0};let B=(()=>{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.Jb(s.E),s.Jb(s.l))},t.\u0275dir=s.Eb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&s.Vb("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.yb([z])]}),t})();const $={provide:l,useExisting:Object(s.T)(()=>q),multi:!0};let q=(()=>{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.Jb(s.E),s.Jb(s.l))},t.\u0275dir=s.Eb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&s.Vb("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[s.yb([$])]}),t})();const W={provide:l,useExisting:Object(s.T)(()=>J),multi:!0};let J=(()=>{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._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&X(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&&X(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 K(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Q(t,e,n){const s=T(t);null!==e.validator?t.setValidators(k(s,e.validator)):"function"==typeof s&&t.setValidators([s]);const r=A(t);if(null!==e.asyncValidator?t.setAsyncValidators(k(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]),n){const n=()=>t.updateValueAndValidity();K(e._rawValidators,n),K(e._rawAsyncValidators,n)}}function Z(t,e,n){if(null!==t){if(null!==e.validator){const n=T(t);Array.isArray(n)&&n.length>0&&t.setValidators(n.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const n=A(t);Array.isArray(n)&&n.length>0&&t.setAsyncValidators(n.filter(t=>t!==e.asyncValidator))}}if(n){const t=()=>{};K(e._rawValidators,t),K(e._rawAsyncValidators,t)}}function X(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Y(t,e){Q(t,e,!1)}const tt=[u,B,V,q,J,H];function et(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function nt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function st(t){return(at(t)?t.validators:t)||null}function rt(t){return Array.isArray(t)?O(t):t||null}function it(t,e){return(at(e)?e.asyncValidators:t)||null}function ot(t){return Array.isArray(t)?E(t):t||null}function at(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class lt{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=rt(this._rawValidators),this._composedAsyncValidatorFn=ot(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=rt(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ot(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 ut?s.controls.hasOwnProperty(t)?s.controls[t]:null:s instanceof ht&&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){at(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ct extends lt{constructor(t=null,e,n){super(st(e),it(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){nt(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){nt(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 ut extends lt{constructor(t,e,n){super(st(e),it(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 ct?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 ht extends lt{constructor(t,e,n){super(st(e),it(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 ct?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 dt={provide:I,useExisting:Object(s.T)(()=>ft)},pt=(()=>Promise.resolve(null))();let ft=(()=>{class t extends I{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.n,this.form=new ut({},O(t),E(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){pt.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){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),nt(this._directives,t)})}addFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path),n=new ut({});Y(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){pt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,et(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.Jb(g,10),s.Jb(b,10))},t.\u0275dir=s.Eb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.Vb("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.yb([dt]),s.wb]}),t})(),mt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Eb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const gt=new s.q("NgModelWithFormControlWarning"),bt={provide:N,useExisting:Object(s.T)(()=>_t)};let _t=(()=>{class t extends N{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new s.n,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=function(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===p?n=t:(e=t,tt.some(t=>e.constructor===t)?s=t:r=t)}),r||s||n||null}(0,n)}set isDisabled(t){}ngOnChanges(t){this._isControlChanged(t)&&(G(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(g,10),s.Jb(b,10),s.Jb(l,10),s.Jb(gt,8))},t.\u0275dir=s.Eb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s.yb([bt]),s.wb,s.xb]}),t._ngModelWarningSentOnce=!1,t})();const yt={provide:I,useExisting:Object(s.T)(()=>vt)};let vt=(()=>{class t extends I{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){nt(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Y(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);Y(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,et(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(){Q(this.form,this,!1),this._oldForm&&Z(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(g,10),s.Jb(b,10))},t.\u0275dir=s.Eb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.Vb("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.yb([yt]),s.wb,s.xb]}),t})(),wt=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})(),St=(()=>{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 ut(n,{asyncValidators:r,updateOn:i,validators:s})}control(t,e,n){return new ct(t,e,n)}array(t,e,n){const s=t.map(t=>this._createControl(t));return new ht(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 ct||t instanceof ut||t instanceof ht?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.Fb({token:t,factory:t.\u0275fac}),t})(),Ct=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[U],imports:[wt]}),t})(),xt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:gt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[St,U],imports:[wt]}),t})()},"3UWI":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var s=n("D0XW"),r=n("zx2A");class i{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends r.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const s=Object(r.c)(n,new r.a(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n("PqYM");function l(t,e=s.a){return n=()=>Object(a.a)(t,e),function(t){return t.lift(new i(n))};var n}},"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.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"5mAv":function(t,e,n){"use strict";n.d(e,"a",function(){return s});class s{static decode(t){let e="";if((t=String(t).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let n,s,r=0,i=0;s=t.charAt(i++);~s&&(n=r%4?64*n+s:s,r++%4)?e+=String.fromCharCode(255&n>>(-2*r&6)):0)s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s);return e}static decodeUnicode(t){return decodeURIComponent(Array.prototype.map.call(s.decode(t),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}static urlDecode(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Illegal base64url string!")}return s.decodeUnicode(e)}static urlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}}},"7+OI":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("HDdC");function r(t){return!!t&&(t instanceof s.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var s=n("n6bG"),r=n("gRHU"),i=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c 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 c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const s=new c(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 u extends c{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()}}},"8Cu2":function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return c}),n.d(e,"c",function(){return u});var s=n("2Vo4"),r=n("lJxs"),i=n("ElX6"),o=n("fXoL"),a=n("P3kg");class l{constructor(){this.trie=Object(i.newTrie)()}apply(){this.trie.reset(),this.trie.add(...this.getPermissions())}isPermittedAsync(t){return this.permissions$.pipe(Object(r.a)(()=>this._isPermitted(t)))}isPermitted(t){return this._isPermitted(t)}_isPermitted(t){return this.trie.check(t)}}let c=(()=>{class t extends l{constructor(t){super(),this.subject=t,this.permissions$=this.subject.authorities$}getPermissions(){return this.subject.getAuthorities()}}return t.\u0275fac=function(e){return new(e||t)(o.Sb(a.b))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t})(),u=(()=>{class t extends l{constructor(){super(),this.permissions=new s.a([]),this.permissions$=this.permissions.asObservable(),this.apply()}ngOnDestroy(){this.permissions.complete()}getPermissions(){return this.permissions.getValue()}update(t){this.permissions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t})()},"8LU1":function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"d",function(){return l}),n.d(e,"e",function(){return i}),n.d(e,"f",function(){return c});var s=n("fXoL");function r(t){return null!=t&&""+t!="false"}function i(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function o(t){return Array.isArray(t)?t:[t]}function a(t){return null==t?"":"string"==typeof t?t:t+"px"}function l(t){return t instanceof s.l?t.nativeElement:t}function c(t,e=/\s+/){const n=[];if(null!=t){const s=Array.isArray(t)?t:(""+t).split(e);for(const t of s){const e=(""+t).trim();e&&n.push(e)}}return n}},"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})()},"9r3w":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("pfHM"),r=n("fXoL");let i=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.subject||{provide:s.d,useClass:s.a}]}}static forChild(e={}){return{ngModule:t,providers:[]}}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},imports:[[]]}),t})()},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.length0){const n=this.count>=this.total?this.total:this.count,s=this.ring;for(let r=0;r{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(c.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(u.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}},ElX6:function(t,e,n){"use strict";function s(t){for(var e={},n=[],s=0,r=t.length;s1?(l=l||e.slice(n+1),i[a[s]]=r(i[a[s]],l),n=e.length):(o=i,i=i[a[s]])}return l||o&&o.hasOwnProperty("*")||(i["*"]={}),t}function i(t,e){var n,s;for(s=t,(e.length<1||"*"!==e[e.length-1])&&e.push("*"),n=0;n0){var i={};return r.forEach(function(n){i[n]=l(t[n],e)}),r.filter(function(t){return i[t].length>0})}return r}if("$"===n){r=[],Object.keys(t).forEach(function(n){r=r.concat(o(t[n],[].concat(e)))});for(var a=s(r),c=a.length-1;c>=0;c--)"*"===a[c]&&a.splice(c,1);return a}return r=[],t.hasOwnProperty(n)&&(r=r.concat(o(t[n],e))),t.hasOwnProperty("*")&&(r=r.concat(o(t["*"],e))),r}function a(t){var e,n,r=[],i=t.split(":");for(e=0;e{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Object(s.V)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&g.full!==o.full&&console.warn("The Angular Material version ("+g.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)(s.Sb(r.g),s.Sb(b,8),s.Sb(a.d))},imports:[[i.a],i.a]}),t})();function v(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.b)(t)}}}function w(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(l.b)(t)}}}function C(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Object(l.e)(t):this.defaultTabIndex}}}function x(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{_="undefined"!=typeof Intl}catch(et){_=!1}let O=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Fb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Eb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function k(t,e,n="mat"){t.changes.pipe(Object(h.a)(t)).subscribe(({length:t})=>{T(e,n+"-2-line",!1),T(e,n+"-3-line",!1),T(e,n+"-multi-line",!1),2===t||3===t?T(e,`${n}-${t}-line`,!0):t>3&&T(e,n+"-multi-line",!0)})}function T(t,e,n){const s=t.nativeElement.classList;n?s.add(e):s.remove(e)}let A=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[y],y]}),t})();class j{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const I={enterDuration:450,exitDuration:400},R=Object(u.f)({passive:!0}),N=["mousedown","touchstart"],D=["mouseup","mouseleave","touchend","touchcancel"];class P{constructor(t,e,n,s){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Object(l.d)(n))}fadeInRipple(t,e,n={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},I),n.animation);n.centered&&(t=s.left+s.width/2,e=s.top+s.height/2);const i=n.radius||function(t,e,n){const s=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(s*s+r*r)}(t,e,s),o=t-s.left,a=e-s.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-i+"px",c.style.top=a-i+"px",c.style.height=2*i+"px",c.style.width=2*i+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new j(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,s=Object.assign(Object.assign({},I),t.config.animation);n.style.transitionDuration=s.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(l.d)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(N))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(D),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(r.h)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,R)})})}_removeTriggerEvents(){this._triggerElement&&(N.forEach(t=>{this._triggerElement.removeEventListener(t,this,R)}),this._pointerUpEventsRegistered&&D.forEach(t=>{this._triggerElement.removeEventListener(t,this,R)}))}}const F=new s.q("mat-ripple-global-options");let L=(()=>{class t{constructor(t,e,n,s,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new P(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(s.z),s.Jb(u.a),s.Jb(F,8),s.Jb(d.a,8))},t.\u0275dir=s.Eb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.Bb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),V=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[y,u.b],y]}),t})(),M=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(d.a,8))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.Bb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),U=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[y]]}),t})();class H{}const z=v(H);let B=0,$=(()=>{class t extends z{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+B++}}return t.\u0275fac=function(e){return q(e||t)},t.\u0275dir=s.Eb({type:t,inputs:{label:"label"},features:[s.wb]}),t})();const q=s.Qb($),W=new s.q("MatOptgroup");let J=0;class G{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const K=new s.q("MAT_OPTION_PARENT_COMPONENT");let Q=(()=>{class t{constructor(t,e,n,r){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+J++,this.onSelectionChange=new s.n,this._stateChanges=new c.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(l.b)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==p.f&&t.keyCode!==p.l||Object(p.q)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new G(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(s.h),s.Jb(void 0),s.Jb($))},t.\u0275dir=s.Eb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Z=(()=>{class t extends Q{constructor(t,e,n,s){super(t,e,n,s)}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(s.h),s.Jb(K,8),s.Jb(W,8))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.Vb("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(s.Rb("id",e.id),s.Ab("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.Bb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[s.wb],ngContentSelectors:m,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(s.cc(),s.sc(0,f,1,2,"mat-pseudo-checkbox",0),s.Ob(1,"span",1),s.bc(2),s.Nb(),s.Kb(3,"div",2)),2&t&&(s.dc("ngIf",e.multiple),s.zb(3),s.dc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.l,L,M],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function X(t,e,n){if(n.length){let s=e.toArray(),r=n.toArray(),i=0;for(let e=0;en+s?Math.max(0,t-s+e):n}let tt=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[V,a.c,y,U]]}),t})()},FtGj:function(t,e,n){"use strict";n.d(e,"a",function(){return b}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return p}),n.d(e,"e",function(){return l}),n.d(e,"f",function(){return i}),n.d(e,"g",function(){return o}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return u}),n.d(e,"j",function(){return g}),n.d(e,"k",function(){return d}),n.d(e,"l",function(){return a}),n.d(e,"m",function(){return r}),n.d(e,"n",function(){return h}),n.d(e,"o",function(){return _}),n.d(e,"p",function(){return m}),n.d(e,"q",function(){return y});const s=8,r=9,i=13,o=27,a=32,l=35,c=36,u=37,h=38,d=39,p=40,f=46,m=48,g=57,b=65,_=90;function y(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},GU7r:function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return c}),n.d(e,"c",function(){return h});var s=n("8LU1"),r=n("fXoL"),i=n("HDdC"),o=n("XNiG"),a=n("Kj3r");let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Fb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(s.d)(t);return new i.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.a,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(l))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new r.n,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(s.b)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(s.e)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(c),r.Jb(r.l),r.Jb(r.z))},t.\u0275dir=r.Eb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},providers:[l]}),t})()},HDdC:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var s=n("7o/Q"),r=n("2QA8"),i=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),l=n("2fFW");let c=(()=>{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=u(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:(0===(e=t).length?a.a:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(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 a});var s=n("LRne"),r=n("0EUg");function i(...t){return Object(r.a)()(Object(s.a)(...t))}var o=n("z+Ro");function a(...t){const e=t[t.length-1];return Object(o.a)(e)?(t.pop(),n=>i(t,n,e)):e=>i(t,e)}},JkW8:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("5mAv");class r{static decodeToken(t){if(!t||""===t)return null;const e=t.split(".");if(3!==e.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const n=s.a.urlDecode(e[1]);if(!n)throw new Error("Cannot decode the token.");return JSON.parse(n)}static getTokenExpirationDate(t){const e=r.decodeToken(t);if(!e||!e.hasOwnProperty("exp"))return null;const n=new Date(0);return n.setUTCSeconds(e.exp),n}static isTokenExpired(t,e){if(!t||""===t)return!0;const n=r.getTokenExpirationDate(t);return e=e||0,null!==n&&!(n.valueOf()>(new Date).valueOf()+1e3*e)}static getTokenClientId(t){const e=r.decodeToken(t);return e&&e.hasOwnProperty("client_id")?e.client_id:null}}},Kj3r:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("7o/Q"),r=n("D0XW");function i(t,e=r.a){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends s.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},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()},NFeN:function(t,e,n){"use strict";n.d(e,"a",function(){return N}),n.d(e,"b",function(){return D});var s=n("fXoL"),r=n("FKr1"),i=n("8LU1"),o=n("ofXK"),a=n("LRne"),l=n("z6cu"),c=n("cp0P"),u=n("quSY"),h=n("vkgz"),d=n("lJxs"),p=n("JIr8"),f=n("nYR2"),m=n("w1tV"),g=n("IzEk"),b=n("tk/3"),_=n("jhN1");const y=["*"];function v(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function S(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class C{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let x=(()=>{class t{constructor(t,e,n,s){this._httpClient=t,this._sanitizer=e,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,s){return this._addSvgIconConfig(t,e,new C(n,null,s))}addSvgIconLiteralInNamespace(t,e,n,r){const i=this._sanitizer.sanitize(s.I.HTML,n);if(!i)throw S(n);return this._addSvgIconConfig(t,e,new C("",i,r))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new C(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const r=this._sanitizer.sanitize(s.I.HTML,e);if(!r)throw S(e);return this._addSvgIconSetConfig(t,new C("",r,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.I.RESOURCE_URL,t);if(!e)throw w(t);const n=this._cachedIconsByUrl.get(e);return n?Object(a.a)(O(n)):this._loadSvgIconFromConfig(new C(t,null)).pipe(Object(h.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(d.a)(t=>O(t)))}getNamedSvgIcon(t,e=""){const n=E(e,t),s=this._svgIconConfigs.get(n);if(s)return this._getSvgFromConfig(s);const r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):Object(l.a)(v(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Object(a.a)(O(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(d.a)(t=>O(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);if(n)return Object(a.a)(n);const r=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(p.a)(e=>{const n=this._sanitizer.sanitize(s.I.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Object(a.a)(null)})));return Object(c.a)(r).pipe(Object(d.a)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw v(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const s=e[n];if(s.svgText&&s.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(s),n=this._extractSvgIconFromSet(e,t,s.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Object(h.a)(e=>t.svgText=e),Object(d.a)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Object(a.a)(null):this._fetchIcon(t).pipe(Object(h.a)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const s=t.querySelector(`[id="${e}"]`);if(!s)return null;const r=s.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);const i=this._svgElementFromString("");return i.appendChild(r),this._setSvgAttributes(i,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString(""),n=t.attributes;for(let s=0;sthis._inProgressUrlFetches.delete(o)),Object(m.a)());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(E(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(b.b,8),s.Sb(_.b),s.Sb(o.d,8),s.Sb(s.m))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(b.b,8),Object(s.Sb)(_.b),Object(s.Sb)(o.d,8),Object(s.Sb)(s.m))},token:t,providedIn:"root"}),t})();function O(t){return t.cloneNode(!0)}function E(t,e){return t+":"+e}class k{constructor(t){this._elementRef=t}}const T=Object(r.r)(k),A=new s.q("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(s.U)(o.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),j=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],I=j.map(t=>`[${t}]`).join(", "),R=/^url\(['"]?#(.*?)['"]?\)$/;let N=(()=>{class t extends T{constructor(t,e,n,s,r){super(t),this._iconRegistry=e,this._location=s,this._errorHandler=r,this._inline=!1,this._currentIconFetch=u.a.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(i.b)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let s=0;s{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(I),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const r=e[s],i=r.getAttribute(t),o=i?i.match(R):null;if(o){let e=n.get(r);e||(e=[],n.set(r,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(Object(g.a)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(x),s.Tb("aria-hidden"),s.Jb(A),s.Jb(s.m))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Ab("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),s.Bb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[s.wb],ngContentSelectors:y,decls:1,vars:0,template:function(t,e){1&t&&(s.cc(),s.bc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),D=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[r.e],r.e]}),t})()},NJ4a:function(t,e,n){"use strict";function s(t){setTimeout(()=>{throw t},0)}n.d(e,"a",function(){return s})},NJ9Y:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var s=n("sVev"),r=n("pLZG"),i=n("BFxc"),o=n("XDbj"),a=n("xbPD"),l=n("SpAZ");function c(t,e){const n=arguments.length>=2;return c=>c.pipe(t?Object(r.a)((e,n)=>t(e,n,c)):l.a,Object(i.a)(1),n?Object(a.a)(e):Object(o.a)(()=>new s.a))}},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)})}},OCPU:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("P3kg"),r=n("8Cu2"),i=n("fXoL");let o=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.subject||{provide:s.b,useClass:s.a},e.subjectPermissions||{provide:r.b,useClass:r.a}]}}static forChild(e={}){return{ngModule:t,providers:[]}}}return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)}}),t})()},OtPg:function(t,e,n){"use strict";n.d(e,"a",function(){return k}),n.d(e,"b",function(){return I}),n.d(e,"c",function(){return R});var s=n("fXoL"),r=n("2Vo4"),i=n("EY2u"),o=n("z6cu"),a=n("yCtX"),l=n("DH7j"),c=n("7o/Q"),u=n("Lhse"),h=n("zx2A");class d{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new p(t,this.resultSelector))}}class p extends c.a{constructor(t,e,n=Object.create(null)){super(t),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(t){const e=this.iterators;Object(l.a)(t)?e.push(new m(t)):e.push("function"==typeof t[u.a]?new f(t[u.a]()):new g(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class g extends h.b{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[u.a](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return Object(h.c)(this.observable,new h.a(this))}}var b=n("Cfvw"),_=n("eNwd"),y=n("pLZG"),v=n("lJxs"),w=n("IzEk"),S=n("eIep"),C=n("vkgz"),x=n("JIr8"),O=n("ofXK"),E=n("jhN1");const k=new s.q("HIGHLIGHT_OPTIONS");let T=(()=>{class t{constructor(t,e,n){this._options=n,this._ready=new r.a(null),this.ready=this._ready.asObservable().pipe(Object(y.a)(t=>!!t),Object(v.a)(t=>t),Object(w.a)(1)),Object(O.r)(e)&&t.defaultView.hljs?this._ready.next(t.defaultView.hljs):this._loadLibrary().pipe(Object(S.a)(e=>this._options&&this._options.lineNumbersLoader?(t.defaultView.hljs=e,this.loadLineNumbers().pipe(Object(C.a)(()=>this._ready.next(e)))):(this._ready.next(e),i.a)),Object(x.a)(t=>(console.error("[HLJS] ",t),i.a))).subscribe()}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return Object(o.a)("The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return Object(o.a)("The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return Object(o.a)("The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return Object(o.a)("The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe(Object(S.a)(t=>this._loadLanguages(t)))}return Object(o.a)("Highlight.js library was not imported!")}_loadLanguages(t){return function(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),Object(a.a)(t,void 0).lift(new d(e))}(...Object.entries(this._options.languages).map(([e,n])=>A(n()).pipe(Object(C.a)(n=>t.registerLanguage(e,n))))).pipe(Object(v.a)(()=>t))}loadCoreLibrary(){return A(this._options.coreLibraryLoader())}loadFullLibrary(){return A(this._options.fullLibraryLoader())}loadLineNumbers(){return A(this._options.lineNumbersLoader())}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(O.d),s.Sb(s.B),s.Sb(k,8))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(O.d),Object(s.Sb)(s.B),Object(s.Sb)(k,8))},token:t,providedIn:"root"}),t})();const A=t=>Object(b.a)(t).pipe(Object(y.a)(t=>!!t&&!!t.default),Object(v.a)(t=>t.default));let j=(()=>{class t{constructor(t,e){this._loader=t,this._hljs=null,t.ready.pipe().subscribe(t=>{this._hljs=t,e&&e.config&&(t.configure(e.config),t.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}get hljs(){return this._hljs}highlight(t,e,n,s){return this._loader.ready.pipe(Object(v.a)(r=>r.highlight(t,e,n,s)))}highlightAuto(t,e){return this._loader.ready.pipe(Object(v.a)(n=>n.highlightAuto(t,e)))}fixMarkup(t){return this._loader.ready.pipe(Object(v.a)(e=>e.fixMarkup(t)))}highlightBlock(t){return this._loader.ready.pipe(Object(v.a)(e=>e.highlightBlock(t)))}configure(t){return this._loader.ready.pipe(Object(v.a)(e=>e.configure(t)))}initHighlighting(){return this._loader.ready.pipe(Object(v.a)(t=>t.initHighlighting()))}registerLanguage(t,e){return this._loader.ready.pipe(Object(C.a)(n=>n.registerLanguage(t,e)))}listLanguages(){return this._loader.ready.pipe(Object(v.a)(t=>t.listLanguages()))}getLanguage(t){return this._loader.ready.pipe(Object(v.a)(e=>e.getLanguage(t)))}lineNumbersBlock(t){return this._loader.ready.pipe(Object(y.a)(t=>!!t.lineNumbersBlock),Object(C.a)(e=>e.lineNumbersBlock(t)))}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(T),s.Sb(k,8))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(T),Object(s.Sb)(k,8))},token:t,providedIn:"root"}),t})(),I=(()=>{class t{constructor(t,e,n,r){this._hljs=e,this._sanitizer=n,this._options=r,this.highlighted=new s.n,this._nativeElement=t.nativeElement}ngOnChanges(t){this.code&&t.code&&void 0!==t.code.currentValue&&t.code.currentValue!==t.code.previousValue&&this.highlightElement(this.code,this.languages)}highlightElement(t,e){this.setTextContent(t),this._hljs.highlightAuto(t,e).subscribe(t=>{this.setInnerHTML(t.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(t)})}addLineNumbers(){this.destroyLineNumbersObserver(),_.a.schedule(()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver(()=>{this._nativeElement.firstElementChild&&"TABLE"===this._nativeElement.firstElementChild.tagName.toUpperCase()&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()}),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})})}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(t){_.a.schedule(()=>this._nativeElement.textContent=t)}setInnerHTML(t){_.a.schedule(()=>this._nativeElement.innerHTML=this._sanitizer.sanitize(s.I.HTML,t)||"")}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(j),s.Jb(E.b),s.Jb(k,8))},t.\u0275dir=s.Eb({type:t,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(t,e){2&t&&s.Bb("hljs",!0)},inputs:{code:["highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},features:[s.xb]}),t})(),R=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})()},P3kg:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o});var s=n("fXoL"),r=n("2Vo4"),i=n("lJxs");class o{getAuthorities(){const t=this.getSubject();return t&&t.authorities||[]}update(t){t.credentials=null,this.setSubject(t)}updateDetails(t){const e=Object.assign({},this.getSubject());e.details=t,this.setSubject(e)}clear(){this.setSubject(null)}}let a=(()=>{class t extends o{constructor(){super(...arguments),this.subject=new r.a(null),this.subject$=this.subject.asObservable(),this.authorities$=this.subject$.pipe(Object(i.a)(t=>t&&t.authorities||null)),this.details$=this.subject$.pipe(Object(i.a)(t=>t&&t.details||null)),this.displayName$=this.details$.pipe(Object(i.a)(t=>t&&t.displayName||null)),this.isAuthorized$=this.subject$.pipe(Object(i.a)(t=>t&&t.authorities&&t.authorities.length>=0))}ngOnDestroy(){this.subject.complete()}getSubject(){return this.subject.getValue()}setSubject(t){this.subject.next(t)}}return t.\u0275fac=function(e){return l(e||t)},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const l=s.Qb(a)},PqYM:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var s=n("HDdC"),r=n("D0XW"),i=n("DH7j");function o(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}var a=n("z+Ro");function l(t=0,e,n){let i=-1;return o(e)?i=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=r.a),new s.a(e=>{const s=o(t)?t:+t-n.now();return n.schedule(c,s,{index:0,period:i,subscriber:e})})}function c(t){const{index:e,period:n,subscriber:s}=t;if(s.next(e),!s.closed){if(-1===n)return s.complete();t.index=e+1,this.schedule(t,n)}}},Pv2G:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var s=n("tk/3"),r=n("HDdC"),i=n("RJIb"),o=n("iVJa"),a=n("xDj2"),l=n("Q8NU"),c=n("VWR/"),u=n("fXoL");let h=(()=>{class t{constructor(t,e){this.tokens=t,this.options=e}initialize(t=!1){return new r.a(e=>{if(this.tokens.hasValidAccessToken())return e.next({message:"Access token is still valid"}),void e.complete();const{access_token:n,state:s,error:r}=a.a.getHashFragmentParams();if(!r)return n||s||!t?void(n?s?s===l.a.get("nonce")?(this.tokens.setAccessToken(n),e.next({message:"Access token saved"}),e.complete(),this.options.preventClearHashAfterLogin||(location.hash="")):e.error({message:"Nonce is not valid"}):e.error({message:"Nonce is missing"}):e.error({message:"No access token in URL"})):(e.next({message:"No access token and authenticate automatically is set to true - you will be redirected"}),e.complete(),void this.authenticate());e.error({message:r})})}authenticate(t=document.location.href,e=!1,n=new s.e){document.location.href=this.loginUrl(t,e,n)}loginUrl(t,e=!1,n=new s.e){const r=c.a.createAndSaveNonce();return n=(n||new s.e).set("client_id",this.options.clientId).set("state",r).set("response_type",this.options.responseType).set("redirect_uri",t),this.options.scope&&(n=n.set("scope",this.options.scope)),this.options.resource&&(n=n.set("resource",this.options.resource)),e&&(n=n.set("prompt","none")),`${this.options.loginUrl}?${n.toString()}`}clear(){this.tokens.clear()}}return t.\u0275fac=function(e){return new(e||t)(u.Sb(i.a),u.Sb(o.a))},t.\u0275prov=u.Fb({token:t,factory:t.\u0275fac}),t})()},Q8NU:function(t,e,n){"use strict";n.d(e,"a",function(){return s});class s{static put(t,e){sessionStorage.setItem(t,JSON.stringify(e))}static get(t){const e=sessionStorage.getItem(t);if(!e)return null;try{return JSON.parse(e)}catch(n){return console.warn(`Cannot parse ${t} as JSON`,n),e}}static remove(t){sessionStorage.removeItem(t)}}},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 p}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return l}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return h}),n.d(e,"j",function(){return o}),n.d(e,"k",function(){return f}),n.d(e,"l",function(){return m});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 c(t){return{type:6,styles:t,offset:null}}function u(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 p{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 f{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 m="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",function(){return ge}),n.d(e,"b",function(){return _e});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 c=-1,u=null;if(s.forEach(t=>{const n=t.offset,s=n==c,h=s&&u||{};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),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function c(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&u(n,"start",t)));break;case"done":t.onDone(()=>s(n&&u(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&u(n,"destroy",t)))}}function u(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 p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,m=(t,e)=>!1,g=(t,e,n)=>[];const b=o();(b||"undefined"!=typeof Element)&&(f=(t,e)=>t.contains(e),m=(()=>{if(b||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]):m}})(),g=(t,e,n)=>{let s=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[n]}),e}let O=(()=>{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.Fb({token:t,factory:t.\u0275fac}),t})(),E=(()=>{class t{}return t.NOOP=new O,t})();function k(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:T(parseFloat(e[1]),e[2])}function T(t,e){switch(e){case"s":return 1e3*t;default:return t}}function A(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=T(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=T(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 I(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else j(t,n);return n}function R(t,e,n){return n?e+":"+n+";":""}function N(t){let e="";for(let n=0;n{const r=z(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[r]),t.style[r]=e[s]}),o()&&N(t))}function P(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=z(e);t.style[n]=""}),o()&&N(t))}function F(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 M(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 B(t,e){return 0===t||0===e}function $(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;rfunction(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) *"}}(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 G=new Set(["true","1"]),K=new Set(["false","0"]);function Q(t,e){const n=G.has(t)||K.has(t),s=G.has(e)||K.has(e);return(r,i)=>{let o="*"==t||t==r,a="*"==e||e==i;return!o&&n&&"boolean"==typeof r&&(o=r?G.has(t):K.has(t)),!a&&s&&"boolean"==typeof i&&(a=i?G.has(e):K.has(e)),o&&a}}const Z=new RegExp("s*:selfs*,?","g");function X(t,e,n){return new Y(t).build(e,n)}class Y{constructor(t){this._driver=t}build(t,e){const n=new tt(e);return this._resetContextStyleTimingState(n),q(this,F(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=q(this,F(t.animation),e);return{type:1,matchers:J(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=>q(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=q(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(A(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||A(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),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,i=i||c0&&s{const i=u>0?s==h?1:u*s:r[s],o=i*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=i,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:q(this,F(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(Z,"")),[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=q(this,F(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"}:A(t.timings,e.errors,!0);return{type:12,animation:q(this,F(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,c=[]){return(new ct).buildKeyframes(t,e,n,s,r,i,o,a,l,c)}class ct{buildKeyframes(t,e,n,s,r,i,o,a,l,c=[]){l=l||new it;const u=new ht(t,e,l,s,r,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),q(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.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?k(n.duration):null,i=null!=n.delay?k(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),q(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=ut);const t=k(r.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>q(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?k(t.options.delay):0;t.steps.forEach(i=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),q(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 A(e.params?M(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?k(s.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ut);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),q(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 c=l.currentTime;q(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const ut={};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=ut,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=k(n.duration)),null!=n.delay&&(s.delay=k(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]=M(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=ut,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 pt(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})):I(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=M(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=I(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 pt 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=I(t[0],!1);a.offset=0,r.push(a);const l=I(t[0],!1);l.offset=ft(o),r.push(l);const c=t.length-1;for(let s=1;s<=c;s++){let o=I(t[s],!1);o.offset=ft((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 ft(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class mt{}class gt extends mt{normalizePropertyName(t,e){return z(t)}normalizeStyleValue(t,e,n,s){let r="";const i=n.toString().trim();if(bt[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 bt=(()=>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,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const yt={};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,c){const u=[],h=this.ast.options&&this.ast.options.params||yt,p=this.buildStyles(n,o&&o.params||yt,u),f=a&&a.params||yt,m=this.buildStyles(s,f,u),g=new Set,b=new Map,_=new Map,y="void"===s,v={params:Object.assign(Object.assign({},h),f)},w=c?[]:lt(t,e,this.ast.animation,r,i,p,m,v,l,u);let S=0;if(w.forEach(t=>{S=Math.max(t.duration+t.delay,S)}),u.length)return _t(e,this._triggerName,n,s,y,p,m,[],[],b,_,S,u);w.forEach(t=>{const n=t.element,s=d(b,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const r=d(_,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&g.add(n)});const C=U(g.values());return _t(e,this._triggerName,n,s,y,p,m,w,C,b,_,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=M(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 xt=new it;class Ot{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=X(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,xt,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 c=a(o.map(t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}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 c(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 Et=[],kt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Tt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class At{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 At("void");class It{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 Nt(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 At(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{P(t,n),D(t,s)})}return}const c=d(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=r.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!s)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(Vt(t,"ng-animate-queued"),i.onStart(()=>{Mt(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),c.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 At("void"),a=new Nt(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!==kt||(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,c(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 Rt{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 It(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=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),Mt(t,"ng-animate-disabled"))}removeNode(t,e,n,s){if(Dt(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 Dt(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=kt,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;nt()),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,c=new Map,u=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{const n="ng-enter"+b++;g.set(e,n),t.forEach(t=>Vt(t,n))});const _=[],y=new Set,v=new Set;for(let i=0;iy.add(t)):v.add(t))}const w=new Map,S=Lt(f,Array.from(y));S.forEach((t,e)=>{const n="ng-leave"+b++;w.set(e,n),t.forEach(t=>Vt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Mt(t,n))}),S.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Mt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const C=[],x=[];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=!p||!this.driver.containsElement(p,r),a=w.get(r),h=g.get(r),f=this._buildInstruction(t,n,h,a,i);if(f.errors&&f.errors.length)x.push(f);else{if(i)return e.onStart(()=>P(r,f.fromStyles)),e.onDestroy(()=>D(r,f.toStyles)),void s.push(e);if(t.isFallbackTransition)return e.onStart(()=>P(r,f.fromStyles)),e.onDestroy(()=>D(r,f.toStyles)),void s.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,f.timelines),o.push({instruction:f,player:e,element:r}),f.queriedElements.forEach(t=>d(l,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let s=u.get(e);s||u.set(e,s=new Set),n.forEach(t=>s.add(t))})}});if(x.length){const t=[];x.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 O=new Map,E=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(O,e,[]).push(t),t.destroy()})});const k=_.filter(t=>zt(t,c,u)),T=new Map;Ft(T,this.driver,v,u,i.a).forEach(t=>{zt(t,c,u)&&k.push(t)});const A=new Map;m.forEach((t,e)=>{Ft(A,this.driver,new Set(t),c,i.l)}),k.forEach(t=>{const e=T.get(t),n=A.get(t);T.set(t,Object.assign(Object.assign({},e),n))});const j=[],I=[],R={};o.forEach(t=>{const{element:e,player:i,instruction:o}=t;if(n.has(e)){if(h.has(e))return i.onDestroy(()=>D(e,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void s.push(i);let t=R;if(E.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>E.set(e,t))}const n=this._buildAnimation(i.namespaceId,o,O,r,A,T);if(i.setRealPlayer(n),t===R)j.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=a(e)),s.push(i)}}else P(e,o.fromStyles),i.onDestroy(()=>D(e,o.toStyles)),I.push(i),h.has(e)&&s.push(i)}),I.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(Mt(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!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)})}P(s,e.fromStyles)}_buildAnimation(t,e,n,s,r,o){const c=e.triggerName,u=e.element,h=[],p=new Set,f=new Set,m=e.timelines.map(e=>{const a=e.element;p.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new i.d(e.duration,e.delay);const m=a!==u,g=function(t){const e=[];return Ht(t,e),e}((n.get(a)||Et).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),b=r.get(a),_=o.get(a),y=l(0,this._normalizer,0,e.keyframes,b,_),v=this._buildPlayer(e,y,g);if(e.subTimeline&&s&&f.add(a),m){const e=new Nt(t,c,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))}),p.forEach(t=>Vt(t,"ng-animating"));const g=a(m);return g.onDestroy(()=>{p.forEach(t=>Mt(t,"ng-animating")),D(u,e.toStyles)}),f.forEach(t=>{d(s,t,[]).push(g)}),g}_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 Nt{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=>c(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 Dt(t){return t&&1===t.nodeType}function Pt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Ft(t,e,n,s,r){const i=[];n.forEach(t=>i.push(Pt(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=Tt,o.push(s))}),t.set(s,i)});let a=0;return n.forEach(t=>Pt(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 Mt(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;nr.add(t)):e.set(t,s),n.delete(t),!0}class Bt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Rt(t,e,n),this._timelineEngine=new Ot(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=X(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]=p(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]=p(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 $t(t,e){let n=null,s=null;return Array.isArray(e)&&e.length?(n=Wt(e[0]),e.length>1&&(s=Wt(e[e.length-1]))):e&&(n=Wt(e)),n||s?new qt(t,n,s):null}let qt=(()=>{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&&D(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(D(this._element,this._initialStyles),this._endStyles&&(D(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(P(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(P(this._element,this._endStyles),this._endStyles=null),D(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Wt(t){let e=null;const n=Object.keys(t);for(let s=0;sthis._handleCallback(t)}apply(){!function(t,e){const n=te(t,"").trim();n.length&&(function(t,e){let n=0;for(let s=0;s=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Xt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=te(t,"").split(","),s=Zt(n,e);s>=0&&(n.splice(s,1),Yt(t,"",n.join(",")))}(this._element,this._name))}}function Kt(t,e,n){Yt(t,"PlayState",n,Qt(t,e))}function Qt(t,e){const n=te(t,"");return n.indexOf(",")>0?Zt(n.split(","),e):Zt([n],e)}function Zt(t,e){for(let n=0;n=0)return n;return-1}function Xt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Yt(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 Gt(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]:W(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=x(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=>x(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={};B(n,s)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=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=$(t,e,l));if(0==n)return new ne(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=$t(t,e),p=new ee(t,e,u,n,s,r,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}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]:W(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={},c=i.filter(t=>t instanceof re);B(n,s)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=$t(t,e=$(t,e=e.map(t=>I(t,!1)),l));return new re(t,e,a,u)}}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.Q.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 ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(s.F),s.Sb(ae.d))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();class ce extends i.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ue(this._id,t,e||{},this._renderer)}}class ue{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 pe("",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 fe(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&&te(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.Sb(s.F),s.Sb(Bt),s.Sb(s.z))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();class pe{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 fe extends pe{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 me=(()=>{class t extends Bt{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(ae.d),s.Sb(E),s.Sb(mt))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const ge=new s.q("AnimationModuleType"),be=[{provide:E,useFactory:function(){return"function"==typeof oe()?new ie:new se}},{provide:ge,useValue:"BrowserAnimations"},{provide:i.b,useClass:le},{provide:mt,useFactory:function(){return new gt}},{provide:Bt,useClass:me},{provide:s.F,useFactory:function(t,e,n){return new de(t,e,n)},deps:[r.d,Bt,s.z]}];let _e=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:be,imports:[r.a]}),t})()},RJIb:function(t,e,n){"use strict";n.d(e,"a",function(){return x});var s=n("tk/3"),r=n("2Vo4"),i=n("XNiG"),o=n("itXk"),a=n("z6cu"),l=n("LRne"),c=n("NJ9Y"),u=n("5+tZ"),h=n("IzEk"),d=n("lJxs"),p=n("nYR2"),f=n("vkgz"),m=n("CYhE"),g=n("Q8NU");class b{static put(t,e){localStorage.setItem(t,JSON.stringify(e))}static get(t){const e=localStorage.getItem(t);if(!e)return null;try{return JSON.parse(e)}catch(n){return console.warn(`Cannot parse ${t} as JSON`,n),e}}static remove(t){localStorage.removeItem(t)}}var _=n("JkW8"),y=n("d8a0"),v=n("3/4O"),w=n("s2Hm"),S=n("og18"),C=n("fXoL");let x=(()=>{class t{constructor(e,n,s,i,o){this.http=e,this.options=n,this.passwordFlowOptions=s,this.authorizationCodeFlowOptions=i,this.clientCredentialsFlowOptions=o,this.accessToken=new r.a(g.a.get(t.ACCESS_TOKEN_KEY)),this.refreshToken=new r.a(b.get(t.REFRESH_TOKEN_KEY)),this.accessTokenPending=null,this.accessToken$=this.accessToken.asObservable(),this.refreshToken$=this.refreshToken.asObservable()}ngOnDestroy(){this.accessTokenPending&&this.accessTokenPending.complete(),this.accessToken.complete(),this.refreshToken.complete()}setAccessToken(e){g.a.put(t.ACCESS_TOKEN_KEY,e),this.accessToken.next(e)}setRefreshToken(e){b.put(t.REFRESH_TOKEN_KEY,e),this.refreshToken.next(e)}setTokens(t,e){this.setAccessToken(t),this.setRefreshToken(e)}getAccessToken(){return this.accessToken.getValue()}getRefreshToken(){return this.refreshToken.getValue()}getAuthenticationFlowType(t=this.getAccessToken()){const e=_.a.getTokenClientId(t);return e?this.passwordFlowOptions.clientId===e?y.b.PASSWORD:this.authorizationCodeFlowOptions.clientId===e?y.b.AUTHORIZATION_CODE:this.clientCredentialsFlowOptions.clientId===e?y.b.CLIENT_CREDENTIALS:null:null}hasValidAccessToken(t){const e=this.getAccessToken();return e&&!_.a.isTokenExpired(e,t)}hasValidRefreshToken(t){const e=this.getRefreshToken();return e&&!_.a.isTokenExpired(e,t)}getValidAccessToken(){return this.accessTokenPending&&!this.accessTokenPending.isStopped?this.accessTokenPending.pipe(Object(c.a)(),Object(u.a)(()=>this.accessToken$.pipe(Object(h.a)(1)))):(this.accessTokenPending=new i.a,Object(o.b)([this.accessToken$,this.refreshToken$]).pipe(Object(u.a)(([t,e])=>t||e?t?_.a.isTokenExpired(t)?this.getAuthenticationFlowType(t)===y.b.CLIENT_CREDENTIALS?this.authenticateWithClientCredentials().pipe(Object(d.a)(t=>t.accessToken)):e?_.a.isTokenExpired(e)?Object(a.a)({message:"Refresh token expired",details:"Cannot obtain new access token"}):this.authenticateWithRefreshToken(e).pipe(Object(d.a)(t=>t.accessToken)):Object(a.a)({message:"Access token expired",details:"No refresh token to obtain new access token"}):Object(l.a)(t):_.a.isTokenExpired(e)?Object(a.a)({message:"Access token is missing",details:"Refresh token expired - cannot obtain new access token"}):this.authenticateWithRefreshToken(e).pipe(Object(d.a)(t=>t.accessToken)):Object(a.a)({message:"Authentication token is missing"})),Object(h.a)(1),Object(p.a)(()=>{this.accessTokenPending.next(),this.accessTokenPending.complete()})))}authenticateWithPassword(t,e,n=new s.e,r=new s.d){return n=(n||new s.e).set("username",t).set("password",e).set("grant_type","password"),r=(r||new s.d).set("Content-Type","application/x-www-form-urlencoded"),this.passwordFlowOptions.useHttpBasicAuth&&(r=r.set("Authorization","Basic "+btoa(`${this.passwordFlowOptions.clientId}:${this.passwordFlowOptions.clientSecret}`))),this.http.post(this.passwordFlowOptions.tokenUrl,n,{headers:r}).pipe(Object(d.a)(t=>this.transform(t)),Object(f.a)(t=>this.setTokens(t.accessToken||null,t.refreshToken||null)))}authenticateWithRefreshToken(t,e=new s.e,n=new s.d){if(!t)return Object(a.a)({message:"Refresh token must not be empty"});e=(e||new s.e).set("grant_type","refresh_token").set("refresh_token",t),n=(n||new s.d).set("Content-Type","application/x-www-form-urlencoded");let r=null,i=null,o=null,l=null;switch(this.getAuthenticationFlowType(t)){case y.b.PASSWORD:r=this.passwordFlowOptions.tokenUrl,i=this.passwordFlowOptions.clientId,o=this.passwordFlowOptions.clientSecret,l=this.passwordFlowOptions.useHttpBasicAuth;break;case y.b.AUTHORIZATION_CODE:r=this.authorizationCodeFlowOptions.tokenUrl,i=this.authorizationCodeFlowOptions.clientId,o=this.authorizationCodeFlowOptions.clientSecret,l=this.authorizationCodeFlowOptions.useHttpBasicAuth;break;case y.b.CLIENT_CREDENTIALS:r=this.clientCredentialsFlowOptions.tokenUrl,i=this.clientCredentialsFlowOptions.clientId,o=this.clientCredentialsFlowOptions.clientSecret,l=this.clientCredentialsFlowOptions.useHttpBasicAuth;break;default:return Object(a.a)({message:"Refresh token authentication is not supported"})}return r?(o&&l&&(n=n.set("Authorization","Basic "+btoa(`${i}:${o}`))),this.http.post(r,e,{headers:n}).pipe(Object(d.a)(t=>this.transform(t)),Object(f.a)(t=>this.setTokens(t.accessToken||null,t.refreshToken||null)))):Object(a.a)({message:"Refresh token not supported"})}authenticateWithAuthorizationCode(t,e=new s.e,n=new s.d){return e=(e||new s.e).set("grant_type","authorization_code").set("code",t),n=(n||new s.d).set("Content-Type","application/x-www-form-urlencoded"),this.authorizationCodeFlowOptions.useHttpBasicAuth?n=n.set("Authorization","Basic "+btoa(`${this.authorizationCodeFlowOptions.clientId}:${this.authorizationCodeFlowOptions.clientSecret}`)):(e=e.set("client_id",this.authorizationCodeFlowOptions.clientId),this.authorizationCodeFlowOptions.clientSecret&&(e=e.set("client_secret",this.authorizationCodeFlowOptions.clientSecret))),this.http.post(this.authorizationCodeFlowOptions.tokenUrl,e,{headers:n}).pipe(Object(d.a)(t=>this.transform(t)),Object(f.a)(t=>this.setTokens(t.accessToken||null,t.refreshToken||null)))}authenticateWithClientCredentials(t=new s.e,e=new s.d){return t=(t||new s.e).set("grant_type","client_credentials"),e=(e||new s.d).set("Content-Type","application/x-www-form-urlencoded"),this.clientCredentialsFlowOptions.useHttpBasicAuth&&(e=e.set("Authorization","Basic "+btoa(`${this.clientCredentialsFlowOptions.clientId}:${this.clientCredentialsFlowOptions.clientSecret}`))),this.http.post(this.clientCredentialsFlowOptions.tokenUrl,t,{headers:e}).pipe(Object(d.a)(t=>this.transform(t)),Object(f.a)(t=>this.setTokens(t.accessToken||null,t.refreshToken||null)))}clear(){this.accessToken.next(null),g.a.remove(t.ACCESS_TOKEN_KEY),this.refreshToken.next(null),b.remove(t.REFRESH_TOKEN_KEY)}transform(t){return this.options.mapper(t)}}return t.ACCESS_TOKEN_KEY="access_token",t.REFRESH_TOKEN_KEY="refresh_token",t.\u0275fac=function(e){return new(e||t)(C.Sb(s.b),C.Sb(m.a),C.Sb(w.a),C.Sb(S.a),C.Sb(v.a))},t.\u0275prov=C.Fb({token:t,factory:t.\u0275fac}),t})()},RWdr:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("tk/3"),r=n("RJIb"),i=n("fXoL");let o=(()=>{class t{constructor(t){this.tokens=t}authenticate(t,e,n=new s.e,r=new s.d){return this.tokens.authenticateWithPassword(t,e,n,r)}clear(){this.tokens.clear()}}return t.\u0275fac=function(e){return new(e||t)(i.Sb(r.a))},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t})()},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var s=n("ngJS"),r=n("NJ4a"),i=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[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(c.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,u}},SpAZ:function(t,e,n){"use strict";function s(t){return t}n.d(e,"a",function(){return s})},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))}},"VWR/":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("5mAv"),r=n("Q8NU");class i{static createNonce(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let e=45,n="";const r="undefined"==typeof self?null:self.crypto||self.msCrypto;if(r){let s=new Uint8Array(e);r.getRandomValues(s),s=s.map(e=>t.charCodeAt(e%t.length)),n=String.fromCharCode.apply(null,s)}else for(;0{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 c}),n.d(e,"a",function(){return u});var s=n("HDdC"),r=n("7o/Q"),i=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class c extends r.a{constructor(t){super(t),this.destination=t}}let u=(()=>{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 c(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;rnew h(t,e),t})();class h extends u{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})},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)}}},ZDaG:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("P3kg"),r=n("hCJx"),i=n("fXoL");let o=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.subject||{provide:s.b,useClass:s.a},e.subjectRoles||{provide:r.b,useClass:r.a}]}}static forChild(e={}){return{ngModule:t,providers:[]}}}return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)}}),t})()},Zy1z:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("7o/Q");function r(){return t=>t.lift(new i)}class i{call(t,e){return e.subscribe(new o(t))}}class o extends s.a{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}},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)}},bTqV:function(t,e,n){"use strict";n.d(e,"a",function(){return d}),n.d(e,"b",function(){return p});var s=n("FKr1"),r=n("R1ws"),i=n("fXoL"),o=n("u47x");const a=["mat-button",""],l=["*"],c=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class u{constructor(t){this._elementRef=t}}const h=Object(s.r)(Object(s.t)(Object(s.s)(u)));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of c)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.l),i.Jb(o.e),i.Jb(r.a,8))},t.\u0275cmp=i.Db({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&i.wc(s.m,!0),2&t){let t;i.ic(t=i.Wb())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(i.Ab("disabled",e.disabled||null),i.Bb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.wb],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(i.cc(),i.Ob(0,"span",0),i.bc(1),i.Nb(),i.Kb(2,"span",1),i.Kb(3,"span",2)),2&t&&(i.zb(2),i.Bb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),i.dc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[s.m],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)},imports:[[s.n,s.e],s.e]}),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})},cH1L:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o});var s=n("fXoL"),r=n("ofXK");const i=new s.q("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(s.U)(r.d)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.n,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(i,8))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(i,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})()},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 c(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&Object(r.a)(t[0])?t[0]:t,null).pipe(Object(i.a)(t=>e(...t)))}return c(t,null)}function c(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{u||(u=!0,o++),r[l]=t},error:t=>n.error(t),complete:()=>{i++,i!==s&&u||(o===s&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},d8a0:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return r});var s=function(t){return t.PASSWORD="PASSWORD",t.IMPLICIT="IMPLICIT",t.AUTHORIZATION_CODE="AUTHORIZATION_CODE",t.CLIENT_CREDENTIALS="CLIENT_CREDENTIALS",t}({});class r{constructor(t,e){this.type=t,this.clientId=e&&e.clientId||null,this.scope=e&&e.scope||null,this.resource=e&&e.resource||null}}},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)}}},eNwd:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var s=n("3N8a");class r extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var i=n("IjjT");class o extends i.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,s=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++s{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===j.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||V,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||I.Emulated,id:"c",styles:t.styles||V,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,i=t.pipes;return n.id+=W++,n.inputs=Y(t.inputs,e),n.outputs=Y(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(G):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(K):null,n})}function G(t){return nt(t)||function(t){return t[U]||null}(t)}function K(t){return function(t){return t[H]||null}(t)}const Q={};function Z(t){const e={type:t.type,bootstrap:t.bootstrap||V,declarations:t.declarations||V,imports:t.imports||V,exports:t.exports||V,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&A(()=>{Q[t.id]=t.type}),e}function X(t,e){return A(()=>{const n=st(t,!0);n.declarations=e.declarations||V,n.imports=e.imports||V,n.exports=e.exports||V})}function Y(t,e){if(null==t)return L;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 tt=J;function et(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function nt(t){return t[M]||null}function st(t,e){const n=t[z]||null;if(!n&&!0===e)throw new Error(`Type ${u(t)} does not have '\u0275mod' property.`);return n}function rt(t){return Array.isArray(t)&&"object"==typeof t[1]}function it(t){return Array.isArray(t)&&!0===t[1]}function ot(t){return 0!=(8&t.flags)}function at(t){return 2==(2&t.flags)}function lt(t){return 1==(1&t.flags)}function ct(t){return null!==t.template}function ut(t,e){return t.hasOwnProperty($)?t[$]:null}class ht extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function dt(t){return"string"==typeof t?t:null==t?"":String(t)}function pt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():dt(t)}function ft(t,e){const n=e?" in "+e:"";throw new ht("201",`No provider for ${pt(t)} found${n}`)}class mt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function gt(){return bt}function bt(t){return t.type.prototype.ngOnChanges&&(t.setInput=yt),_t}function _t(){const t=vt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===L)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function yt(t,e,n,s){const r=vt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:L,current:null}),i=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];i[a]=new mt(l&&l.currentValue,e,o===L),t[s]=e}function vt(t){return t.__ngSimpleChanges__||null}gt.ngInherit=!0;let wt=void 0;function St(t){wt=t}function Ct(t){return!!t.listen}const xt={createRenderer:(t,e)=>void 0!==wt?wt:"undefined"!=typeof document?document:void 0};function Ot(t){for(;Array.isArray(t);)t=t[0];return t}function Et(t,e){return Ot(e[t])}function kt(t,e){return Ot(e[t.index])}function Tt(t,e){return t.data[e]}function At(t,e){return t[e]}function jt(t,e){const n=e[t];return rt(n)?n:n[0]}function It(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Rt(t){return 4==(4&t[2])}function Nt(t){return 128==(128&t[2])}function Dt(t,e){return null==e?null:t[e]}function Pt(t){t[18]=0}function Ft(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 Lt={lFrame:oe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Vt(){return Lt.bindingsEnabled}function Mt(){return Lt.lFrame.lView}function Ut(){return Lt.lFrame.tView}function Ht(t){Lt.lFrame.contextLView=t}function zt(){let t=Bt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Bt(){return Lt.lFrame.currentTNode}function $t(t,e){const n=Lt.lFrame;n.currentTNode=t,n.isParent=e}function qt(){return Lt.lFrame.isParent}function Wt(){Lt.lFrame.isParent=!1}function Jt(){return Lt.isInCheckNoChangesMode}function Gt(t){Lt.isInCheckNoChangesMode=t}function Kt(){const t=Lt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Qt(){return Lt.lFrame.bindingIndex++}function Zt(t,e){const n=Lt.lFrame;n.bindingIndex=n.bindingRootIndex=t,Xt(e)}function Xt(t){Lt.lFrame.currentDirectiveIndex=t}function Yt(t){const e=Lt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function te(){return Lt.lFrame.currentQueryIndex}function ee(t){Lt.lFrame.currentQueryIndex=t}function ne(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function se(t,e,n){if(n&O.SkipSelf){let s=e,r=t;for(;s=s.parent,!(null!==s||n&O.Host||(s=ne(r),null===s)||(r=r[15],10&s.type)););if(null===s)return!1;e=s,t=r}const s=Lt.lFrame=ie();return s.currentTNode=e,s.lView=t,!0}function re(t){const e=ie(),n=t[1];Lt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function ie(){const t=Lt.lFrame,e=null===t?null:t.child;return null===e?oe(t):e}function oe(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 ae(){const t=Lt.lFrame;return Lt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const le=ae;function ce(){const t=ae();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 ue(){return Lt.lFrame.selectedIndex}function he(t){Lt.lFrame.selectedIndex=t}function de(){const t=Lt.lFrame;return Tt(t.tView,t.selectedIndex)}function pe(t,e){for(let n=e.directiveStart,s=e.directiveEnd;n=s)break}else e[o]<0&&(t[18]+=65536),(i>11>16&&(3&t[2])===e&&(t[2]+=2048,i.call(o)):i.call(o)}class ye{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function ve(t,e,n){const s=Ct(t);let r=0;for(;re){o=i-1;break}}}for(;i>16,s=e;for(;n>0;)s=s[15],n--;return s}let Te=!0;function Ae(t){const e=Te;return Te=t,e}let je=0;function Ie(t,e){const n=Ne(t,e);if(-1!==n)return n;const s=e[1];s.firstCreatePass&&(t.injectorIndex=e.length,Re(s.data,t),Re(e,null),Re(s.blueprint,null));const r=De(t,e),i=t.injectorIndex;if(Oe(r)){const t=Ee(r),n=ke(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 Re(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ne(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function De(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 Pe(t,e,n){!function(t,e,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(q)&&(s=n[q]),null==s&&(s=n[q]=je++);const r=255&s,i=1<=0?255&e:Ue:e}(n);if("function"==typeof i){if(!se(e,t,s))return s&O.Host?Fe(r,n,s):Le(e,n,s,r);try{const t=i();if(null!=t||s&O.Optional)return t;ft(n)}finally{le()}}else if("number"==typeof i){let r=null,o=Ne(t,e),a=-1,l=s&O.Host?e[16][6]:null;for((-1===o||s&O.SkipSelf)&&(a=-1===o?De(t,e):e[o+8],-1!==a&&qe(s,!1)?(r=e[1],o=Ee(a),e=ke(a,e)):o=-1);-1!==o;){const t=e[1];if($e(i,o,t.data)){const t=He(o,e,n,r,s,l);if(t!==Me)return t}a=e[o+8],-1!==a&&qe(s,e[1].data[o+8]===l)&&$e(i,o,e)?(r=t,o=Ee(a),e=ke(a,e)):o=-1}}}return Le(e,n,s,r)}const Me={};function Ue(){return new We(zt(),Mt())}function He(t,e,n,s,r,i){const o=e[1],a=o.data[t+8],l=ze(a,o,n,null==s?at(a)&&Te:s!=o&&0!=(3&a.type),r&O.Host&&i===a);return null!==l?Be(e,o,l,a):Me}function ze(t,e,n,s,r){const i=t.providerIndexes,o=e.data,a=1048575&i,l=t.directiveStart,c=i>>20,u=r?a+c:t.directiveEnd;for(let h=s?a:a+c;h=l&&t.type===n)return h}if(r){const t=o[l];if(t&&ct(t)&&t.type===n)return l}return null}function Be(t,e,n,s){let r=t[n];const i=e.data;if(r instanceof ye){const o=r;o.resolving&&function(t,e){throw new ht("200","Circular dependency in DI detected for "+t)}(pt(i[n]));const a=Ae(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?k(o.injectImpl):null;se(t,s,O.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=bt(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&&k(l),Ae(a),o.resolving=!1,le()}}return r}function $e(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<{const t=Je(f(e));return t?t():null};let n=ut(e);if(null===n){const t=v(e);n=t&&t.factory}return n||null}function Ge(t){return A(()=>{const e=t.prototype.constructor,n=e[$]||Je(e),s=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==s;){const t=r[$]||Je(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function Ke(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{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 Ze{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=g({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Xe=new Ze("AnalyzeForEntryComponents"),Ye=Function;function tn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?en(t,e):e(t))}function nn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function sn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function rn(t,e){const n=[];for(let s=0;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 an(t,e){const n=ln(t,e);if(n>=0)return t[1|n]}function ln(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 cn=Qe("Inject",t=>({token:t})),un=Qe("Optional"),hn=Qe("Self"),dn=Qe("SkipSelf"),pn={},fn=/\n/gm,mn=l({provide:String,useValue:l});let gn=void 0;function bn(t){const e=gn;return gn=t,e}function _n(t,e=O.Default){if(void 0===gn)throw new Error("inject() must be called from an injection context");return null===gn?T(t,void 0,e):gn.get(t,e&O.Optional?null:void 0,e)}function yn(t,e=O.Default){return(E||_n)(f(t),e)}const vn=yn;function wn(t){const e=[];for(let n=0;nt,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Sn}())||void 0===e?void 0:e.createHTML(t))||t}class xn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class On extends xn{getTypeName(){return"HTML"}}class En extends xn{getTypeName(){return"Style"}}class kn extends xn{getTypeName(){return"Script"}}class Tn extends xn{getTypeName(){return"URL"}}class An extends xn{getTypeName(){return"ResourceURL"}}function jn(t){return t instanceof xn?t.changingThisBreaksApplicationSecurity:t}function In(t,e){const n=Rn(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 Rn(t){return t instanceof xn&&t.getTypeName()||null}function Nn(t){return new On(t)}function Dn(t){return new En(t)}function Pn(t){return new kn(t)}function Fn(t){return new Tn(t)}function Ln(t){return new An(t)}class Vn{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Cn(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Mn{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=Cn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Cn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0zn(t.trim())).join(", ")),this.buf.push(" ",e,'="',ss(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Kn.hasOwnProperty(e)&&!qn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ss(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 es=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ns=/([^\#-~ |!])/g;function ss(t){return t.replace(/&/g,"&").replace(es,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ns,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let rs;function is(t,e){let n=null;try{rs=rs||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(Cn(""),"text/html")}catch(t){return!1}}()?new Vn:new Mn(t)}(t);let s=e?String(e):"";n=rs.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=rs.getInertBodyElement(s)}while(s!==i);return(new ts).sanitizeChildren(os(n)||n)}finally{if(n){const t=os(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function os(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var as=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 ls(t){const e=function(){const t=Mt();return t&&t[12]}();return e?e.sanitize(as.URL,t)||"":In(t,"URL")?jn(t):zn(dt(t))}function cs(t){return t.ngDebugContext}function us(t){return t.ngOriginalError}function hs(t,...e){t.error(...e)}class ds{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t.ngErrorLogger||hs}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?cs(t)?cs(t):this._findContext(us(t)):null}_findOriginalError(t){let e=us(t);for(;e&&us(e);)e=us(e);return e}}function ps(t,e){t.__ngContext__=e}const fs=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function ms(t){return t instanceof Function?t():t}var gs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function bs(t,e){return(void 0)(t,e)}function _s(t){const e=t[3];return it(e)?e[3]:e}function ys(t){return ws(t[13])}function vs(t){return ws(t[4])}function ws(t){for(;null!==t&&!it(t);)t=t[4];return t}function Ss(t,e,n,s,r){if(null!=s){let i,o=!1;it(s)?i=s:rt(s)&&(o=!0,s=s[0]);const a=Ot(s);0===t&&null!==n?null==r?js(e,n,a):As(e,n,a,r||null,!0):1===t&&null!==n?As(e,n,a,r||null,!0):2===t?function(t,e,n){const s=Rs(t,e);s&&function(t,e,n,s){Ct(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!==Ot(n)&&Ss(e,t,s,i,r);for(let o=10;o0&&(t[n-1][4]=s[4]);const o=sn(t,10+e);Ms(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 Es(t,e){if(!(256&e[2])){const n=e[11];Ct(n)&&n.destroyNode&&Ms(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return ks(t[1],t);for(;e;){let n=null;if(rt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)rt(e)&&ks(e[1],e),e=e[3];null===e&&(e=t),rt(e)&&ks(e[1],e),n=e&&e[4]}e=n}}(e)}}function ks(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=0?s[r=l]():s[r=-l].unsubscribe(),t+=2}else{const e=s[r=n[t+1]];n[t].call(e)}if(null!==s)for(let t=r+1;ti?"":r[u+1].toLowerCase();const e=8&s?t:null;if(e&&-1!==Bs(e,c,0)||2&s&&c!==t){if(Gs(s))return!1;o=!0}}}}else{if(!o&&!Gs(s)&&!Gs(l))return!1;if(o&&Gs(l))continue;o=!1,s=l|1&s}}return Gs(s)||o}function Gs(t){return 0==(1&t)}function Ks(t,e,n,s){if(null===e)return-1;let r=0;if(s||!n){let n=!1;for(;r-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&s?r+="."+o:4&s&&(r+=" "+o);else""===r||Gs(o)||(e+=Xs(i,r),r=""),s=o,i=i||!Gs(s);n++}return""!==r&&(e+=Xs(i,r)),e}const tr={};function er(t){nr(Ut(),Mt(),ue()+t,Jt())}function nr(t,e,n,s){if(!s)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&fe(e,s,n)}else{const s=t.preOrderHooks;null!==s&&me(e,s,0,n)}he(n)}function sr(t,e){return t<<17|e<<2}function rr(t){return t>>17&32767}function ir(t){return 2|t}function or(t){return(131068&t)>>2}function ar(t,e){return-131069&t|e<<2}function lr(t){return 1|t}function cr(t,e){const n=t.contentQueries;if(null!==n)for(let s=0;s20&&nr(t,e,20,Jt()),n(s,r)}finally{he(i)}}function br(t,e,n){if(ot(e)){const s=e.directiveEnd;for(let r=e.directiveStart;r0;){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 kr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Tr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ar(t,e,n){if(n){if(e.exportAs)for(let s=0;s0&&Lr(n)}}function Lr(t){for(let n=ys(t);null!==n;n=vs(n))for(let t=10;t0&&Lr(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Lr(s)}}function Vr(t,e){const n=jt(e,t),s=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function qr(t){return t[7]||(t[7]=[])}function Wr(t){return t.cleanup||(t.cleanup=[])}function Jr(t,e,n){return(null===t||ct(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function Gr(t,e){const n=t[9],s=n?n.get(ds,null):null;s&&s.handleError(e)}function Kr(t,e,n,s,r){for(let i=0;ithis.processProvider(n,t,e)),en([t],t=>this.processInjectorType(t,[],r)),this.records.set(Zr,ci(void 0,this));const i=this.records.get(Yr);this.scope=null!=i?i.value:null,this.source=s||("object"==typeof t?null:u(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=pn,n=O.Default){this.assertNotDestroyed();const s=bn(this);try{if(!(n&O.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Ze)&&_(t);e=n&&this.injectableDefInScope(n)?ci(ai(t),ti):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&O.Self?ri():this.parent).get(t,e=n&O.Optional&&e===pn?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(u(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=u(e);if(Array.isArray(e))r=e.map(u).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):u(s)))}r=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${t.replace(fn,"\n ")}`}("\n"+t.message,r,n,s),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{bn(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(u(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=f(t)))return!1;let s=v(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=v(r)),null==s)return!1;if(null!=s.imports&&!o){let t;n.push(i);try{en(s.imports,s=>{this.processInjectorType(s,e,n)&&(void 0===t&&(t=[]),t.push(s))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,s||ni))}}this.injectorDefTypes.add(i),this.records.set(i,ci(s.factory,ti));const a=s.providers;if(null!=a&&!o){const e=t;en(a,t=>this.processProvider(t,e,a))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let s=hi(t=f(t))?t:f(t&&t.provide);const r=function(t,e,n){return ui(t)?ci(void 0,t.useValue):ci(li(t),ti)}(t);if(hi(t)||!0!==t.multi)this.records.get(s);else{let e=this.records.get(s);e||(e=ci(void 0,ti,!0),e.factory=()=>wn(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===ti&&(e.value=ei,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 ai(t){const e=_(t),n=null!==e?e.factory:ut(t);if(null!==n)return n;const s=v(t);if(null!==s)return s.factory;if(t instanceof Ze)throw new Error(`Token ${u(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=rn(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[w]||t[C]);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 li(t,e,n){let s=void 0;if(hi(t)){const e=f(t);return ut(e)||ai(e)}if(ui(t))s=()=>f(t.useValue);else if((r=t)&&r.useFactory)s=()=>t.useFactory(...wn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))s=()=>yn(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ut(e)||ai(e);s=()=>new e(...wn(t.deps))}var r;return s}function ci(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ui(t){return null!==t&&"object"==typeof t&&mn in t}function hi(t){return"function"==typeof t}const di=function(t,e,n){return function(t,e=null,n=null,s){const r=ii(t,e,n,s);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let pi=(()=>{class t{static create(t,e){return Array.isArray(t)?di(t,e,""):di(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=pn,t.NULL=new Xr,t.\u0275prov=g({token:t,providedIn:"any",factory:()=>yn(Zr)}),t.__NG_ELEMENT_ID__=-1,t})();function fi(t,e){pe(It(t)[1],zt())}function mi(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const s=[t];for(;e;){let r=void 0;if(ct(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=gi(t.inputs),e.declaredInputs=gi(t.declaredInputs),e.outputs=gi(t.outputs);const n=r.hostBindings;n&&yi(t,n);const i=r.viewQuery,o=r.contentQueries;if(i&&bi(t,i),o&&_i(t,o),c(t.inputs,r.inputs),c(t.declaredInputs,r.declaredInputs),c(t.outputs,r.outputs),ct(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=0;s--){const r=t[s];r.hostVars=e+=r.hostVars,r.hostAttrs=Ce(r.hostAttrs,n=Ce(n,r.hostAttrs))}}(s)}function gi(t){return t===L?{}:t===V?[]:t}function bi(t,e){const n=t.viewQuery;t.viewQuery=n?(t,s)=>{e(t,s),n(t,s)}:e}function _i(t,e){const n=t.contentQueries;t.contentQueries=n?(t,s,r)=>{e(t,s,r),n(t,s,r)}:e}function yi(t,e){const n=t.hostBindings;t.hostBindings=n?(t,s)=>{e(t,s),n(t,s)}:e}let vi=null;function wi(){if(!vi){const t=F.Symbol;if(t&&t.iterator)vi=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Ot(t[s.index])).target:s.index;if(Ct(n)){let o=null;if(!a&&l&&(o=function(t,e,n,s){const r=t.cleanup;if(null!=r)for(let i=0;in?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=Wi(s,e,i,!1);const t=n.listen(p.name||f,r,i);u.push(i,t),c&&c.push(r,g,m,m+1)}}else i=Wi(s,e,i,!0),f.addEventListener(r,i,o),u.push(i),c&&c.push(r,g,m,o)}else i=Wi(s,e,i,!1);const d=s.outputs;let p;if(h&&null!==d&&(p=d[r])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Lt.lFrame.contextLView))[8]}(t)}function Gi(t,e){let n=null;const s=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}function no(t,e,n){return ro(t,e,n,!1),no}function so(t,e){return ro(t,e,null,!0),so}function ro(t,e,n,s){const r=Mt(),i=Ut(),o=function(t){const e=Lt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();i.firstUpdatePass&&function(t,e,n,s){const r=t.data;if(null===r[n+1]){const i=r[ue()],o=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(i,s)&&null===e&&!o&&(e=!1),e=function(t,e,n,s){const r=Yt(t);let i=s?e.residualClasses:e.residualStyles;if(null===r)0===(s?e.classBindings:e.styleBindings)&&(n=oo(n=io(null,t,e,n,s),e.attrs,s),i=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=io(r,t,e,n,s),null===i){let n=function(t,e,n){const s=n?e.classBindings:e.styleBindings;if(0!==or(s))return t[rr(s)]}(t,e,s);void 0!==n&&Array.isArray(n)&&(n=io(null,t,e,n[1],s),n=oo(n,e.attrs,s),function(t,e,n,s){t[rr(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;i0)&&(u=!0)}else c=n;if(r)if(0!==l){const e=rr(t[a+1]);t[s+1]=sr(e,a),0!==e&&(t[e+1]=ar(t[e+1],s)),t[a+1]=131071&t[a+1]|s<<17}else t[s+1]=sr(a,0),0!==a&&(t[a+1]=ar(t[a+1],s)),a=s;else t[s+1]=sr(l,0),0===a?a=s:t[l+1]=ar(t[l+1],s),l=s;u&&(t[s+1]=ir(t[s+1])),to(t,c,s,!0),to(t,c,s,!1),function(t,e,n,s,r){const i=r?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&ln(i,e)>=0&&(n[s+1]=lr(n[s+1]))}(e,c,t,s,i),o=sr(a,l),i?e.classBindings=o:e.styleBindings=o}(r,i,e,n,o,s)}}(i,t,o,s),e!==tr&&Ei(r,o,e)&&function(t,e,n,s,r,i,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];lo(1==(1&c)?ao(l,e,n,r,or(c),o):void 0)||(lo(i)||function(t){return 2==(2&t)}(c)&&(i=ao(l,null,n,r,a,o)),function(t,e,n,s,r){const i=Ct(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:gs.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|=gs.Important),i?t.setStyle(n,s,r,e):n.style.setProperty(s,r,o?"important":"")}}}(s,o,Et(ue(),n),r,i))}(i,i.data[ue()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(jn(t)))),t}(e,n),s,o)}function io(t,e,n,s,r){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[r],i=Array.isArray(e),l=i?e[1]:e,c=null===l;let u=n[r+1];u===tr&&(u=c?Yi:void 0);let h=c?an(u,s):l===s?u:void 0;if(i&&!lo(h)&&(h=an(e,s)),lo(h)&&(a=h,o))return a;const d=t[r+1];r=o?rr(d):or(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=an(t,s))}return a}function lo(t){return void 0!==t}function co(t,e=""){const n=Mt(),s=Ut(),r=t+20,i=s.firstCreatePass?hr(s,r,1,e,null):s.data[r],o=n[r]=function(t,e){return Ct(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Ps(s,n,o,i),$t(i,!1)}function uo(t){return ho("",t,""),uo}function ho(t,e,n){const s=Mt(),r=Ti(s,t,e,n);return r!==tr&&function(t,e,n){const s=Et(e,t);!function(t,e,n){Ct(t)?t.setValue(e,n):e.textContent=n}(t[11],s,n)}(s,ue(),r),ho}function po(t,e,n){const s=Mt();return Ei(s,Qt(),e)&&xr(Ut(),de(),s,t,e,s[11],n,!0),po}function fo(t,e,n){const s=Mt();if(Ei(s,Qt(),e)){const r=Ut(),i=de();xr(r,i,s,t,e,Jr(Yt(r.data),i,s),n,!0)}return fo}const mo=void 0;var go=["en",[["a","p"],["AM","PM"],mo],[["AM","PM"],mo,mo],[["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"]],mo,[["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"]],mo,[["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}",mo,"{1} 'at' {0}",mo],[".",",",";","%","+","-","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 bo={};function _o(t,e,n){"string"!=typeof e&&(n=e,e=t[Co.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),bo[e]=t,n&&(bo[e][Co.ExtraData]=n)}function yo(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=So(e);if(n)return n;const s=e.split("-")[0];if(n=So(s),n)return n;if("en"===s)return go;throw new Error(`Missing locale data for the locale "${t}".`)}function vo(t){return yo(t)[Co.CurrencyCode]||null}function wo(t){return yo(t)[Co.PluralCase]}function So(t){return t in bo||(bo[t]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[t]),bo[t]}var Co=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 xo="en-US";function Oo(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&&(xo=t.toLowerCase().replace(/_/g,"-"))}function Eo(t,e,n,s,r){if(t=f(t),Array.isArray(t))for(let i=0;i>20;if(hi(t)||!t.multi){const s=new ye(l,r,Ii),p=Ao(a,e,r?u:u+d,h);-1===p?(Pe(Ie(c,o),i,a),ko(i,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(s),o.push(s)):(n[p]=s,o[p]=s)}else{const p=Ao(a,e,u+d,h),f=Ao(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(r&&!g||!r&&!m){Pe(Ie(c,o),i,a);const u=function(t,e,n,s,r){const i=new ye(t,n,Ii);return i.multi=[],i.index=e,i.componentProviders=0,To(i,r,s&&!n),i}(r?Io:jo,n.length,r,s,l);!r&&g&&(n[f].providerFactory=u),ko(i,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else ko(i,t,p>-1?p:f,To(n[r?f:p],l,!r&&s));!r&&s&&g&&n[f].componentProviders++}}}function ko(t,e,n,s){const r=hi(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 To(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ao(t,e,n,s){for(let r=n;r{n.providersResolver=(n,s)=>function(t,e,n){const s=Ut();if(s.firstCreatePass){const r=ct(t);Eo(n,s.data,s.blueprint,r,!0),Eo(e,s.data,s.blueprint,r,!1)}}(n,s?s(t):t,e)}}class Do{}class Po{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Fo=(()=>{class t{}return t.NULL=new Po,t})();function Lo(...t){}function Vo(t,e){return new Uo(kt(t,e))}const Mo=function(){return Vo(zt(),Mt())};let Uo=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Mo,t})();class Ho{}let zo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Bo(),t})();const Bo=function(){const t=Mt(),e=jt(zt().index,t);return function(t){return t[11]}(rt(e)?e:t)};let $o=(()=>{class t{}return t.\u0275prov=g({token:t,providedIn:"root",factory:()=>null}),t})();class qo{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Wo=new qo("11.0.5");class Jo{constructor(){}supports(t){return Ci(t)}create(t){return new Ko(t)}}const Go=(t,e)=>e;class Ko{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||Go}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{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 Qo(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 Xo),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 Xo),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 Qo{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 Zo{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 Xo{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Zo,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 Yo(t,e,n){const s=t.previousIndex;if(null===s)return s;let r=0;return n&&s{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 na(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 na{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 sa=(()=>{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 dn,new un]]}}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=g({token:t,providedIn:"root",factory:()=>new t([new Jo])}),t})(),ra=(()=>{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 dn,new un]]}}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=g({token:t,providedIn:"root",factory:()=>new t([new ta])}),t})();function ia(t,e,n,s,r=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&s.push(Ot(i)),it(i))for(let t=10;t-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Es(this._lView[1],this._lView)}onDestroy(t){Sr(this._lView[1],this._lView,null,t)}markForCheck(){Ur(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Hr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Gt(!0);try{Hr(t,e,n)}finally{Gt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ms(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class aa extends oa{constructor(t){super(t),this._view=t}detectChanges(){zr(this._view)}checkNoChanges(){!function(t){Gt(!0);try{zr(t)}finally{Gt(!1)}}(this._view)}get context(){return null}}const la=ua;let ca=(()=>{class t{}return t.__NG_ELEMENT_ID__=la,t.__ChangeDetectorRef__=!0,t})();function ua(t=!1){return function(t,e,n){if(!n&&at(t)){const n=jt(t.index,e);return new oa(n,n)}return 47&t.type?new oa(e[16],e):null}(zt(),Mt(),t)}const ha=[new ta],da=new sa([new Jo]),pa=new ra(ha),fa=function(){return _a(zt(),Mt())};let ma=(()=>{class t{}return t.__NG_ELEMENT_ID__=fa,t})();const ga=ma,ba=class extends ga{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ur(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)),pr(e,n,t),new oa(n)}};function _a(t,e){return 4&t.type?new ba(e,t,Vo(t,e)):null}class ya{}class va{}const wa=function(){return ka(zt(),Mt())};let Sa=(()=>{class t{}return t.__NG_ELEMENT_ID__=wa,t})();const Ca=Sa,xa=class extends Ca{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Vo(this._hostTNode,this._hostLView)}get injector(){return new We(this._hostTNode,this._hostLView)}get parentInjector(){const t=De(this._hostTNode,this._hostLView);if(Oe(t)){const e=ke(t,this._hostLView),n=Ee(t);return new We(e[1].data[n+8],e)}return new We(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Oa(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(ya,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(it(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],s=new xa(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),sfs});class Ra extends Do{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ys).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ja(this.componentDef.inputs)}get outputs(){return ja(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,Ta,r);return i!==Ta||s===Ta?i:e.get(n,s,r)}}}(t,s.injector):t,i=r.get(Ho,xt),o=r.get($o,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ct(t))return t.selectRootElement(e,n===I.ShadowDom);let s="string"==typeof e?t.querySelector(e):e;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Cs(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)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:fs,clean:$r,playerHandler:null,flags:0},d=wr(0,null,null,1,0,null,null,null,null,null),p=ur(null,d,h,u,null,null,i,a,o,r);let f,m;re(p);try{const t=function(t,e,n,s,r,i){const o=n[1];n[20]=t;const a=hr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Qr(a,l,!0),null!==t&&(ve(r,t,l),null!==a.classes&&zs(r,t,a.classes),null!==a.styles&&Hs(r,t,a.styles)));const c=s.createRenderer(t,e),u=ur(n,vr(e),null,e.onPush?64:16,n[20],a,s,c,null,null);return o.firstCreatePass&&(Pe(Ie(a,n),o,e.type),Tr(o,a),jr(a,n.length,1)),Mr(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)ve(a,c,["ng-version",Wo.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let s=1,r=2;for(;s0&&zs(a,c,e.join(" "))}if(m=Tt(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=zt();e.contentQueries(1,o,t.directiveStart)}const a=zt();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(he(a.index),Er(n[1],a,0,a.directiveStart,a.directiveEnd,e),kr(e,o)),o}(t,this.componentDef,p,h,[fi]),pr(d,p,null)}finally{ce()}return new Na(this.componentType,f,Vo(m,p),p,m)}}class Na 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 aa(s),this.componentType=t}get injector(){return new We(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Da=new Map;class Pa extends ya{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Aa(this);const n=st(t),s=t[B]||null;s&&Oo(s),this._bootstrapComponents=ms(n.bootstrap),this._r3Injector=ii(t,e,[{provide:ya,useValue:this},{provide:Fo,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=pi.THROW_IF_NOT_FOUND,n=O.Default){return t===pi||t===ya||t===Zr?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 Fa extends va{constructor(t){super(),this.moduleType=t,null!==st(t)&&function(t){const e=new Set;!function t(n){const s=st(n,!0),r=s.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(r,Da.get(r),n),Da.set(r,n));const i=ms(s.imports);for(const o of i)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Pa(this.moduleType,t)}}function La(t,e,n){const s=Kt()+t,r=Mt();return r[s]===tr?Oi(r,s,n?e.call(n):e()):function(t,e){return t[e]}(r,s)}function Va(t,e,n,s){return Ha(Mt(),Kt(),t,e,n,s)}function Ma(t,e,n,s,r){return za(Mt(),Kt(),t,e,n,s,r)}function Ua(t,e){const n=t[e];return n===tr?void 0:n}function Ha(t,e,n,s,r,i){const o=e+n;return Ei(t,o,r)?Oi(t,o+1,i?s.call(i,r):s(r)):Ua(t,o+1)}function za(t,e,n,s,r,i,o){const a=e+n;return function(t,e,n,s){const r=Ei(t,e,n);return Ei(t,e+1,s)||r}(t,a,r,i)?Oi(t,a+2,o?s.call(o,r,i):s(r,i)):Ua(t,a+2)}function Ba(t,e){const n=Ut();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 ht("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=ut(s.type)),o=k(Ii);try{const t=Ae(!1),e=i();return Ae(t),function(t,e,n,s){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=s}(n,Mt(),r,e),e}finally{k(o)}}function $a(t,e,n){const s=t+20,r=Mt(),i=At(r,s);return Ja(r,Wa(r,s)?Ha(r,Kt(),e,i.transform,n,i):i.transform(n))}function qa(t,e,n,s){const r=t+20,i=Mt(),o=At(i,r);return Ja(i,Wa(i,r)?za(i,Kt(),e,o.transform,n,s,o):o.transform(n,s))}function Wa(t,e){return t[1].data[e].pure}function Ja(t,e){return Si.isWrapped(e)&&(e=Si.unwrap(e),t[Lt.lFrame.bindingIndex]=tr),e}const Ga=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 Ka(){return this._results[wi()]()}class Qa{constructor(){this.dirty=!0,this._results=[],this.changes=new Ga,this.length=0;const t=wi(),e=Qa.prototype;e[t]||(e[t]=Ka)}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=tn(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 Za{constructor(t){this.queryList=t,this.matches=null}clone(){return new Za(this.queryList)}setDirty(){this.queryList.setDirty()}}class Xa{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;t0)s.push(o[t/2]);else{const r=i[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=Lo,this.reject=Lo,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{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(yn(_l,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const vl=new Ze("AppId"),wl={provide:vl,useFactory:function(){return`${Sl()}${Sl()}${Sl()}`},deps:[]};function Sl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Cl=new Ze("Platform Initializer"),xl=new Ze("Platform ID"),Ol=new Ze("appBootstrapListener");let El=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const kl=new Ze("LocaleId"),Tl=new Ze("DefaultCurrencyCode");class Al{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const jl=function(t){return new Fa(t)},Il=jl,Rl=function(t){return Promise.resolve(jl(t))},Nl=function(t){const e=jl(t),n=ms(st(t).declarations).reduce((t,e)=>{const n=nt(e);return n&&t.push(new Ra(n)),t},[]);return new Al(e,n)},Dl=Nl,Pl=function(t){return Promise.resolve(Nl(t))};let Fl=(()=>{class t{constructor(){this.compileModuleSync=Il,this.compileModuleAsync=Rl,this.compileModuleAndAllComponentsSync=Dl,this.compileModuleAndAllComponentsAsync=Pl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const Ll=(()=>Promise.resolve(0))();function Vl(t){"undefined"==typeof Zone?Ll.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ml{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ga(!1),this.onMicrotaskEmpty=new Ga(!1),this.onStable=new Ga(!1),this.onError=new Ga(!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=F.requestAnimationFrame,e=F.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(F,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,zl(t),Hl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),zl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,s,r,i,o,a)=>{try{return Bl(t),n.invokeTask(r,i,o,a)}finally{e&&"eventTask"===i.type&&e(),$l(t)}},onInvoke:(e,n,s,r,i,o,a)=>{try{return Bl(t),e.invoke(s,r,i,o,a)}finally{$l(t)}},onHasTask:(e,n,s,r)=>{e.hasTask(s,r),n===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,zl(t),Hl(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(!Ml.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ml.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,Ul,Lo,Lo);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 Ul={};function Hl(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 zl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Bl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function $l(t){t._nesting--,Hl(t)}class ql{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ga,this.onMicrotaskEmpty=new Ga,this.onStable=new Ga,this.onError=new Ga}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 Wl=(()=>{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:()=>{Ml.assertNotInAngularZone(),Vl(()=>{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())Vl(()=>{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)(yn(Ml))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})(),Jl=(()=>{class t{constructor(){this._applications=new Map,Zl.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 Zl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();class Gl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Kl(t){Zl=t}let Ql,Zl=new Gl,Xl=!0,Yl=!1;function tc(){return Yl=!0,Xl}function ec(){if(Yl)throw new Error("Cannot enable prod mode after platform setup.");Xl=!1}const nc=new Ze("AllowMultipleToken");class sc{constructor(t,e){this.name=t,this.token=e}}function rc(t,e,n=[]){const s="Platform: "+e,r=new Ze(s);return(e=[])=>{let i=ic();if(!i||i.injector.get(nc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:Yr,useValue:"platform"});!function(t){if(Ql&&!Ql.destroyed&&!Ql.injector.get(nc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ql=t.get(oc);const e=t.get(Cl,null);e&&e.forEach(t=>t())}(pi.create({providers:t,name:s}))}return function(t){const e=ic();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 ic(){return Ql&&!Ql.destroyed?Ql:null}let oc=(()=>{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 ql:("zone.js"===t?void 0:t)||new Ml({enableLongStackTrace:tc(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),s=[{provide:Ml,useValue:n}];return n.run(()=>{const e=pi.create({providers:s,parent:this.injector,name:t.moduleType.name}),r=t.create(e),i=r.injector.get(ds,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(()=>{cc(this._modules,r),t.unsubscribe()})}),function(t,e,n){try{const s=n();return Ui(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(yl);return t.runInitializers(),t.donePromise.then(()=>(Oo(r.injector.get(kl,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=ac({},e);return function(t,e,n){const s=new Fa(n);return Promise.resolve(s)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(lc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(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)(yn(pi))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function ac(t,e){return Array.isArray(e)?e.reduce(ac,t):Object.assign(Object.assign({},t),e)}let lc=(()=>{class t{constructor(t,e,n,s,r,l){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=l,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 c=new i.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new i.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Ml.assertNotInAngularZone(),Vl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ml.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(c,u.pipe(Object(a.a)()))}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 Do?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(ya),r=n.create(pi.NULL,[],e||n.selector,s),i=r.location.nativeElement,o=r.injector.get(Wl,null),a=o&&r.injector.get(Jl);return o&&a&&a.registerApplication(i,o),r.onDestroy(()=>{this.detachView(r.hostView),cc(this.components,r),a&&a.unregisterApplication(i)}),this._loadComponent(r),tc()&&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;cc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ol,[]).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)(yn(Ml),yn(El),yn(pi),yn(ds),yn(Fo),yn(yl))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function cc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class uc{}class hc{}const dc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let pc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||dc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,s]=t.split("#");return void 0===s&&(s="default"),n("crnd")(e).then(t=>t[s]).then(t=>fc(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("crnd")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[s+r]).then(t=>fc(t,e,s))}}return t.\u0275fac=function(e){return new(e||t)(yn(Fl),yn(hc,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function fc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const mc=function(t){return null},gc=rc(null,"core",[{provide:xl,useValue:"unknown"},{provide:oc,deps:[pi]},{provide:Jl,deps:[]},{provide:El,deps:[]}]),bc=[{provide:lc,useClass:lc,deps:[Ml,El,pi,ds,Fo,yl]},{provide:Ia,deps:[Ml],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:yl,useClass:yl,deps:[[new un,_l]]},{provide:Fl,useClass:Fl,deps:[]},wl,{provide:sa,useFactory:function(){return da},deps:[]},{provide:ra,useFactory:function(){return pa},deps:[]},{provide:kl,useFactory:function(t){return Oo(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new cn(kl),new un,new dn]]},{provide:Tl,useValue:"USD"}];let _c=(()=>{class t{constructor(t){}}return t.\u0275mod=Z({type:t}),t.\u0275inj=b({factory:function(e){return new(e||t)(yn(lc))},providers:bc}),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(){}}},hCJx:function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return l}),n.d(e,"c",function(){return c});var s=n("2Vo4"),r=n("lJxs"),i=n("fXoL"),o=n("P3kg");class a{constructor(){}hasRoleAsync(t){return this.roles$.pipe(Object(r.a)(e=>this._hasRole(t,e)))}hasAnyRoleAsync(t){return this.roles$.pipe(Object(r.a)(e=>this._hasAnyRole(t,e)))}hasRolesAsync(t){return this.roles$.pipe(Object(r.a)(e=>this._hasRoles(t,e)))}hasRole(t){return this._hasRole(t)}hasAnyRole(t){return this._hasAnyRole(t)}hasRoles(t){return this._hasRoles(t)}_hasRole(t,e=this.getRoles()){return!(!e||!t)&&e.indexOf(t)>=0}_hasAnyRole(t,e=this.getRoles()){return!(!e||!t)&&e.filter(e=>t.indexOf(e)>=0).length>0}_hasRoles(t,e=this.getRoles()){return!(!e||!t)&&e.filter(e=>t.indexOf(e)>=0).length===t.length}}let l=(()=>{class t extends a{constructor(t){super(),this.subject=t,this.roles$=this.subject.authorities$}getRoles(){return this.subject.getAuthorities()}}return t.\u0275fac=function(e){return new(e||t)(i.Sb(o.b))},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t})(),c=(()=>{class t extends a{constructor(){super(),this.roles=new s.a([]),this.roles$=this.roles.asObservable()}ngOnDestroy(){this.roles.complete()}getRoles(){return this.roles.getValue()}update(t){this.roles.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t})()},iVJa:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("d8a0");class r extends s.a{constructor(t){super(s.b.IMPLICIT,t),this.loginUrl=t&&t.loginUrl||null,this.responseType=t&&t.responseType||"token",this.preventClearHashAfterLogin=t&&t.preventClearHashAfterLogin||!1}}},itXk:function(t,e,n){"use strict";n.d(e,"b",function(){return p}),n.d(e,"a",function(){return f});var s=n("z+Ro"),r=n("DH7j"),i=n("7o/Q");class o extends i.a{notifyNext(t,e,n,s,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends i.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 l=n("SeVD"),c=n("HDdC");function u(t,e,n,s,r=new a(t,n,s)){if(!r.closed)return e instanceof c.a?e.subscribe(r):Object(l.a)(e)(r)}var h=n("yCtX");const d={};function p(...t){let e=void 0,n=void 0;return Object(s.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(r.a)(t[0])&&(t=t[0]),Object(h.a)(t,n).lift(new f(e))}class f{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new m(t,this.resultSelector))}}class m extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),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{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 I}),n.d(e,"c",function(){return P}),n.d(e,"d",function(){return w});var s=n("ofXK"),r=n("fXoL");class i extends s.s{constructor(){super()}supportsDOMEvents(){return!0}}class o extends i{static makeCurrent(){Object(s.w)(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.v)(document.cookie,t)}}let a,l=null;const c=new r.q("TRANSITION_ID"),u=[{provide:r.d,useFactory:function(t,e,n){return()=>{n.get(r.e).donePromise.then(()=>{const n=Object(s.u)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,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.u)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new r.q("EventManagerPlugins");let p=(()=>{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{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.Fb({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends m{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.u)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(s.d))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();const b={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 y(t,e,n){for(let s=0;s{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.Q.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.Q.ShadowDom:return new x(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=y(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.Sb(p),r.Sb(g),r.Sb(r.c))},t.\u0275prov=r.Fb({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(b[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=b[s];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=b[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.G.DashCase|r.G.Important)?t.style.setProperty(e,n,s&r.G.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.G.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=y(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 x 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=y(s.id,s.styles,[]);for(let i=0;i{class t extends f{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.Sb(s.d))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();const E=["alt","control","meta","shift"],k={"\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"},T={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"},A={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let j=(()=>{class t extends f{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.u)().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(E.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&&T.hasOwnProperty(e)&&(e=T[e]))}return k[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),E.forEach(s=>{s!=n&&(0,A[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.Sb(s.d))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Fb)({factory:function(){return Object(r.Sb)(N)},token:t,providedIn:"root"}),t})();function R(t){return new N(t.get(s.d))}let N=(()=>{class t extends I{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.I.NONE:return e;case r.I.HTML:return Object(r.db)(e,"HTML")?Object(r.vb)(e):Object(r.bb)(this._doc,String(e));case r.I.STYLE:return Object(r.db)(e,"Style")?Object(r.vb)(e):e;case r.I.SCRIPT:if(Object(r.db)(e,"Script"))return Object(r.vb)(e);throw new Error("unsafe value used in a script context");case r.I.URL:return Object(r.nb)(e),Object(r.db)(e,"URL")?Object(r.vb)(e):Object(r.cb)(String(e));case r.I.RESOURCE_URL:if(Object(r.db)(e,"ResourceURL"))return Object(r.vb)(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.Sb(s.d))},t.\u0275prov=Object(r.Fb)({factory:function(){return R(Object(r.Sb)(r.o))},token:t,providedIn:"root"}),t})();const D=[{provide:r.B,useValue:s.t},{provide:r.C,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:s.d,useFactory:function(){return Object(r.tb)(document),document},deps:[]}],P=Object(r.R)(r.W,"browser",D),F=[[],{provide:r.Z,useValue:"root"},{provide:r.m,useFactory:function(){return new r.m},deps:[]},{provide:d,useClass:O,multi:!0,deps:[s.d,r.z,r.B]},{provide:d,useClass:j,multi:!0,deps:[s.d]},[],{provide:w,useClass:w,deps:[p,g,r.c]},{provide:r.F,useExisting:w},{provide:m,useExisting:g},{provide:g,useClass:g,deps:[s.d]},{provide:r.M,useClass:r.M,deps:[r.z]},{provide:p,useClass:p,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:c,useExisting:r.c},u]}}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)(r.Sb(t,12))},providers:F,imports:[s.c,r.f]}),t})();"undefined"!=typeof window&&window},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return s});const s=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kiQV:function(t){t.exports=JSON.parse('{"name":"ngx-security","version":"11.0.0","scripts":{"ng":"ng","start":"ng serve","build":"ng build --prod --output-path ./docs --base-href /ngx-security/","test":"ng test","lint":"ng lint","e2e":"ng e2e","build:core":"ng build core --prod","build:roles":"ng build roles --prod","build:permissions":"ng build permissions --prod","build:auth":"ng build auth --prod","publish:core":"npm publish ./dist/core --access public","publish:roles":"npm publish ./dist/roles --access public","publish:permissions":"npm publish ./dist/permissions --access public","publish:auth":"npm publish ./dist/auth --access public","build:lib":"npm run build:core && npm run build:roles && npm run build:permissions && npm run build:auth","update:docs":"npm run build && git add -A docs/ && git commit -m \'Update docs app\'","release":"ngitflow release start && npm run update:docs && ngitflow release finish","release:major":"ngitflow release start major && npm run update:docs && ngitflow release finish"},"private":true,"dependencies":{"@angular/animations":"^11.0.5","@angular/cdk":"^11.0.3","@angular/common":"^11.0.5","@angular/compiler":"^11.0.5","@angular/core":"^11.0.5","@angular/forms":"^11.0.5","@angular/material":"^11.0.3","@angular/platform-browser":"^11.0.5","@angular/platform-browser-dynamic":"^11.0.5","@angular/router":"^11.0.5","core-js":"^3.8.1","highlight.js":"^10.4.1","material-design-icons":"^3.0.1","ngx-highlightjs":"^4.1.3","rxjs":"^6.6.3","shiro-trie":"^0.4.9","tslib":"^2.0.0","zone.js":"^0.10.3"},"devDependencies":{"@angular-devkit/build-angular":"^0.1100.5","@angular-devkit/core":"^11.0.5","@angular/cli":"^11.0.5","@angular/compiler-cli":"^11.0.5","@angular/language-service":"^11.0.5","@types/jasmine":"~3.6.0","@types/jasminewd2":"^2.0.8","@types/node":"^14.14.14","codelyzer":"^6.0.0","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"~5.1.0","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","ng-packagr":"^11.0.3","ngitflow":"^2.0.0","protractor":"~7.0.0","ts-node":"~9.0.0","tslint":"^6.1.3","typescript":"^4.0.5"}}')},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)}}},n6bG:function(t,e,n){"use strict";function s(t){return"function"==typeof t}n.d(e,"a",function(){return s})},nLfN:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return _}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return u}),n.d(e,"f",function(){return m}),n.d(e,"g",function(){return g});var s=n("fXoL"),r=n("ofXK");let i;try{i="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){i=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(r.r)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!i)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(s.B))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(s.B))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,f;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){if(null==p)if("object"==typeof document&&document||(p=!1),"scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),s=n.style;s.width="2px",s.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function _(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},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))}}},ngFo:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var s=n("tk/3"),r=n("HDdC"),i=n("RJIb"),o=n("og18"),a=n("xDj2"),l=n("Q8NU"),c=n("VWR/"),u=n("fXoL");let h=(()=>{class t{constructor(t,e){this.tokens=t,this.options=e}initialize(t=!1){return new r.a(e=>{if(this.tokens.hasValidAccessToken())return e.next({message:"Access is still valid"}),void e.complete();const{code:n,state:s,error:r}=a.a.getCodePartsFromUrl(window.location.search);if(!this.options.preventClearHashAfterLogin){const t=location.href.replace(/[&?]code=[^&$]*/,"").replace(/[&?]scope=[^&$]*/,"").replace(/[&?]state=[^&$]*/,"").replace(/[&?]session_state=[^&$]*/,"");history.replaceState(null,window.name,t)}if(!r)return n||s||!t?void(s?s===l.a.get("nonce")?n?this.getTokenFromCode(n).subscribe(()=>{e.next({message:"Tokens saved"}),e.complete()},e.error):e.error({message:"Code is missing"}):e.error({message:"Nonce is not valid"}):e.error({message:"Nonce is missing"})):(e.next({message:"No code and authenticate automatically is set to true - you will be redirected"}),e.complete(),void this.authenticate());e.error({message:r})})}authenticate(t=document.location.href,e=!1,n=new s.e){document.location.href=this.loginUrl(t,e,n)}loginUrl(t,e=!1,n=new s.e){const r=c.a.createAndSaveNonce();return n=(n||new s.e).set("client_id",this.options.clientId).set("state",r).set("response_type",this.options.responseType).set("redirect_uri",t),this.options.scope&&(n=n.set("scope",this.options.scope)),this.options.resource&&(n=n.set("resource",this.options.resource)),e&&(n=n.set("prompt","none")),`${this.options.loginUrl}?${n.toString()}`}clear(){this.tokens.clear()}getTokenFromCode(t){let e=new s.e;if(!this.options.disablePKCE){const t=l.a.get("PKCI_verifier");t?e=e.set("code_verifier",t):console.warn("No PKCI verifier found in storage!")}return this.tokens.authenticateWithAuthorizationCode(t,e)}}return t.\u0275fac=function(e){return new(e||t)(u.Sb(i.a),u.Sb(o.a))},t.\u0275prov=u.Fb({token:t,factory:t.\u0275fac}),t})()},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{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Fb)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(s.Sb)(d)}const h=new s.q("Location Initialized");let d=(()=>{class t extends c{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){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?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.Sb(l))},t.\u0275prov=Object(s.Fb)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d(Object(s.Sb)(l))}function m(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 g(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 b(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Fb)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(s.Sb)(l).location;return new w(Object(s.Sb)(c),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 m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const r=this.prepareExternalUrl(n+b(s));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,s){const r=this.prepareExternalUrl(n+b(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.Sb(c),s.Sb(v,8))},t.\u0275prov=s.Fb({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=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,s){let r=this.prepareExternalUrl(n+b(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,s){let r=this.prepareExternalUrl(n+b(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.Sb(c),s.Sb(v,8))},t.\u0275prov=s.Fb({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=g(O(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+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,O(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+b(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(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.Sb(_),s.Sb(c))},t.normalizeQueryParams=b,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=Object(s.Fb)({factory:x,token:t,providedIn:"root"}),t})();function x(){return new C(Object(s.Sb)(_),Object(s.Sb)(c))}function O(t){return t.replace(/\/index.html$/,"")}var E=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}({});const k=s.mb;class T{}let A=(()=>{class t extends T{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(k(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(s.u))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();function j(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.ub)(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.Jb(s.s),s.Jb(s.t),s.Jb(s.l),s.Jb(s.E))},t.\u0275dir=s.Eb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class R{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 N=(()=>{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 R(null,this._ngForOf,-1,-1),null===s?void 0:s),r=new D(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 D(t,r);e.push(i)}});for(let n=0;n{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.Jb(s.P),s.Jb(s.L),s.Jb(s.s))},t.\u0275dir=s.Eb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class D{constructor(t,e){this.record=t,this.view=e}}let P=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new F,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){L("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){L("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.Jb(s.P),s.Jb(s.L))},t.\u0275dir=s.Eb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class F{constructor(){this.$implicit=null,this.ngIf=null}}function L(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(s.ub)(e)}'.`)}class V{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let M=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new V(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.P),s.Jb(s.L),s.Jb(M,1))},t.\u0275dir=s.Eb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})();class H{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class z{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const B=new z,$=new H;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 B;if(Object(s.qb)(e))return $;throw n=t,Error(`InvalidPipeArgument: '${e}' for pipe '${Object(s.ub)(n)}'`);var n}_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.Ub())},t.\u0275pipe=s.Ib({name:"async",type:t,pure:!1}),t})(),W=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Ib({name:"json",type:t,pure:!1}),t})(),J=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[{provide:T,useClass:A}]}),t})();const G="browser";function K(t){return t===G}let Q=(()=>{class t{}return t.\u0275prov=Object(s.Fb)({token:t,providedIn:"root",factory:()=>new Z(Object(s.Sb)(l),window,Object(s.Sb)(s.m))}),t})();class Z{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,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){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}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])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=X(this.window.history)||X(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 X(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},og18:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("d8a0");class r extends s.a{constructor(t){super(s.b.AUTHORIZATION_CODE,t),this.loginUrl=t&&t.loginUrl||null,this.tokenUrl=t&&t.tokenUrl||null,this.clientSecret=t&&t.clientSecret||null,this.useHttpBasicAuth=t&&t.useHttpBasicAuth||!0,this.responseType=t&&t.responseType||"code",this.preventClearHashAfterLogin=t&&t.preventClearHashAfterLogin||!1,this.disablePKCE=t&&t.disablePKCE||null}}},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)}}},pfHM:function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"d",function(){return l}),n.d(e,"a",function(){return c});var s=n("2Vo4"),r=n("lJxs"),i=n("fXoL");class o{}class a{}class l{getAuthorities(){const t=this.getSubject();return t&&t.authorities||[]}update(t){t.credentials=null,this.setSubject(t)}updateDetails(t){const e=Object.assign({},this.getSubject());e.details=t,this.setSubject(e)}clear(){this.setSubject(null)}}let c=(()=>{class t extends l{constructor(){super(...arguments),this.subject=new s.a(null),this.subject$=this.subject.asObservable(),this.authorities$=this.subject$.pipe(Object(r.a)(t=>t&&t.authorities||null)),this.details$=this.subject$.pipe(Object(r.a)(t=>t&&t.details||null)),this.displayName$=this.details$.pipe(Object(r.a)(t=>t&&t.displayName||null)),this.isAuthorized$=this.subject$.pipe(Object(r.a)(t=>t&&t.authorities&&t.authorities.length>=0))}ngOnDestroy(){this.subject.complete()}getSubject(){return this.subject.getValue()}setSubject(t){this.subject.next(t)}}return t.\u0275fac=function(e){return u(e||t)},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t})();const u=i.Qb(c)},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:c,_subscriptions:u}=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;tt.concat(e instanceof o?e.errors:e),[])}},s2Hm:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("d8a0");class r extends s.a{constructor(t){super(s.b.PASSWORD,t),this.tokenUrl=t&&t.tokenUrl||null,this.clientSecret=t&&t.clientSecret||null,this.useHttpBasicAuth=t&&t.useHttpBasicAuth||!0}}},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})()},"tk/3":function(t,e,n){"use strict";n.d(e,"a",function(){return T}),n.d(e,"b",function(){return E}),n.d(e,"c",function(){return H}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return m});var s=n("fXoL"),r=n("LRne"),i=n("HDdC"),o=n("bOdf"),a=n("pLZG"),l=n("lJxs"),c=n("ofXK");class u{}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 p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(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 m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,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 m({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 g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{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?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new y(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 x 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 O(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let E=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof y)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 m?n.params:new m({fromObject:n.params})),s=new y(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 y||"events"===n.observe)return i;const c=i.pipe(Object(a.a)(t=>t instanceof C));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.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 c.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 c.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 c.pipe(Object(l.a)(t=>t.body))}case"response":return c;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 m).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,O(n,e))}post(t,e,n={}){return this.request("POST",t,O(n,e))}put(t,e,n={}){return this.request("PUT",t,O(n,e))}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(u))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();class k{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const T=new s.q("HTTP_INTERCEPTORS");let A=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const j=/^\)\]\}',?\n/;class I{}let R=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})(),N=(()=>{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 c=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(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new C({body:l,headers:s,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new x({error:l,headers:s,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:s}=i(),r=new x({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});e.error(r)};let l=!1;const c=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)},u=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",c),null!==s&&n.upload&&n.upload.addEventListener("progress",u)),n.send(s),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==s&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(I))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const D=new s.q("XSRF_COOKIE_NAME"),P=new s.q("XSRF_HEADER_NAME");class F{}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(c.v)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(c.d),s.Sb(s.B),s.Sb(D))},t.\u0275prov=s.Fb({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.Sb(F),s.Sb(P))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{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(T,[]);this.chain=t.reduceRight((t,e)=>new k(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(h),s.Sb(s.r))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:V,useClass:A}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:D,useValue:e.cookieName}:[],e.headerName?{provide:P,useValue:e.headerName}:[]]}}}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[V,{provide:T,useExisting:V,multi:!0},{provide:F,useClass:L},{provide:D,useValue:"XSRF-TOKEN"},{provide:P,useValue:"X-XSRF-TOKEN"}]}),t})(),H=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[E,{provide:u,useClass:M},N,{provide:h,useExisting:N},R,{provide:I,useExisting:R}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",function(){return Ut}),n.d(e,"b",function(){return L}),n.d(e,"c",function(){return rn}),n.d(e,"d",function(){return on}),n.d(e,"e",function(){return cn}),n.d(e,"f",function(){return vn}),n.d(e,"g",function(){return un});var s=n("ofXK"),r=n("fXoL"),i=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),l=n("itXk"),c=n("HDdC"),u=n("sVev"),h=n("NXyV"),d=n("EY2u"),p=n("XNiG"),f=n("lJxs"),m=n("0EUg"),g=n("NJ9Y"),b=n("eIep"),_=n("IzEk"),y=n("JX91"),v=n("7o/Q");class w{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new S(t,this.accumulator,this.seed,this.hasSeed))}}class S extends v.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)}}var C=n("pLZG"),x=n("JIr8"),O=n("bOdf"),E=n("xbPD"),k=n("XDbj"),T=n("SpAZ");function A(t,e){const n=arguments.length>=2;return s=>s.pipe(t?Object(C.a)((e,n)=>t(e,n,s)):T.a,Object(_.a)(1),n?Object(E.a)(e):Object(k.a)(()=>new u.a))}var j=n("5+tZ"),I=n("vkgz"),R=n("BFxc"),N=n("nYR2"),D=n("bHdf");class P{constructor(t,e){this.id=t,this.url=e}}class F extends P{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 L extends P{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class V extends P{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class M extends P{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class U extends P{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 H extends P{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 z extends P{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 B extends P{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 $ extends P{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 q{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class W{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class J{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class G{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class K{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Q{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Z{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 X{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 Y(t){return new X(t)}function tt(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function et(t,e,n){const s=n.path.split("/");if(s.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||s.lengths[e]===t)}return t===e}function rt(t){return Array.prototype.concat.apply([],t)}function it(t){return t.length>0?t[t.length-1]:null}function ot(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function at(t){return Object(r.qb)(t)?t:Object(r.rb)(t)?Object(o.a)(Promise.resolve(t)):Object(i.a)(t)}function lt(t,e,n){return n?function(t,e){return nt(t,e)}(t.queryParams,e.queryParams)&&ct(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>st(t[n],e[n]))}(t.queryParams,e.queryParams)&&ut(t.root,e.root)}function ct(t,e){if(!mt(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(!ct(t.children[n],e.children[n]))return!1}return!0}function ut(t,e){return ht(t,e,e.segments)}function ht(t,e,n){if(t.segments.length>n.length)return!!mt(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!mt(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!ut(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!!mt(t.segments,s)&&!!t.children.primary&&ht(t.children.primary,e,r)}}class dt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return yt.serialize(this)}}class pt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ot(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vt(this)}}class ft{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Y(this.parameters)),this._parameterMap}toString(){return kt(this)}}function mt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function gt(t,e){let n=[];return ot(t.children,(t,s)=>{"primary"===s&&(n=n.concat(e(t,s)))}),ot(t.children,(t,s)=>{"primary"!==s&&(n=n.concat(e(t,s)))}),n}class bt{}class _t{parse(t){const e=new Rt(t);return new dt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+wt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Ct(e)}=${Ct(t)}`).join("&"):`${Ct(e)}=${Ct(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const yt=new _t;function vt(t){return t.segments.map(t=>kt(t)).join("/")}function wt(t,e){if(!t.hasChildren())return vt(t);if(e){const e=t.children.primary?wt(t.children.primary,!1):"",n=[];return ot(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${wt(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=gt(t,(e,n)=>"primary"===n?[wt(t.children.primary,!1)]:[`${n}:${wt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${vt(t)}/${e[0]}`:`${vt(t)}/(${e.join("//")})`}}function St(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ct(t){return St(t).replace(/%3B/gi,";")}function xt(t){return St(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ot(t){return decodeURIComponent(t)}function Et(t){return Ot(t.replace(/\+/g,"%20"))}function kt(t){return`${xt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${xt(t)}=${xt(e[t])}`).join("")}`;var e}const Tt=/^[^\/()?;=#]+/;function At(t){const e=t.match(Tt);return e?e[0]:""}const jt=/^[^=?&#]+/,It=/^[^?&#]+/;class Rt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pt([],{}):new pt([],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 pt(t,e)),n}parseSegment(){const t=At(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new ft(Ot(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=At(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=At(this.remaining);t&&(n=t,this.capture(n))}t[Ot(e)]=Ot(n)}parseQueryParam(t){const e=function(t){const e=t.match(jt);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(It);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const s=Et(e),r=Et(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=At(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 pt([],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 Nt{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=Dt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Dt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Pt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Pt(t,this._root).map(t=>t.value)}}function Dt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Dt(t,n);if(e)return e}return null}function Pt(t,e){if(t===e.value)return[e];for(const n of e.children){const s=Pt(t,n);if(s.length)return s.unshift(e),s}return[]}class Ft{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Lt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Vt extends Nt{constructor(t,e){super(t),this.snapshot=e,$t(this,t)}toString(){return this.snapshot.toString()}}function Mt(t,e){const n=function(t,e){const n=new zt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Bt("",new Ft(n,[]))}(t,e),s=new a.a([new ft("",{})]),r=new a.a({}),i=new a.a({}),o=new a.a({}),l=new a.a(""),c=new Ut(s,r,o,l,i,"primary",e,n.root);return c.snapshot=n.root,new Vt(new Ft(c,[]),n)}class Ut{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(f.a)(t=>Y(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(f.a)(t=>Y(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ht(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 zt{constructor(t,e,n,s,r,i,o,a,l,c,u){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=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Y(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Bt extends Nt{constructor(t,e){super(e),this.url=t,$t(this,e)}toString(){return qt(this._root)}}function $t(t,e){e.value._routerState=t,e.children.forEach(e=>$t(t,e))}function qt(t){const e=t.children.length>0?` { ${t.children.map(qt).join(", ")} } `:"";return`${t.value}${e}`}function Wt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,nt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),nt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nnt(t.parameters,s[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Jt(t.parent,e.parent))}function Gt(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 Gt(t,e,s);return Gt(t,e)})}(t,e,n);return new Ft(s,r)}{const n=t.retrieve(e.value);if(n){const t=n.route;return Kt(e,t),t}{const n=new Ut(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=>Gt(t,e));return new Ft(n,r)}}var s}function Kt(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{i[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new dt(n.root===t?e:Yt(n.root,t,e),i,r)}function Yt(t,e,n){const s={};return ot(t.children,(t,r)=>{s[r]=t===e?n:Yt(t,e,n)}),new pt(t.segments,s)}class te{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Qt(n[0]))throw new Error("Root segment cannot have matrix parameters");const s=n.find(Zt);if(s&&s!==it(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ee{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ne(t,e,n){if(t||(t=new pt([],{})),0===t.segments.length&&t.hasChildren())return se(t,e,n);const s=function(t,e,n){let s=0,r=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return i;const e=t.segments[r],o=n[s];if(Zt(o))break;const a=""+o,l=s0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!ae(a,l,e))return i;s+=2}else{if(!ae(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{"string"==typeof n&&(n=[n]),null!==n&&(r[s]=ne(t.children[s],e,n))}),ot(t.children,(t,e)=>{void 0===s[e]&&(r[e]=t)}),new pt(t.segments,r)}}function re(t,e,n){const s=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=re(new pt([],{}),0,t))}),e}function oe(t){const e={};return ot(t,(t,n)=>e[n]=""+t),e}function ae(t,e,n){return t==n.path&&nt(e,n.parameters)}class le{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),Wt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const s=Lt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,s[e],n),delete s[e]}),ot(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);if(n){const s=Lt(t),r=t.value.component?n.children:e;ot(s,(t,e)=>this.deactivateRouteAndItsChildren(t,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const s=Lt(e);t.children.forEach(t=>{this.activateRoutes(t,s[t.value.outlet],n),this.forwardEvent(new Q(t.value.snapshot))}),t.children.length&&this.forwardEvent(new G(t.value.snapshot))}activateRoutes(t,e,n){const s=t.value,r=e?e.value:null;if(Wt(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),ce(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 ce(t){Wt(t.value),t.children.forEach(ce)}class ue{constructor(t,e){this.routes=t,this.module=e}}function he(t){return"function"==typeof t}function de(t){return t instanceof dt}const pe=Symbol("INITIAL_VALUE");function fe(){return Object(b.a)(t=>Object(l.b)(...t.map(t=>t.pipe(Object(_.a)(1),Object(y.a)(pe)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(s){return s.lift(new w(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,s,r)=>{if(t!==pe)return t;if(s===pe&&(n=!0),!n){if(!1===s)return s;if(r===e.length-1||de(s))return s}return t},t)},pe),Object(C.a)(t=>t!==pe),Object(f.a)(t=>de(t)?t:!0===t),Object(_.a)(1)))}let me=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Db({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r.Kb(0,"router-outlet")},directives:function(){return[un]},encapsulation:2}),t})();function ge(t,e=""){for(let n=0;ne.error(new we(t)))}function xe(t){return new c.a(e=>e.error(new Se(t)))}function Oe(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ee{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(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(f.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(x.a)(t=>{if(t instanceof Se)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof we)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(f.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(x.a)(t=>{if(t instanceof we)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 pt([],{primary:t}):t;return new dt(s,e,n)}expandSegmentGroup(t,e,n,s){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(f.a)(t=>new pt([],t))):this.expandSegment(t,n,e,n.segments,s,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(i.a)({});const n=[],s=[],r={};return ot(t,(t,i)=>{const o=e(i,t).pipe(Object(f.a)(t=>r[i]=t));"primary"===i?n.push(o):s.push(o)}),i.a.apply(null,n.concat(s)).pipe(Object(m.a)(),Object(g.a)(),Object(f.a)(()=>r))}(n.children,(n,s)=>this.expandSegmentGroup(t,e,s,n))}expandSegment(t,e,n,s,r,a){const c=function(t){return t.reduce((t,e)=>{const n=ve(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(n);c.has(r)||c.set(r,[]);const h=n=>Object(o.a)(n).pipe(Object(O.a)(o=>this.expandSegmentAgainstRoute(t,e,n,o,s,r,a).pipe(Object(x.a)(t=>{if(t instanceof we)return Object(i.a)(null);throw t}))),A(t=>null!==t),Object(x.a)(t=>{if(t instanceof u.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,s,r))return Object(i.a)(new pt([],{}));throw new we(e)}throw t})),d=Array.from(c.entries()).map(([t,e])=>{const n=h(e);return t===r?n:n.pipe(Object(f.a)(()=>null),Object(x.a)(()=>Object(i.a)(null)))});return Object(o.a)(d).pipe(t=>t.lift(new l.a(void 0)),A(),Object(f.a)(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,s,r,i,o){return ve(s)!==i&&""!==s.path?Ce(e):void 0===s.redirectTo?this.matchSegmentAgainstRoute(t,e,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,s,r,i):Ce(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("/")?xe(r):this.lineralizeSegments(n,r).pipe(Object(j.a)(n=>{const r=new pt(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:c}=ke(e,s,r);if(!o)return Ce(e);const u=this.applyRedirectCommands(a,s.redirectTo,c);return s.redirectTo.startsWith("/")?xe(u):this.lineralizeSegments(s,u).pipe(Object(j.a)(s=>this.expandSegment(t,e,n,s.concat(r.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,s){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(f.a)(t=>(n._loadedConfig=t,new pt(s,{})))):Object(i.a)(new pt(s,{}));const{matched:r,consumedSegments:o,lastChild:a}=ke(e,n,s);if(!r)return Ce(e);const l=s.slice(a);return this.getChildConfig(t,n,s).pipe(Object(j.a)(t=>{const n=t.module,s=t.routes,{segmentGroup:r,slicedSegments:a}=function(t,e,n,s){return n.length>0&&function(t,e,n){return n.some(n=>Ae(t,e,n)&&"primary"!==ve(n))}(t,n,s)?{segmentGroup:Te(new pt(e,function(t,e){const n={};n.primary=e;for(const s of t)""===s.path&&"primary"!==ve(s)&&(n[ve(s)]=new pt([],{}));return n}(s,new pt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Ae(t,e,n))}(t,n,s)?{segmentGroup:Te(new pt(t.segments,function(t,e,n,s){const r={};for(const i of n)Ae(t,e,i)&&!s[ve(i)]&&(r[ve(i)]=new pt([],{}));return Object.assign(Object.assign({},s),r)}(t,n,s,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,l,s);return 0===a.length&&r.hasChildren()?this.expandChildren(n,s,r).pipe(Object(f.a)(t=>new pt(o,t))):0===s.length&&0===a.length?Object(i.a)(new pt(o,{})):this.expandSegment(n,r,s,a,"primary",!0).pipe(Object(f.a)(t=>new pt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(i.a)(new ue(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(i.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(j.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(f.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(tt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(i.a)(new ue([],t))}runCanLoadGuards(t,e,n){const s=e.canLoad;if(!s||0===s.length)return Object(i.a)(!0);const r=s.map(s=>{const r=t.get(s);let i;if(function(t){return t&&he(t.canLoad)}(r))i=r.canLoad(e,n);else{if(!he(r))throw new Error("Invalid CanLoad guard");i=r(e,n)}return at(i)});return Object(i.a)(r).pipe(fe(),Object(I.a)(t=>{if(!de(t))return;const e=tt(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(f.a)(t=>!0===t))}lineralizeSegments(t,e){let n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return Object(i.a)(n);if(s.numberOfChildren>1||!s.children.primary)return Oe(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 dt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ot(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 ot(e.children,(e,r)=>{i[r]=this.createSegmentGroup(t,e,n,s)}),new pt(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 ke(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const s=(e.matcher||et)(n,t,e);return s?{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,positionalParamSegments:s.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Te(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new pt(t.segments.concat(e.segments),e.children)}return t}function Ae(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class je{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ie{constructor(t,e){this.component=t,this.route=e}}function Re(t,e,n){const s=t._root;return De(s,e?e._root:null,n,[s.value])}function Ne(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 De(t,e,n,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=Lt(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!mt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!mt(t.url,e.url)||!nt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jt(t,e)||!nt(t.queryParams,e.queryParams);case"paramsChange":default:return!Jt(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new je(s)):(i.data=o.data,i._resolvedData=o._resolvedData),De(t,e,i.component?a?a.children:null:n,s,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ie(a.outlet.component,o))}else o&&Pe(e,a,r),r.canActivateChecks.push(new je(s)),De(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]}),ot(i,(t,e)=>Pe(t,n.getContext(e),r)),r}function Pe(t,e,n){const s=Lt(t),r=t.value;ot(s,(t,s)=>{Pe(t,r.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new Ie(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function Fe(t,e){return null!==t&&e&&e(new K(t)),Object(i.a)(!0)}function Le(t,e){return null!==t&&e&&e(new J(t)),Object(i.a)(!0)}function Ve(t,e,n){const s=e.routeConfig?e.routeConfig.canActivate:null;if(!s||0===s.length)return Object(i.a)(!0);const r=s.map(s=>Object(h.a)(()=>{const r=Ne(s,e,n);let i;if(function(t){return t&&he(t.canActivate)}(r))i=at(r.canActivate(e,t));else{if(!he(r))throw new Error("Invalid CanActivate guard");i=at(r(e,t))}return i.pipe(A())}));return Object(i.a)(r).pipe(fe())}function Me(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(h.a)(()=>{const r=e.guards.map(r=>{const i=Ne(r,e.node,n);let o;if(function(t){return t&&he(t.canActivateChild)}(i))o=at(i.canActivateChild(s,t));else{if(!he(i))throw new Error("Invalid CanActivateChild guard");o=at(i(s,t))}return o.pipe(A())});return Object(i.a)(r).pipe(fe())}));return Object(i.a)(r).pipe(fe())}class Ue{}class He{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(){try{const t=$e(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new zt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Ft(n,e),r=new Bt(this.url,s);return this.inheritParamsAndData(r._root),Object(i.a)(r)}catch(t){return new c.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Ht(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=gt(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),s=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${s}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,s){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,s)}catch(r){if(!(r instanceof Ue))throw r}if(this.noLeftoversInUrl(e,n,s))return[];throw new Ue}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,s){if(t.redirectTo)throw new Ue;if((t.outlet||"primary")!==s)throw new Ue;let r,i=[],o=[];if("**"===t.path){const i=n.length>0?it(n).parameters:{};r=new zt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,We(t),s,t.component,t,ze(e),Be(e)+n.length,Je(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ue;return{consumedSegments:[],lastChild:0,parameters:{}}}const s=(e.matcher||et)(n,t,e);if(!s)throw new Ue;const r={};ot(s.posParams,(t,e)=>{r[e]=t.path});const i=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),r=new zt(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,We(t),s,t.component,t,ze(e),Be(e)+i.length,Je(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=$e(e,i,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new Ft(r,t)]}if(0===a.length&&0===c.length)return[new Ft(r,[])];const u=this.processSegment(a,l,c,"primary");return[new Ft(r,u)]}}function ze(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Be(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 $e(t,e,n,s,r){if(n.length>0&&function(t,e,n){return n.some(n=>qe(t,e,n)&&"primary"!==ve(n))}(t,n,s)){const r=new pt(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"!==ve(i)){const n=new pt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[ve(i)]=n}return r}(t,e,s,new pt(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=>qe(t,e,n))}(t,n,s)){const i=new pt(t.segments,function(t,e,n,s,r,i){const o={};for(const a of s)if(qe(t,n,a)&&!r[ve(a)]){const n=new pt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[ve(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 pt(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function qe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function We(t){return t.data||{}}function Je(t){return t.resolve||{}}function Ge(t){return function(e){return e.pipe(Object(b.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(f.a)(()=>e)):Object(o.a)([e])}))}}class Ke 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 Qe=new r.q("ROUTES");class Ze{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(f.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=n.create(t);return new ue(rt(s.injector.get(Qe)).map(ye),s)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):at(t()).pipe(Object(j.a)(t=>t instanceof r.v?Object(i.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class Xe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ye,this.attachRef=null}}class Ye{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 Xe,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class tn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function en(t){throw t}function nn(t,e,n){return e.parse("/")}function sn(t,e){return Object(i.a)(null)}let rn=(()=>{class t{constructor(t,e,n,s,i,o,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=s,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new p.a,this.errorHandler=en,this.malformedUriErrorHandler=nn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:sn,afterPreactivation:sn},this.urlHandlingStrategy=new tn,this.routeReuseStrategy=new Ke,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 u=i.get(r.z);this.isNgZoneEnabled=u instanceof r.z,this.resetConfig(c),this.currentUrlTree=new dt(new pt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ze(o,l,t=>this.triggerEvent(new q(t)),t=>this.triggerEvent(new W(t))),this.routerState=Mt(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(C.a)(t=>0!==t.id),Object(f.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(b.a)(t=>{let n=!1,s=!1;return Object(i.a)(t).pipe(Object(I.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(b.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(i.a)(t).pipe(Object(b.a)(t=>{const n=this.transitions.getValue();return e.next(new F(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?d.a:[t]}),Object(b.a)(t=>Promise.resolve(t)),(s=this.ngModule.injector,r=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(b.a)(t=>function(t,e,n,s,r){return new Ee(t,e,n,s,r).apply()}(s,r,o,t.extractedUrl,a).pipe(Object(f.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(I.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,r){return function(i){return i.pipe(Object(j.a)(i=>function(t,e,n,s,r="emptyOnly",i="legacy"){return new He(t,e,n,s,r,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),s,r).pipe(Object(f.a)(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(I.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(I.a)(t=>{const n=new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var s,r,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:s,source:r,restoredState:o,extras:a}=t,l=new F(n,this.serializeUrl(s),r,o);e.next(l);const c=Mt(s,this.rootComponentType).snapshot;return Object(i.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:s,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a}),Ge(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(I.a)(t=>{const e=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(f.a)(t=>Object.assign(Object.assign({},t),{guards:Re(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(j.a)(n=>{const{targetSnapshot:s,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?Object(i.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,s){return Object(o.a)(t).pipe(Object(j.a)(t=>function(t,e,n,s,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(i.a)(!0);const a=o.map(i=>{const o=Ne(i,e,r);let a;if(function(t){return t&&he(t.canDeactivate)}(o))a=at(o.canDeactivate(t,e,n,s));else{if(!he(o))throw new Error("Invalid CanDeactivate guard");a=at(o(t,e,n,s))}return a.pipe(A())});return Object(i.a)(a).pipe(fe())}(t.component,t.route,n,e,s)),A(t=>!0!==t,!0))}(l,s,r,t).pipe(Object(j.a)(n=>n&&"boolean"==typeof n?function(t,e,n,s){return Object(o.a)(e).pipe(Object(O.a)(e=>Object(o.a)([Le(e.route.parent,s),Fe(e.route,s),Me(t,e.path,n),Ve(t,e.route,n)]).pipe(Object(m.a)(),A(t=>!0!==t,!0))),A(t=>!0!==t,!0))}(s,a,t,e):Object(i.a)(n)),Object(f.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(I.a)(t=>{if(de(t.guardsResult)){const e=tt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(I.a)(t=>{const e=new z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(C.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new V(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Ge(t=>{if(t.guards.canActivateChecks.length)return Object(i.a)(t).pipe(Object(I.a)(t=>{const e=new B(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(b.a)(t=>{let n=!1;return Object(i.a)(t).pipe((s=this.paramsInheritanceStrategy,r=this.ngModule.injector,function(t){return t.pipe(Object(j.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(i.a)(t);let a=0;return Object(o.a)(n).pipe(Object(O.a)(t=>function(t,e,n,s){return function(t,e,n,s){const r=Object.keys(t);if(0===r.length)return Object(i.a)({});const a={};return Object(o.a)(r).pipe(Object(j.a)(r=>function(t,e,n,s){const r=Ne(t,e,s);return at(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,s).pipe(Object(I.a)(t=>{a[r]=t}))),Object(R.a)(1),Object(j.a)(()=>Object.keys(a).length===r.length?Object(i.a)(a):d.a))}(t._resolve,t,e,s).pipe(Object(f.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Ht(t,n).resolve),null)))}(t.route,e,s,r)),Object(I.a)(()=>a++),Object(R.a)(1),Object(j.a)(e=>a===n.length?Object(i.a)(t):d.a))}))}),Object(I.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new V(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(I.a)(t=>{const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Ge(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(f.a)(t=>{const e=function(t,e,n){const s=Gt(t,e._root,n?n._root:void 0);return new Vt(s,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(I.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(f.a)(t=>(new le(a,t.targetRouterState,t.currentRouterState,l).activate(r),t))),Object(I.a)({next(){n=!0},complete(){n=!0}}),Object(N.a)(()=>{if(!n&&!s){this.resetUrlToCurrentUrlTree();const n=new V(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(x.a)(n=>{if(s=!0,(r=n)&&r.ngNavigationCancelingError){const s=de(n.url);s||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new V(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),s?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return 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 M(t.id,this.serializeUrl(t.extractedUrl),n);e.next(s);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var r;return d.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){ge(t),this.config=t.map(ye),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 c=null;switch(i){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=s||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,s,r){if(0===n.length)return Xt(e.root,e.root,e,s,r);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new te(!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 ot(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 te(n,e,s)}(n);if(i.toRoot())return Xt(e.root,new pt([],{}),e,s,r);const o=function(t,e,n){if(t.isAbsolute)return new ee(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ee(t,t===e.root,0)}const s=Qt(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 ee(s,!1,r-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+s,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?se(o.segmentGroup,o.index,i.commands):ne(o.segmentGroup,o.index,i.commands);return Xt(o.segmentGroup,a,e,s,r)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=de(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{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 L(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,c,u;r?(l=r.resolve,c=r.reject,u=r.promise):u=new Promise((t,e)=>{l=t,c=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:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.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.Sb(r.N),r.Sb(bt),r.Sb(Ye),r.Sb(s.h),r.Sb(r.r),r.Sb(r.w),r.Sb(r.i),r.Sb(void 0))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),on=(()=>{class t{constructor(t,e,n,s,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new p.a,null==n&&s.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:ln(this.skipLocationChange),replaceUrl:ln(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ln(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(rn),r.Jb(Ut),r.Tb("tabindex"),r.Jb(r.E),r.Jb(r.l))},t.\u0275dir=r.Eb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.Vb("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.xb]}),t})(),an=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new p.a,this.subscription=t.events.subscribe(t=>{t instanceof L&&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:ln(this.skipLocationChange),replaceUrl:ln(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:ln(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(rn),r.Jb(Ut),r.Jb(s.i))},t.\u0275dir=r.Eb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.Vb("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(r.Rb("href",e.href,r.lc),r.Ab("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.xb]}),t})();function ln(t){return""===t||!!t}let cn=(()=>{class t{constructor(t,e,n,s,r,i){this.router=t,this.element=e,this.renderer=n,this.cdr=s,this.link=r,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof L&&this.update()})}ngAfterContentInit(){Object(o.a)([this.links.changes,this.linksWithHrefs.changes,Object(i.a)(null)]).pipe(Object(D.a)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=Object(o.a)(e).pipe(Object(D.a)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(rn),r.Jb(r.l),r.Jb(r.E),r.Jb(r.h),r.Jb(on,8),r.Jb(an,8))},t.\u0275dir=r.Eb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(r.Cb(n,on,!0),r.Cb(n,an,!0)),2&t){let t;r.ic(t=r.Wb())&&(e.links=t),r.ic(t=r.Wb())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.xb]}),t})(),un=(()=>{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 hn(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.Jb(Ye),r.Jb(r.P),r.Jb(r.j),r.Tb("name"),r.Jb(r.h))},t.\u0275dir=r.Eb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class hn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Ut?this.route:t===Ye?this.childContexts:this.parent.get(t,e)}}class dn{}class pn{preload(t,e){return Object(i.a)(null)}}let fn=(()=>{class t{constructor(t,e,n,s,r){this.router=t,this.injector=s,this.preloadingStrategy=r,this.loader=new Ze(e,n,e=>t.triggerEvent(new q(e)),e=>t.triggerEvent(new W(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(C.a)(t=>t instanceof L),Object(O.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(o.a)(n).pipe(Object(D.a)(),Object(f.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(j.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(rn),r.Sb(r.w),r.Sb(r.i),r.Sb(r.r),r.Sb(dn))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),mn=(()=>{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 F?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof L&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Z&&(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 Z(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.Sb(rn),r.Sb(s.q),r.Sb(void 0))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();const gn=new r.q("ROUTER_CONFIGURATION"),bn=new r.q("ROUTER_FORROOT_GUARD"),_n=[s.h,{provide:bt,useClass:_t},{provide:rn,useFactory:function(t,e,n,r,i,o,a,l={},c,u){const h=new rn(null,t,e,n,r,i,o,rt(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),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.u)();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return h},deps:[bt,Ye,s.h,r.r,r.w,r.i,Qe,gn,[class{},new r.A],[class{},new r.A]]},Ye,{provide:Ut,useFactory:function(t){return t.routerState.root},deps:[rn]},{provide:r.w,useClass:r.K},fn,pn,class{preload(t,e){return e().pipe(Object(x.a)(()=>Object(i.a)(null)))}},{provide:gn,useValue:{enableTracing:!1}}];function yn(){return new r.y("Router",rn)}let vn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[_n,xn(e),{provide:bn,useFactory:Cn,deps:[[rn,new r.A,new r.J]]},{provide:gn,useValue:n||{}},{provide:s.i,useFactory:Sn,deps:[s.p,[new r.p(s.a),new r.A],gn]},{provide:mn,useFactory:wn,deps:[rn,s.q,gn]},{provide:dn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:pn},{provide:r.y,multi:!0,useFactory:yn},[On,{provide:r.d,multi:!0,useFactory:En,deps:[On]},{provide:Tn,useFactory:kn,deps:[On]},{provide:r.b,multi:!0,useExisting:Tn}]]}}static forChild(e){return{ngModule:t,providers:[xn(e)]}}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)(r.Sb(bn,8),r.Sb(rn,8))}}),t})();function wn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new mn(t,e,n)}function Sn(t,e,n={}){return n.useHash?new s.e(t,e):new s.o(t,e)}function Cn(t){return"guarded"}function xn(t){return[{provide:r.a,multi:!0,useValue:t},{provide:Qe,multi:!0,useValue:t}]}let On=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new p.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(rn),s=this.injector.get(gn);return"disabled"===s.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(i.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(gn),n=this.injector.get(fn),s=this.injector.get(mn),i=this.injector.get(rn),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.Sb(r.r))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();function En(t){return t.appInitializer.bind(t)}function kn(t){return t.bootstrapListener.bind(t)}const Tn=new r.q("Router Initializer")},u47x:function(t,e,n){"use strict";n.d(e,"a",function(){return R}),n.d(e,"b",function(){return _}),n.d(e,"c",function(){return j}),n.d(e,"d",function(){return y}),n.d(e,"e",function(){return T}),n.d(e,"f",function(){return x}),n.d(e,"g",function(){return I}),n.d(e,"h",function(){return O});var s=n("ofXK"),r=n("fXoL"),i=n("nLfN"),o=n("XNiG"),a=n("quSY"),l=n("LRne"),c=n("FtGj"),u=n("vkgz"),h=n("Kj3r"),d=n("pLZG"),p=n("lJxs"),f=n("IzEk"),m=n("8LU1"),g=n("GU7r");class b{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.a,this._typeaheadSubscription=a.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.a,this.change=new o.a,t instanceof r.D&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(u.a)(t=>this._pressedLetters.push(t)),Object(h.a)(t),Object(d.a)(()=>this._pressedLetters.length>0),Object(p.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.m:return void this.tabOut.next();case c.d:if(this._vertical&&n){this.setNextItemActive();break}return;case c.n:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.k:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.i:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.h:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.e:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Object(c.q)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.a&&e<=c.o||e>=c.p&&e<=c.j)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),s=e[n];this._activeItem=null==s?null:s,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const s=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof r.D?this._items.toArray():this._items}}class _ extends b{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class y extends b{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let v=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===S(e))return!1;if(!this.isVisible(e))return!1}let s=t.nodeName.toLowerCase(),r=S(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==s&&"object"!==s&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===s?!!t.hasAttribute("controls")&&-1!==r:"video"===s?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||w(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(i.a))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(i.a))},token:t,providedIn:"root"}),t})();function w(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function S(t){if(!w(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class C{constructor(t,e,n,s,r=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(f.a)(1)).subscribe(t)}}let x=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new C(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(v),r.Sb(r.z),r.Sb(s.d))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(v),Object(r.Sb)(r.z),Object(r.Sb)(s.d))},token:t,providedIn:"root"}),t})();function O(t){return 0===t.buttons}"undefined"!=typeof Element&∈const E=new r.q("cdk-focus-monitor-default-options"),k=Object(i.f)({passive:!0,capture:!0});let T=(()=>{class t{constructor(t,e,n,s){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=O(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=A(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=A(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let s=e;s;s=s.parentElement)n.call(this,t,s)},this._document=n,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){const n=Object(m.d)(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(l.a)(null);const s=Object(i.c)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;const a={checkChildren:e,subject:new o.a,rootNode:s};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const e=Object(m.d)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const s=Object(m.d)(t);s===this._getDocument().activeElement&&this._elementInfo.has(s)?this._originChanged(s,e,this._elementInfo.get(s)):(this._setOriginForCurrentEventQueue(e),"function"==typeof s.focus&&s.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=A(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===A(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,k),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,k)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,k),t.addEventListener("mousedown",this._documentMousedownListener,k),t.addEventListener("touchstart",this._documentTouchstartListener,k),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,k),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,k),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,k),t.removeEventListener("mousedown",this._documentMousedownListener,k),t.removeEventListener("touchstart",this._documentTouchstartListener,k),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(r.z),r.Sb(i.a),r.Sb(s.d,8),r.Sb(E,8))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(r.z),Object(r.Sb)(i.a),Object(r.Sb)(s.d,8),Object(r.Sb)(E,8))},token:t,providedIn:"root"}),t})();function A(t){return t.composedPath?t.composedPath()[0]:t.target}let j=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.n}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l),r.Jb(T))},t.\u0275dir=r.Eb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),I=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(i.a),r.Sb(s.d))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(i.a),Object(r.Sb)(s.d))},token:t,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)(r.Sb(I))},imports:[[i.b,g.c]]}),t})()},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()}}},vxfF:function(t,e,n){"use strict";n.d(e,"a",function(){return m}),n.d(e,"b",function(){return b}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return _}),n.d(e,"e",function(){return g}),n("8LU1");var s=n("fXoL"),r=n("XNiG"),i=n("LRne"),o=n("HDdC"),a=n("xgIS");n("eNwd"),n("3N8a"),n("IjjT"),n("quSY"),n("7+OI"),n("/uUt");var l=n("3UWI"),c=n("pLZG"),u=n("1G5W");n("JX91"),n("Zy1z"),n("eIep"),n("7o/Q"),n("WMd4"),n("9ppp"),n("Ylt2");var h=n("nLfN"),d=n("ofXK"),p=n("cH1L");n("0EQZ");let f=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new r.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new o.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Object(l.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(i.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(c.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,s)=>{this._scrollableContainsElement(s,t)&&e.push(s)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(a.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(s.z),s.Sb(h.a),s.Sb(d.d,8))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(s.z),Object(s.Sb)(h.a),Object(s.Sb)(d.d,8))},token:t,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e,n,s){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=s,this._destroyed=new r.a,this._elementScrolled=new o.a(t=>this.ngZone.runOutsideAngular(()=>Object(a.a)(this.elementRef.nativeElement,"scroll").pipe(Object(u.a)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(h.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(h.d)()?t.left=t.right:1==Object(h.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Object(h.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Object(h.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Object(h.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(f),s.Jb(s.z),s.Jb(p.b,8))},t.\u0275dir=s.Eb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),g=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new r.a,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,s=n.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-s.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(l.a)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(h.a),s.Sb(s.z),s.Sb(d.d,8))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(h.a),Object(s.Sb)(s.z),Object(s.Sb)(d.d,8))},token:t,providedIn:"root"}),t})(),b=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})(),_=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[p.a,h.b,b],p.a,b]}),t})()},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return f});var s=n("XNiG"),r=n("HDdC"),i=n("7o/Q"),o=n("quSY");function a(){return function(t){return t.lift(new l(t))}}class l{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 i.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 u extends r.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 o.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.a.EMPTY)),t}refCount(){return a()(this)}}const h=(()=>{const t=u.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 d 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 f(){return t=>{return a()((e=p,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,h);return s.source=t,s.subjectFactory=n,s})(t));var e}}},xDj2:function(t,e,n){"use strict";n.d(e,"a",function(){return s});class s{static getHashFragmentParams(t){let e=t||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const n=e.indexOf("?");return e=e.substr(n>-1?n+1:1),s.parseQueryString(e)}static parseQueryString(t){const e={};let n,s,r,i,o,a,l;if(null===t)return e;n=t.split("&");for(let c=0;ce.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()}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var s=n("HDdC"),r=n("DH7j"),i=n("n6bG"),o=n("lJxs");function a(t,e,n,c){return Object(i.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(o.a)(t=>Object(r.a)(t)?c(...t):c(t))):new s.a(s=>{l(t,e,function(t){s.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},s,n)})}function l(t,e,n,s,r){let i;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(e,n,r),i=()=>s.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(e,n),i=()=>s.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(e,n),i=()=>s.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let i=0,o=t.length;ie.schedule(i,0,{error:t,subscriber:n}):e=>e.error(t))}function i({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,n){"use strict";n.r(e);var s=n("fXoL"),r=n("R1ws"),i=n("ofXK"),o=n("bTqV"),a=n("NFeN"),l=n("FKr1"),c=n("8LU1"),u=n("XNiG"),h=n("1G5W"),d=n("JX91"),p=n("u47x"),f=(n("0EQZ"),n("FtGj"));n("3Pt+");let m=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[l.e],l.e]}),t})();const g=["*"],b=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],_=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class y{}const v=Object(l.t)(Object(l.s)(y));class w{}const S=Object(l.s)(w),C=new s.q("MatList"),x=new s.q("MatNavList");let O=(()=>{class t extends v{constructor(){super(...arguments),this._stateChanges=new u.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return E(e||t)},t.\u0275cmp=s.Db({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.yb([{provide:x,useExisting:t}]),s.wb,s.xb],ngContentSelectors:g,decls:1,vars:0,template:function(t,e){1&t&&(s.cc(),s.bc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})();const E=s.Qb(O);let k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Eb({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Eb({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),A=(()=>{class t extends S{constructor(t,e,n,s){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new u.a,this._disabled=!1,this._isInteractiveList=!!(n||s&&"action-list"===s._getListType()),this._list=n||s;const r=this._getHostElement();"button"!==r.nodeName.toLowerCase()||r.hasAttribute("type")||r.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Object(h.a)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Object(c.b)(t)}ngAfterContentInit(){Object(l.w)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(s.h),s.Jb(x,8),s.Jb(C,8))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){if(1&t&&(s.Cb(n,k,!0),s.Cb(n,T,!0),s.Cb(n,l.f,!0)),2&t){let t;s.ic(t=s.Wb())&&(e._avatar=t.first),s.ic(t=s.Wb())&&(e._icon=t.first),s.ic(t=s.Wb())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.Bb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.wb],ngContentSelectors:_,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.cc(b),s.Ob(0,"div",0),s.Kb(1,"div",1),s.bc(2),s.Ob(3,"div",2),s.bc(4,1),s.Nb(),s.bc(5,2),s.Nb()),2&t&&(s.zb(1),s.dc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[l.m],encapsulation:2,changeDetection:0}),t})(),j=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[l.g,l.n,l.e,l.l,i.c],l.g,l.e,l.l,m]}),t})();var I=n("nLfN"),R=n("vxfF"),N=n("xgIS"),D=n("VRyK"),P=n("pLZG"),F=n("lJxs"),L=n("7o/Q");function V(t){return e=>e.lift(new M(t))}class M{constructor(t){this.value=t}call(t,e){return e.subscribe(new U(t,this.value))}}class U extends L.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}var H=n("/uUt"),z=n("IzEk"),B=n("Kj3r"),$=n("R0Ic"),q=n("cH1L");const W=["*"];function J(t,e){if(1&t){const t=s.Pb();s.Ob(0,"div",2),s.Vb("click",function(){return s.kc(t),s.Xb()._onBackdropClicked()}),s.Nb()}if(2&t){const t=s.Xb();s.Bb("mat-drawer-shown",t._isShowingBackdrop())}}function G(t,e){1&t&&(s.Ob(0,"mat-drawer-content"),s.bc(1,2),s.Nb())}const K=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Q=["mat-drawer","mat-drawer-content","*"];function Z(t,e){if(1&t){const t=s.Pb();s.Ob(0,"div",2),s.Vb("click",function(){return s.kc(t),s.Xb()._onBackdropClicked()}),s.Nb()}if(2&t){const t=s.Xb();s.Bb("mat-drawer-shown",t._isShowingBackdrop())}}function X(t,e){1&t&&(s.Ob(0,"mat-sidenav-content",3),s.bc(1,2),s.Nb())}const Y=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],tt=["mat-sidenav","mat-sidenav-content","*"],et=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",nt={transformDrawer:Object($.j)("transform",[Object($.g)("open, open-instant",Object($.h)({transform:"none",visibility:"visible"})),Object($.g)("void",Object($.h)({"box-shadow":"none",visibility:"hidden"})),Object($.i)("void => open-instant",Object($.e)("0ms")),Object($.i)("void <=> open, open-instant => void",Object($.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},st=new s.q("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),rt=new s.q("MAT_DRAWER_CONTAINER");let it=(()=>{class t extends R.a{constructor(t,e,n,s,r){super(n,s,r),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.h),s.Jb(Object(s.T)(()=>at)),s.Jb(s.l),s.Jb(R.c),s.Jb(s.z))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.pc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.wb],ngContentSelectors:W,decls:1,vars:0,template:function(t,e){1&t&&(s.cc(),s.bc(0))},encapsulation:2,changeDetection:0}),t})(),ot=(()=>{class t{constructor(t,e,n,r,i,o,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=r,this._ngZone=i,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new u.a,this._animationEnd=new u.a,this._animationState="void",this.openedChange=new s.n(!0),this._openedStream=this.openedChange.pipe(Object(P.a)(t=>t),Object(F.a)(()=>{})),this.openedStart=this._animationStarted.pipe(Object(P.a)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),V(void 0)),this._closedStream=this.openedChange.pipe(Object(P.a)(t=>!t),Object(F.a)(()=>{})),this.closedStart=this._animationStarted.pipe(Object(P.a)(t=>t.fromState!==t.toState&&"void"===t.toState),V(void 0)),this._destroyed=new u.a,this.onPositionChanged=new s.n,this._modeChanged=new u.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(N.a)(this._elementRef.nativeElement,"keydown").pipe(Object(P.a)(t=>t.keyCode===f.g&&!this.disableClose&&!Object(f.q)(t)),Object(h.a)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Object(H.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:n}=t;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Object(c.b)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Object(c.b)(t)}get opened(){return this._opened}set opened(t){this.toggle(Object(c.b)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,n="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Object(z.a)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(p.f),s.Jb(p.e),s.Jb(I.a),s.Jb(s.z),s.Jb(i.d,8),s.Jb(rt,8))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.qc("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(s.Ab("align",null),s.rc("@transform",e._animationState),s.Bb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:W,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.cc(),s.Ob(0,"div",0),s.bc(1),s.Nb())},encapsulation:2,data:{animation:[nt.transformDrawer]},changeDetection:0}),t})(),at=(()=>{class t{constructor(t,e,n,r,i,o=!1,a){this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=a,this._drawers=new s.D,this.backdropClick=new s.n,this._destroyed=new u.a,this._doCheckSubject=new u.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new u.a,t&&t.change.pipe(Object(h.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(Object(h.a)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Object(c.b)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Object(c.b)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(d.a)(this._allDrawers),Object(h.a)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(d.a)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Object(B.a)(10),Object(h.a)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const n=this._left._getWidth();t+=n,e-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const n=this._right._getWidth();e+=n,t-=n}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Object(P.a)(t=>t.fromState!==t.toState),Object(h.a)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(h.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Object(h.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Object(z.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Object(h.a)(Object(D.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(q.b,8),s.Jb(s.l),s.Jb(s.z),s.Jb(s.h),s.Jb(R.e),s.Jb(st),s.Jb(r.a,8))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){if(1&t&&(s.Cb(n,it,!0),s.Cb(n,ot,!0)),2&t){let t;s.ic(t=s.Wb())&&(e._content=t.first),s.ic(t=s.Wb())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&s.wc(it,!0),2&t){let t;s.ic(t=s.Wb())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.Bb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s.yb([{provide:rt,useExisting:t}])],ngContentSelectors:Q,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(s.cc(K),s.sc(0,J,1,2,"div",0),s.bc(1),s.bc(2,1),s.sc(3,G,2,0,"mat-drawer-content",1)),2&t&&(s.dc("ngIf",e.hasBackdrop),s.zb(3),s.dc("ngIf",!e._content))},directives:[i.l,it],styles:[et],encapsulation:2,changeDetection:0}),t})(),lt=(()=>{class t extends it{constructor(t,e,n,s,r){super(t,e,n,s,r)}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.h),s.Jb(Object(s.T)(()=>ht)),s.Jb(s.l),s.Jb(R.c),s.Jb(s.z))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.pc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.wb],ngContentSelectors:W,decls:1,vars:0,template:function(t,e){1&t&&(s.cc(),s.bc(0))},encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t extends ot{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Object(c.b)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Object(c.e)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Object(c.e)(t)}}return t.\u0275fac=function(e){return ut(e||t)},t.\u0275cmp=s.Db({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.Ab("align",null),s.pc("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.Bb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.wb],ngContentSelectors:W,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.cc(),s.Ob(0,"div",0),s.bc(1),s.Nb())},encapsulation:2,data:{animation:[nt.transformDrawer]},changeDetection:0}),t})();const ut=s.Qb(ct);let ht=(()=>{class t extends at{}return t.\u0275fac=function(e){return dt(e||t)},t.\u0275cmp=s.Db({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){if(1&t&&(s.Cb(n,lt,!0),s.Cb(n,ct,!0)),2&t){let t;s.ic(t=s.Wb())&&(e._content=t.first),s.ic(t=s.Wb())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.Bb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s.yb([{provide:rt,useExisting:t}]),s.wb],ngContentSelectors:tt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.cc(Y),s.sc(0,Z,1,2,"div",0),s.bc(1),s.bc(2,1),s.sc(3,X,2,0,"mat-sidenav-content",1)),2&t&&(s.dc("ngIf",e.hasBackdrop),s.zb(3),s.dc("ngIf",!e._content))},directives:[i.l,lt,R.a],styles:[et],encapsulation:2,changeDetection:0}),t})();const dt=s.Qb(ht);let pt=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[i.c,l.e,I.b,R.b],R.b,l.e]}),t})();const ft=["*",[["mat-toolbar-row"]]],mt=["*","mat-toolbar-row"];class gt{constructor(t){this._elementRef=t}}const bt=Object(l.r)(gt);let _t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Eb({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),yt=(()=>{class t extends bt{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(I.a),s.Jb(i.d))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Cb(n,_t,!0),2&t){let t;s.ic(t=s.Wb())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.Bb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.wb],ngContentSelectors:mt,decls:2,vars:0,template:function(t,e){1&t&&(s.cc(ft),s.bc(0),s.bc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),vt=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[l.e],l.e]}),t})();var wt=n("tk/3"),St=n("OtPg"),Ct=n("9r3w"),xt=n("ZDaG"),Ot=n("OCPU"),Et=n("P3kg"),kt=n("5+tZ"),Tt=n("RJIb");class At{constructor(t){this.whitelistedUrls=t&&t.whitelistedUrls||[]}}let jt=(()=>{class t{constructor(t,e=new At){this.tokens=t,this.options=e}intercept(t,e){return this.isWhitelistedUrl(t)?this.tokens.getValidAccessToken().pipe(Object(kt.a)(n=>e.handle(t.clone({setHeaders:{Authorization:"Bearer "+n}})))):e.handle(t)}isWhitelistedUrl(t){const e=t.url;return this.options.whitelistedUrls.findIndex(t=>"string"==typeof t?t===e:t instanceof RegExp&&t.test(e))>-1}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(Tt.a),s.Sb(At))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();var It=n("CYhE"),Rt=n("s2Hm"),Nt=n("iVJa"),Dt=n("og18"),Pt=n("3/4O"),Ft=n("2Vo4"),Lt=n("itXk"),Vt=n("Zy1z");function Mt(t){return{principal:(t=t||{}).user_name||t.username||t.email||null,authorities:t.authorities||[],details:t}}class Ut{constructor(t){this.mapper=t&&t.mapper||Mt}}var Ht=n("JkW8"),zt=n("d8a0");let Bt=(()=>{class t extends Et.b{constructor(t,e){super(),this.tokensService=t,this.options=e,this.subject=new Ft.a(null),this.subject$=this.subject.asObservable(),this.principal$=this.subject$.pipe(Object(F.a)(t=>t&&t.principal||null)),this.authorities$=this.subject$.pipe(Object(F.a)(t=>t&&t.authorities||[])),this.details$=this.subject$.pipe(Object(F.a)(t=>t&&t.details||null)),this.displayName$=this.details$.pipe(Object(F.a)(t=>t&&t.displayName||null)),this.isAuthorized$=this.authorities$.pipe(Object(F.a)(t=>t.length>0)),this.changes$=this.subject$.pipe(Object(Vt.a)(),Object(P.a)(t=>t[0]!==t[1]&&(t[0]&&t[0].principal||null)!==(t[1]&&t[1].principal||null)),Object(F.a)(t=>t[1])),this.sub=this.tokensService.accessToken$.subscribe(t=>{this.decode(t)})}ngOnDestroy(){this.sub.unsubscribe(),this.subject.complete()}setSubject(t){this.subject.next(t)}getSubject(){return this.subject.getValue()}getAuthorities(){const t=this.subject.getValue();return t&&t.authorities||[]}updateDetails(t){const e=this.getSubject();e&&this.subject.next(Object.assign(Object.assign({},e),{details:t}))}isAuthenticated(){return Object(Lt.b)([this.tokensService.accessToken$,this.tokensService.refreshToken$]).pipe(Object(z.a)(1),Object(F.a)(([t,e])=>!(!t&&!e)&&(t?this.tokensService.getAuthenticationFlowType(t)===zt.b.CLIENT_CREDENTIALS||!Ht.a.isTokenExpired(t)||e&&!Ht.a.isTokenExpired(e):!Ht.a.isTokenExpired(e))))}clear(){this.subject.next(null)}decode(t){const e=Ht.a.decodeToken(t);this.setSubject(this.options.mapper(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(Tt.a),s.Sb(Ut))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();var $t=n("RWdr"),qt=n("Pv2G"),Wt=n("ngFo");let Jt=(()=>{class t{constructor(t){this.tokens=t}authenticate(t=new wt.e,e=new wt.d){return this.tokens.authenticateWithClientCredentials(t,e)}clear(){this.tokens.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(Tt.a))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();function Gt(t){return e=>new qt.a(e,new Nt.a(t))}function Kt(t){return e=>new Wt.a(e,new Dt.a(t))}function Qt(t){return e=>new Bt(e,new Ut(t))}function Zt(t){return e=>new jt(e,new At(t))}let Xt=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:Tt.a,useFactory:(n=e.tokens,s=e.passwordFlow,r=e.authorizationCodeFlow,i=e.clientCredentialsFlow,t=>new Tt.a(t,new It.a(n),new Rt.a(s),new Dt.a(r),new Pt.a(i))),deps:[wt.b]},{provide:$t.a,useFactory:t=>new $t.a(t),deps:[Tt.a]},{provide:qt.a,useFactory:Gt(e.implicitFlow),deps:[Tt.a]},{provide:Wt.a,useFactory:Kt(e.authorizationCodeFlow),deps:[Tt.a]},{provide:Jt,useFactory:t=>new Jt(t),deps:[Tt.a]},{provide:Et.b,useFactory:Qt(e.subject),deps:[Tt.a]},{provide:wt.a,useFactory:Zt(e.interceptor),deps:[Tt.a],multi:!0}]};var n,s,r,i}}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})();var Yt=n("tyNb");const te=[{path:"home",loadChildren:()=>Promise.all([n.e(0),n.e(8)]).then(n.bind(null,"ct+p")).then(t=>t.HomeModule),data:{title:"ngx-security",pageTitle:"Home",pageIcon:"home"}},{path:"core",loadChildren:()=>Promise.all([n.e(0),n.e(7)]).then(n.bind(null,"pKmL")).then(t=>t.CoreModule),data:{title:"ngx-security/core",pageTitle:"Core",pageIcon:"security"}},{path:"roles",loadChildren:()=>Promise.all([n.e(0),n.e(10)]).then(n.bind(null,"ESCD")).then(t=>t.RolesModule),data:{title:"ngx-security/roles",pageTitle:"Roles",pageIcon:"security"}},{path:"permissions",loadChildren:()=>Promise.all([n.e(0),n.e(9)]).then(n.bind(null,"jl54")).then(t=>t.PermissionsModule),data:{title:"ngx-security/permissions",pageTitle:"Permissions",pageIcon:"security"}},{path:"auth",loadChildren:()=>Promise.all([n.e(0),n.e(6)]).then(n.bind(null,"Yj9t")).then(t=>t.AuthModule),data:{title:"ngx-security/auth",pageTitle:"Auth",pageIcon:"security"}},{path:"",redirectTo:"/home",pathMatch:"full"}];let ee=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[Yt.f.forRoot(te)],Yt.f]}),t})();const ne=n("kiQV").version;let se=(()=>{class t{constructor(t,e){this.version=ne,this.pageInfo$=t.events.pipe(Object(P.a)(t=>t instanceof Yt.b),Object(F.a)(()=>e),Object(F.a)(t=>t.firstChild||t),Object(P.a)(t=>"primary"===t.outlet),Object(kt.a)(t=>t.data),Object(F.a)(t=>t||{}))}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(Yt.c),s.Jb(Yt.a))},t.\u0275cmp=s.Db({type:t,selectors:[["app-root"]],decls:50,vars:10,consts:[["color","primary"],["mat-icon-button","",3,"click"],[1,"app-name"],["mode","side"],["nav",""],["routerLink","home","routerLinkActive","active",2,"border-left-color","#f5f5f5"],["matListIcon",""],["matLine",""],["routerLink","core","routerLinkActive","active",2,"border-left-color","#75ff03"],["routerLink","roles","routerLinkActive","active",2,"border-left-color","#feff00"],["routerLink","permissions","routerLinkActive","active",2,"border-left-color","#feff00"],["routerLink","auth","routerLinkActive","active",2,"border-left-color","#ff9100"],[2,"margin-left","8px"],[1,"page-container"]],template:function(t,e){if(1&t){const t=s.Pb();s.Ob(0,"mat-toolbar",0),s.Ob(1,"mat-toolbar-row"),s.Ob(2,"button",1),s.Vb("click",function(){return s.kc(t),s.jc(12).toggle()}),s.Ob(3,"mat-icon"),s.tc(4,"menu"),s.Nb(),s.Nb(),s.Ob(5,"h1",2),s.tc(6),s.Yb(7,"async"),s.Nb(),s.Ob(8,"span"),s.tc(9),s.Nb(),s.Nb(),s.Nb(),s.Ob(10,"mat-sidenav-container"),s.Ob(11,"mat-sidenav",3,4),s.Ob(13,"mat-nav-list"),s.Ob(14,"mat-list-item",5),s.Ob(15,"mat-icon",6),s.tc(16,"home"),s.Nb(),s.Ob(17,"h1",7),s.tc(18,"Home"),s.Nb(),s.Nb(),s.Ob(19,"mat-list-item",8),s.Ob(20,"mat-icon",6),s.tc(21,"security"),s.Nb(),s.Ob(22,"h1",7),s.tc(23,"Core"),s.Nb(),s.Nb(),s.Ob(24,"mat-list-item",9),s.Ob(25,"mat-icon",6),s.tc(26,"security"),s.Nb(),s.Ob(27,"h1",7),s.tc(28,"Roles"),s.Nb(),s.Nb(),s.Ob(29,"mat-list-item",10),s.Ob(30,"mat-icon",6),s.tc(31,"security"),s.Nb(),s.Ob(32,"h1",7),s.tc(33,"Permissions"),s.Nb(),s.Nb(),s.Ob(34,"mat-list-item",11),s.Ob(35,"mat-icon",6),s.tc(36,"security"),s.Nb(),s.Ob(37,"h1",7),s.tc(38,"Auth"),s.Nb(),s.Nb(),s.Nb(),s.Nb(),s.Ob(39,"mat-sidenav-content"),s.Ob(40,"mat-toolbar"),s.Ob(41,"mat-toolbar-row"),s.Ob(42,"mat-icon"),s.tc(43),s.Yb(44,"async"),s.Nb(),s.Ob(45,"h1",12),s.tc(46),s.Yb(47,"async"),s.Nb(),s.Nb(),s.Nb(),s.Ob(48,"div",13),s.Kb(49,"router-outlet"),s.Nb(),s.Nb(),s.Nb()}if(2&t){let t=null,n=null,r=null;s.zb(6),s.uc(null==(t=s.Zb(7,4,e.pageInfo$))?null:t.title),s.zb(3),s.uc(e.version),s.zb(34),s.uc(null==(n=s.Zb(44,6,e.pageInfo$))?null:n.pageIcon),s.zb(3),s.uc(null==(r=s.Zb(47,8,e.pageInfo$))?null:r.pageTitle)}},directives:[yt,_t,o.a,a.a,ht,ct,O,A,Yt.d,Yt.e,T,l.f,lt,Yt.g],pipes:[i.b],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:stretch;height:100%}[_nghost-%COMP%] h1.app-name[_ngcontent-%COMP%]{flex:1;margin-left:8px}[_nghost-%COMP%] mat-sidenav-container[_ngcontent-%COMP%]{flex:1 1 100%}[_nghost-%COMP%] .page-container[_ngcontent-%COMP%]{padding:1em;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] mat-list-item[_ngcontent-%COMP%]{border-left:3px solid}[_nghost-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(.active){border-left-color:transparent!important}"]}),t})();var re=n("hCJx"),ie=n("8Cu2");let oe=(()=>{class t{}return t.\u0275mod=s.Hb({type:t,bootstrap:[se]}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[{provide:i.i,useClass:i.e},{provide:St.a,useValue:{coreLibraryLoader:()=>n.e(11).then(n.t.bind(null,"ECCn",7)),languages:{typescript:()=>n.e(13).then(n.t.bind(null,"r0Rl",7)),scss:()=>n.e(12).then(n.t.bind(null,"YROV",7)),xml:()=>n.e(14).then(n.t.bind(null,"jctj",7))}}}],imports:[[r.b,ee,wt.c,vt,pt,j,o.b,a.b,St.c,Ct.a.forRoot(),xt.a.forRoot({subjectRoles:{provide:re.b,useClass:re.c}}),Ot.a.forRoot({subjectPermissions:{provide:ie.b,useClass:ie.c}}),Xt.forRoot({passwordFlow:{tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret",useHttpBasicAuth:!0},implicitFlow:{loginUrl:"loginUrl",clientId:"clientId"},authorizationCodeFlow:{loginUrl:"loginUrl",tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret",useHttpBasicAuth:!0},clientCredentialsFlow:{tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret"},tokens:{mapper:t=>({accessToken:(t=t||{}).access_token||t.accessToken||null,refreshToken:t.refresh_token||t.refreshToken||null})},subject:{mapper:t=>({principal:(t=t||{}).user_name||t.username||t.email||null,authorities:t.authorities||[],details:t})},interceptor:{whitelistedUrls:[new RegExp(".*/my-api.*")]}})]]}),t})();var ae=n("jhN1");Object(s.S)(),ae.c().bootstrapModule(oe).catch(t=>console.log(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 t instanceof r.a?t.subscribe(e):Object(i.a)(t)(e)}}},[[0,1]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"/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))}}},0:function(t,e,n){t.exports=n("zUnb")},"0EQZ":function(t,e,n){"use strict";n.d(e,"a",function(){return l}),n.d(e,"b",function(){return u}),n.d(e,"c",function(){return c}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return a});var s=n("7+OI"),r=n("LRne"),i=n("XNiG"),o=n("fXoL");function a(t){return t&&"function"==typeof t.connect}class l extends class{}{constructor(t){super(),this._data=t}connect(){return Object(s.a)(this._data)?this._data:Object(r.a)(this._data)}disconnect(){}}class c{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,s,r){t.forEachOperation((t,i,o)=>{let a,l;null==t.previousIndex?(a=this._insertView(()=>n(t,i,o),o,e,s(t)),l=a?1:0):null==o?(this._detachAndCacheView(i,e),l=3):(a=this._moveView(i,o,e,s(t)),l=2),r&&r({context:null==a?void 0:a.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy()}_insertView(t,e,n,s){let r=this._insertViewFromCache(e,n);if(r)return void(r.context.$implicit=s);const i=t();return n.createEmbeddedView(i.templateRef,i.context,i.index)}_detachAndCacheView(t,e){const n=this._detachView(t,e);this._maybeCacheView(n,e)}_moveView(t,e,n,s){const r=n.get(t);return n.move(r,e),r.context.$implicit=s,r}_maybeCacheView(t,e){if(this._viewCache.lengththis._markSelected(t)):this._markSelected(e[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...t){this._verifyValueAssignment(t),t.forEach(t=>this._markSelected(t)),this._emitChangeEvent()}deselect(...t){this._verifyValueAssignment(t),t.forEach(t=>this._unmarkSelected(t)),this._emitChangeEvent()}toggle(t){this.isSelected(t)?this.deselect(t):this.select(t)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(t){return this._selection.has(t)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(t){this._multiple&&this.selected&&this._selected.sort(t)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(t){this.isSelected(t)||(this._multiple||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))}_unmarkSelected(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))}_unmarkAll(){this.isEmpty()||this._selection.forEach(t=>this._unmarkSelected(t))}_verifyValueAssignment(t){}}const h=new o.q("_ViewRepeater")},"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)}},"1G5W":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("zx2A");function r(t){return e=>e.lift(new i(t))}class i{constructor(t){this.notifier=t}call(t,e){const n=new o(t),r=Object(s.c)(this.notifier,new s.a(n));return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}class o extends s.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"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}}},"3/4O":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("d8a0");class r extends s.a{constructor(t){super(s.b.CLIENT_CREDENTIALS,t),this.tokenUrl=t&&t.tokenUrl||null,this.clientSecret=t&&t.clientSecret||null,this.useHttpBasicAuth=t&&t.useHttpBasicAuth||!0}}},"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 p}),n.d(e,"b",function(){return ct}),n.d(e,"c",function(){return _t}),n.d(e,"d",function(){return vt}),n.d(e,"e",function(){return Ct}),n.d(e,"f",function(){return l}),n.d(e,"g",function(){return N}),n.d(e,"h",function(){return P}),n.d(e,"i",function(){return F}),n.d(e,"j",function(){return ft}),n.d(e,"k",function(){return xt}),n.d(e,"l",function(){return mt});var s=n("fXoL"),r=n("ofXK"),i=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const l=new s.q("NgValueAccessor"),c={provide:l,useExisting:Object(s.T)(()=>u),multi:!0};let u=(()=>{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.Jb(s.E),s.Jb(s.l))},t.\u0275dir=s.Eb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&s.Vb("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[s.yb([c])]}),t})();const h={provide:l,useExisting:Object(s.T)(()=>p),multi:!0},d=new s.q("CompositionEventMode");let p=(()=>{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.u)()?Object(r.u)().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.Jb(s.E),s.Jb(s.l),s.Jb(d,8))},t.\u0275dir=s.Eb({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.Vb("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.yb([h])]}),t})();function f(t){return null==t||0===t.length}function m(t){return null!=t&&"number"==typeof t.length}const g=new s.q("NgValidators"),b=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 y{static min(t){return e=>{if(f(e.value)||f(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(f(e.value)||f(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return f(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return f(t.value)||_.test(t.value)?null:{email:!0}}static minLength(t){return e=>f(e.value)||!m(e.value)?null:e.value.lengthm(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return y.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(f(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 x(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function O(t){return null!=t?y.compose(x(t)):null}function E(t){return null!=t?y.composeAsync(x(t)):null}function k(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function T(t){return t._rawValidators}function A(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=O(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=E(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.Eb({type:t}),t})(),I=(()=>{class t extends j{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return R(e||t)},t.\u0275dir=s.Eb({type:t,features:[s.wb]}),t})();const R=s.Qb(I);class N extends j{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class D{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let P=(()=>{class t extends D{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(N,2))},t.\u0275dir=s.Eb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.Bb("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.wb]}),t})(),F=(()=>{class t extends D{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(I,2))},t.\u0275dir=s.Eb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&s.Bb("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.wb]}),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.Jb(s.E),s.Jb(s.l))},t.\u0275dir=s.Eb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&s.Vb("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[s.yb([L])]}),t})();const M={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.Fb({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(N),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.Jb(s.E),s.Jb(s.l),s.Jb(U),s.Jb(s.r))},t.\u0275dir=s.Eb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&s.Vb("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[s.yb([M])]}),t})();const z={provide:l,useExisting:Object(s.T)(()=>B),multi:!0};let B=(()=>{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.Jb(s.E),s.Jb(s.l))},t.\u0275dir=s.Eb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&s.Vb("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.yb([z])]}),t})();const $={provide:l,useExisting:Object(s.T)(()=>q),multi:!0};let q=(()=>{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.Jb(s.E),s.Jb(s.l))},t.\u0275dir=s.Eb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&s.Vb("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[s.yb([$])]}),t})();const W={provide:l,useExisting:Object(s.T)(()=>J),multi:!0};let J=(()=>{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._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&X(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&&X(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 K(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Q(t,e,n){const s=T(t);null!==e.validator?t.setValidators(k(s,e.validator)):"function"==typeof s&&t.setValidators([s]);const r=A(t);if(null!==e.asyncValidator?t.setAsyncValidators(k(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]),n){const n=()=>t.updateValueAndValidity();K(e._rawValidators,n),K(e._rawAsyncValidators,n)}}function Z(t,e,n){if(null!==t){if(null!==e.validator){const n=T(t);Array.isArray(n)&&n.length>0&&t.setValidators(n.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const n=A(t);Array.isArray(n)&&n.length>0&&t.setAsyncValidators(n.filter(t=>t!==e.asyncValidator))}}if(n){const t=()=>{};K(e._rawValidators,t),K(e._rawAsyncValidators,t)}}function X(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Y(t,e){Q(t,e,!1)}const tt=[u,B,V,q,J,H];function et(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function nt(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function st(t){return(at(t)?t.validators:t)||null}function rt(t){return Array.isArray(t)?O(t):t||null}function it(t,e){return(at(e)?e.asyncValidators:t)||null}function ot(t){return Array.isArray(t)?E(t):t||null}function at(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class lt{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=rt(this._rawValidators),this._composedAsyncValidatorFn=ot(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=rt(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ot(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 ut?s.controls.hasOwnProperty(t)?s.controls[t]:null:s instanceof ht&&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){at(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class ct extends lt{constructor(t=null,e,n){super(st(e),it(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){nt(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){nt(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 ut extends lt{constructor(t,e,n){super(st(e),it(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 ct?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 ht extends lt{constructor(t,e,n){super(st(e),it(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 ct?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 dt={provide:I,useExisting:Object(s.T)(()=>ft)},pt=(()=>Promise.resolve(null))();let ft=(()=>{class t extends I{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new s.n,this.form=new ut({},O(t),E(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){pt.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){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),nt(this._directives,t)})}addFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path),n=new ut({});Y(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){pt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){pt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,et(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.Jb(g,10),s.Jb(b,10))},t.\u0275dir=s.Eb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&s.Vb("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.yb([dt]),s.wb]}),t})(),mt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Eb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const gt=new s.q("NgModelWithFormControlWarning"),bt={provide:N,useExisting:Object(s.T)(()=>_t)};let _t=(()=>{class t extends N{constructor(t,e,n,r){super(),this._ngModelWarningConfig=r,this.update=new s.n,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(e),this.valueAccessor=function(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===p?n=t:(e=t,tt.some(t=>e.constructor===t)?s=t:r=t)}),r||s||n||null}(0,n)}set isDisabled(t){}ngOnChanges(t){this._isControlChanged(t)&&(G(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(g,10),s.Jb(b,10),s.Jb(l,10),s.Jb(gt,8))},t.\u0275dir=s.Eb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[s.yb([bt]),s.wb,s.xb]}),t._ngModelWarningSentOnce=!1,t})();const yt={provide:I,useExisting:Object(s.T)(()=>vt)};let vt=(()=>{class t extends I{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){nt(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Y(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);Y(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,et(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(){Q(this.form,this,!1),this._oldForm&&Z(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(g,10),s.Jb(b,10))},t.\u0275dir=s.Eb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&s.Vb("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[s.yb([yt]),s.wb,s.xb]}),t})(),wt=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})(),St=(()=>{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 ut(n,{asyncValidators:r,updateOn:i,validators:s})}control(t,e,n){return new ct(t,e,n)}array(t,e,n){const s=t.map(t=>this._createControl(t));return new ht(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 ct||t instanceof ut||t instanceof ht?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.Fb({token:t,factory:t.\u0275fac}),t})(),Ct=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[U],imports:[wt]}),t})(),xt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:gt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[St,U],imports:[wt]}),t})()},"3UWI":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var s=n("D0XW"),r=n("zx2A");class i{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new o(t,this.durationSelector))}}class o extends r.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const s=Object(r.c)(n,new r.a(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var a=n("PqYM");function l(t,e=s.a){return n=()=>Object(a.a)(t,e),function(t){return t.lift(new i(n))};var n}},"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.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"5mAv":function(t,e,n){"use strict";n.d(e,"a",function(){return s});class s{static decode(t){let e="";if((t=String(t).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let n,s,r=0,i=0;s=t.charAt(i++);~s&&(n=r%4?64*n+s:s,r++%4)?e+=String.fromCharCode(255&n>>(-2*r&6)):0)s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s);return e}static decodeUnicode(t){return decodeURIComponent(Array.prototype.map.call(s.decode(t),t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join(""))}static urlDecode(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Illegal base64url string!")}return s.decodeUnicode(e)}static urlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}}},"7+OI":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("HDdC");function r(t){return!!t&&(t instanceof s.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var s=n("n6bG"),r=n("gRHU"),i=n("quSY"),o=n("2QA8"),a=n("2fFW"),l=n("NJ4a");class c 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 c?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const s=new c(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 u extends c{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()}}},"8Cu2":function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return c}),n.d(e,"c",function(){return u});var s=n("2Vo4"),r=n("lJxs"),i=n("ElX6"),o=n("fXoL"),a=n("P3kg");class l{constructor(){this.trie=Object(i.newTrie)()}apply(){this.trie.reset(),this.trie.add(...this.getPermissions())}isPermittedAsync(t){return this.permissions$.pipe(Object(r.a)(()=>this._isPermitted(t)))}isPermitted(t){return this._isPermitted(t)}_isPermitted(t){return this.trie.check(t)}}let c=(()=>{class t extends l{constructor(t){super(),this.subject=t,this.permissions$=this.subject.authorities$}getPermissions(){return this.subject.getAuthorities()}}return t.\u0275fac=function(e){return new(e||t)(o.Sb(a.b))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t})(),u=(()=>{class t extends l{constructor(){super(),this.permissions=new s.a([]),this.permissions$=this.permissions.asObservable(),this.apply()}ngOnDestroy(){this.permissions.complete()}getPermissions(){return this.permissions.getValue()}update(t){this.permissions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t})()},"8LU1":function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return a}),n.d(e,"d",function(){return l}),n.d(e,"e",function(){return i}),n.d(e,"f",function(){return c});var s=n("fXoL");function r(t){return null!=t&&""+t!="false"}function i(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function o(t){return Array.isArray(t)?t:[t]}function a(t){return null==t?"":"string"==typeof t?t:t+"px"}function l(t){return t instanceof s.l?t.nativeElement:t}function c(t,e=/\s+/){const n=[];if(null!=t){const s=Array.isArray(t)?t:(""+t).split(e);for(const t of s){const e=(""+t).trim();e&&n.push(e)}}return n}},"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})()},"9r3w":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("pfHM"),r=n("fXoL");let i=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.subject||{provide:s.d,useClass:s.a}]}}static forChild(e={}){return{ngModule:t,providers:[]}}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},imports:[[]]}),t})()},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.length0){const n=this.count>=this.total?this.total:this.count,s=this.ring;for(let r=0;r{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(c.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(u.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}},ElX6:function(t,e,n){"use strict";function s(t){for(var e={},n=[],s=0,r=t.length;s1?(l=l||e.slice(n+1),i[a[s]]=r(i[a[s]],l),n=e.length):(o=i,i=i[a[s]])}return l||o&&o.hasOwnProperty("*")||(i["*"]={}),t}function i(t,e){var n,s;for(s=t,(e.length<1||"*"!==e[e.length-1])&&e.push("*"),n=0;n0){var i={};return r.forEach(function(n){i[n]=l(t[n],e)}),r.filter(function(t){return i[t].length>0})}return r}if("$"===n){r=[],Object.keys(t).forEach(function(n){r=r.concat(o(t[n],[].concat(e)))});for(var a=s(r),c=a.length-1;c>=0;c--)"*"===a[c]&&a.splice(c,1);return a}return r=[],t.hasOwnProperty(n)&&(r=r.concat(o(t[n],e))),t.hasOwnProperty("*")&&(r=r.concat(o(t["*"],e))),r}function a(t){var e,n,r=[],i=t.split(":");for(e=0;e{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Object(s.V)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&g.full!==o.full&&console.warn("The Angular Material version ("+g.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)(s.Sb(r.g),s.Sb(b,8),s.Sb(a.d))},imports:[[i.a],i.a]}),t})();function v(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.b)(t)}}}function w(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function S(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(l.b)(t)}}}function C(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Object(l.e)(t):this.defaultTabIndex}}}function x(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{_="undefined"!=typeof Intl}catch(et){_=!1}let O=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Fb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Eb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function k(t,e,n="mat"){t.changes.pipe(Object(h.a)(t)).subscribe(({length:t})=>{T(e,n+"-2-line",!1),T(e,n+"-3-line",!1),T(e,n+"-multi-line",!1),2===t||3===t?T(e,`${n}-${t}-line`,!0):t>3&&T(e,n+"-multi-line",!0)})}function T(t,e,n){const s=t.nativeElement.classList;n?s.add(e):s.remove(e)}let A=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[y],y]}),t})();class j{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const I={enterDuration:450,exitDuration:400},R=Object(u.f)({passive:!0}),N=["mousedown","touchstart"],D=["mouseup","mouseleave","touchend","touchcancel"];class P{constructor(t,e,n,s){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Object(l.d)(n))}fadeInRipple(t,e,n={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=Object.assign(Object.assign({},I),n.animation);n.centered&&(t=s.left+s.width/2,e=s.top+s.height/2);const i=n.radius||function(t,e,n){const s=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(s*s+r*r)}(t,e,s),o=t-s.left,a=e-s.top,l=r.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-i+"px",c.style.top=a-i+"px",c.style.height=2*i+"px",c.style.width=2*i+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const u=new j(this,c,n);return u.state=0,this._activeRipples.add(u),n.persistent||(this._mostRecentTransientRipple=u),this._runTimeoutOutsideZone(()=>{const t=u===this._mostRecentTransientRipple;u.state=1,n.persistent||t&&this._isPointerDown||u.fadeOut()},l),u}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,s=Object.assign(Object.assign({},I),t.config.animation);n.style.transitionDuration=s.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(l.d)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(N))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(D),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(r.h)(t),n=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,R)})})}_removeTriggerEvents(){this._triggerElement&&(N.forEach(t=>{this._triggerElement.removeEventListener(t,this,R)}),this._pointerUpEventsRegistered&&D.forEach(t=>{this._triggerElement.removeEventListener(t,this,R)}))}}const F=new s.q("mat-ripple-global-options");let L=(()=>{class t{constructor(t,e,n,s,r){this._elementRef=t,this._animationMode=r,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new P(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(s.z),s.Jb(u.a),s.Jb(F,8),s.Jb(d.a,8))},t.\u0275dir=s.Eb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&s.Bb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),V=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[y,u.b],y]}),t})(),M=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(d.a,8))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&s.Bb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),U=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[y]]}),t})();class H{}const z=v(H);let B=0,$=(()=>{class t extends z{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+B++}}return t.\u0275fac=function(e){return q(e||t)},t.\u0275dir=s.Eb({type:t,inputs:{label:"label"},features:[s.wb]}),t})();const q=s.Qb($),W=new s.q("MatOptgroup");let J=0;class G{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const K=new s.q("MAT_OPTION_PARENT_COMPONENT");let Q=(()=>{class t{constructor(t,e,n,r){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+J++,this.onSelectionChange=new s.n,this._stateChanges=new c.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(l.b)(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){t.keyCode!==p.f&&t.keyCode!==p.l||Object(p.q)(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new G(this,t))}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(s.h),s.Jb(void 0),s.Jb($))},t.\u0275dir=s.Eb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Z=(()=>{class t extends Q{constructor(t,e,n,s){super(t,e,n,s)}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(s.h),s.Jb(K,8),s.Jb(W,8))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&s.Vb("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(s.Rb("id",e.id),s.Ab("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),s.Bb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[s.wb],ngContentSelectors:m,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(s.cc(),s.sc(0,f,1,2,"mat-pseudo-checkbox",0),s.Ob(1,"span",1),s.bc(2),s.Nb(),s.Kb(3,"div",2)),2&t&&(s.dc("ngIf",e.multiple),s.zb(3),s.dc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.l,L,M],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})();function X(t,e,n){if(n.length){let s=e.toArray(),r=n.toArray(),i=0;for(let e=0;en+s?Math.max(0,t-s+e):n}let tt=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[V,a.c,y,U]]}),t})()},FtGj:function(t,e,n){"use strict";n.d(e,"a",function(){return b}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return p}),n.d(e,"e",function(){return l}),n.d(e,"f",function(){return i}),n.d(e,"g",function(){return o}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return u}),n.d(e,"j",function(){return g}),n.d(e,"k",function(){return d}),n.d(e,"l",function(){return a}),n.d(e,"m",function(){return r}),n.d(e,"n",function(){return h}),n.d(e,"o",function(){return _}),n.d(e,"p",function(){return m}),n.d(e,"q",function(){return y});const s=8,r=9,i=13,o=27,a=32,l=35,c=36,u=37,h=38,d=39,p=40,f=46,m=48,g=57,b=65,_=90;function y(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},GU7r:function(t,e,n){"use strict";n.d(e,"a",function(){return u}),n.d(e,"b",function(){return c}),n.d(e,"c",function(){return h});var s=n("8LU1"),r=n("fXoL"),i=n("HDdC"),o=n("XNiG"),a=n("Kj3r");let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Fb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(s.d)(t);return new i.a(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new o.a,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(l))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(l))},token:t,providedIn:"root"}),t})(),u=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new r.n,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(s.b)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(s.e)(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Object(a.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(c),r.Jb(r.l),r.Jb(r.z))},t.\u0275dir=r.Eb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),h=(()=>{class t{}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)},providers:[l]}),t})()},HDdC:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var s=n("7o/Q"),r=n("2QA8"),i=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),l=n("2fFW");let c=(()=>{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=u(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:(0===(e=t).length?a.a:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(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 a});var s=n("LRne"),r=n("0EUg");function i(...t){return Object(r.a)()(Object(s.a)(...t))}var o=n("z+Ro");function a(...t){const e=t[t.length-1];return Object(o.a)(e)?(t.pop(),n=>i(t,n,e)):e=>i(t,e)}},JkW8:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("5mAv");class r{static decodeToken(t){if(!t||""===t)return null;const e=t.split(".");if(3!==e.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const n=s.a.urlDecode(e[1]);if(!n)throw new Error("Cannot decode the token.");return JSON.parse(n)}static getTokenExpirationDate(t){const e=r.decodeToken(t);if(!e||!e.hasOwnProperty("exp"))return null;const n=new Date(0);return n.setUTCSeconds(e.exp),n}static isTokenExpired(t,e){if(!t||""===t)return!0;const n=r.getTokenExpirationDate(t);return e=e||0,null!==n&&!(n.valueOf()>(new Date).valueOf()+1e3*e)}static getTokenClientId(t){const e=r.decodeToken(t);return e&&e.hasOwnProperty("client_id")?e.client_id:null}}},Kj3r:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("7o/Q"),r=n("D0XW");function i(t,e=r.a){return n=>n.lift(new o(t,e))}class o{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new a(t,this.dueTime,this.scheduler))}}class a extends s.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},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()},NFeN:function(t,e,n){"use strict";n.d(e,"a",function(){return N}),n.d(e,"b",function(){return D});var s=n("fXoL"),r=n("FKr1"),i=n("8LU1"),o=n("ofXK"),a=n("LRne"),l=n("z6cu"),c=n("cp0P"),u=n("quSY"),h=n("vkgz"),d=n("lJxs"),p=n("JIr8"),f=n("nYR2"),m=n("w1tV"),g=n("IzEk"),b=n("tk/3"),_=n("jhN1");const y=["*"];function v(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function S(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class C{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let x=(()=>{class t{constructor(t,e,n,s){this._httpClient=t,this._sanitizer=e,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,s){return this._addSvgIconConfig(t,e,new C(n,null,s))}addSvgIconLiteralInNamespace(t,e,n,r){const i=this._sanitizer.sanitize(s.I.HTML,n);if(!i)throw S(n);return this._addSvgIconConfig(t,e,new C("",i,r))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new C(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const r=this._sanitizer.sanitize(s.I.HTML,e);if(!r)throw S(e);return this._addSvgIconSetConfig(t,new C("",r,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(s.I.RESOURCE_URL,t);if(!e)throw w(t);const n=this._cachedIconsByUrl.get(e);return n?Object(a.a)(O(n)):this._loadSvgIconFromConfig(new C(t,null)).pipe(Object(h.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(d.a)(t=>O(t)))}getNamedSvgIcon(t,e=""){const n=E(e,t),s=this._svgIconConfigs.get(n);if(s)return this._getSvgFromConfig(s);const r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):Object(l.a)(v(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Object(a.a)(O(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(d.a)(t=>O(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);if(n)return Object(a.a)(n);const r=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(p.a)(e=>{const n=this._sanitizer.sanitize(s.I.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),Object(a.a)(null)})));return Object(c.a)(r).pipe(Object(d.a)(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw v(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const s=e[n];if(s.svgText&&s.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(s),n=this._extractSvgIconFromSet(e,t,s.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Object(h.a)(e=>t.svgText=e),Object(d.a)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Object(a.a)(null):this._fetchIcon(t).pipe(Object(h.a)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const s=t.querySelector(`[id="${e}"]`);if(!s)return null;const r=s.cloneNode(!0);if(r.removeAttribute("id"),"svg"===r.nodeName.toLowerCase())return this._setSvgAttributes(r,n);if("symbol"===r.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(r),n);const i=this._svgElementFromString("");return i.appendChild(r),this._setSvgAttributes(i,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString(""),n=t.attributes;for(let s=0;sthis._inProgressUrlFetches.delete(o)),Object(m.a)());return this._inProgressUrlFetches.set(o,l),l}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(E(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(b.b,8),s.Sb(_.b),s.Sb(o.d,8),s.Sb(s.m))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(b.b,8),Object(s.Sb)(_.b),Object(s.Sb)(o.d,8),Object(s.Sb)(s.m))},token:t,providedIn:"root"}),t})();function O(t){return t.cloneNode(!0)}function E(t,e){return t+":"+e}class k{constructor(t){this._elementRef=t}}const T=Object(r.r)(k),A=new s.q("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(s.U)(o.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),j=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],I=j.map(t=>`[${t}]`).join(", "),R=/^url\(['"]?#(.*?)['"]?\)$/;let N=(()=>{class t extends T{constructor(t,e,n,s,r){super(t),this._iconRegistry=e,this._location=s,this._errorHandler=r,this._inline=!1,this._currentIconFetch=u.a.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(i.b)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let s=0;s{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(I),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s{const r=e[s],i=r.getAttribute(t),o=i?i.match(R):null;if(o){let e=n.get(r);e||(e=[],n.set(r,e)),e.push({name:t,value:o[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(Object(g.a)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${n}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(x),s.Tb("aria-hidden"),s.Jb(A),s.Jb(s.m))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(s.Ab("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),s.Bb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[s.wb],ngContentSelectors:y,decls:1,vars:0,template:function(t,e){1&t&&(s.cc(),s.bc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),D=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[r.e],r.e]}),t})()},NJ4a:function(t,e,n){"use strict";function s(t){setTimeout(()=>{throw t},0)}n.d(e,"a",function(){return s})},NJ9Y:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var s=n("sVev"),r=n("pLZG"),i=n("BFxc"),o=n("XDbj"),a=n("xbPD"),l=n("SpAZ");function c(t,e){const n=arguments.length>=2;return c=>c.pipe(t?Object(r.a)((e,n)=>t(e,n,c)):l.a,Object(i.a)(1),n?Object(a.a)(e):Object(o.a)(()=>new s.a))}},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)})}},OCPU:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("P3kg"),r=n("8Cu2"),i=n("fXoL");let o=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.subject||{provide:s.b,useClass:s.a},e.subjectPermissions||{provide:r.b,useClass:r.a}]}}static forChild(e={}){return{ngModule:t,providers:[]}}}return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)}}),t})()},OtPg:function(t,e,n){"use strict";n.d(e,"a",function(){return k}),n.d(e,"b",function(){return I}),n.d(e,"c",function(){return R});var s=n("fXoL"),r=n("2Vo4"),i=n("EY2u"),o=n("z6cu"),a=n("yCtX"),l=n("DH7j"),c=n("7o/Q"),u=n("Lhse"),h=n("zx2A");class d{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new p(t,this.resultSelector))}}class p extends c.a{constructor(t,e,n=Object.create(null)){super(t),this.resultSelector=e,this.iterators=[],this.active=0,this.resultSelector="function"==typeof e?e:void 0}_next(t){const e=this.iterators;Object(l.a)(t)?e.push(new m(t)):e.push("function"==typeof t[u.a]?new f(t[u.a]()):new g(this.destination,this,t))}_complete(){const t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class g extends h.b{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[u.a](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return Object(h.c)(this.observable,new h.a(this))}}var b=n("Cfvw"),_=n("eNwd"),y=n("pLZG"),v=n("lJxs"),w=n("IzEk"),S=n("eIep"),C=n("vkgz"),x=n("JIr8"),O=n("ofXK"),E=n("jhN1");const k=new s.q("HIGHLIGHT_OPTIONS");let T=(()=>{class t{constructor(t,e,n){this._options=n,this._ready=new r.a(null),this.ready=this._ready.asObservable().pipe(Object(y.a)(t=>!!t),Object(v.a)(t=>t),Object(w.a)(1)),Object(O.r)(e)&&t.defaultView.hljs?this._ready.next(t.defaultView.hljs):this._loadLibrary().pipe(Object(S.a)(e=>this._options&&this._options.lineNumbersLoader?(t.defaultView.hljs=e,this.loadLineNumbers().pipe(Object(C.a)(()=>this._ready.next(e)))):(this._ready.next(e),i.a)),Object(x.a)(t=>(console.error("[HLJS] ",t),i.a))).subscribe()}_loadLibrary(){if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return Object(o.a)("The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return Object(o.a)("The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return Object(o.a)("The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return Object(o.a)("The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe(Object(S.a)(t=>this._loadLanguages(t)))}return Object(o.a)("Highlight.js library was not imported!")}_loadLanguages(t){return function(...t){const e=t[t.length-1];return"function"==typeof e&&t.pop(),Object(a.a)(t,void 0).lift(new d(e))}(...Object.entries(this._options.languages).map(([e,n])=>A(n()).pipe(Object(C.a)(n=>t.registerLanguage(e,n))))).pipe(Object(v.a)(()=>t))}loadCoreLibrary(){return A(this._options.coreLibraryLoader())}loadFullLibrary(){return A(this._options.fullLibraryLoader())}loadLineNumbers(){return A(this._options.lineNumbersLoader())}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(O.d),s.Sb(s.B),s.Sb(k,8))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(O.d),Object(s.Sb)(s.B),Object(s.Sb)(k,8))},token:t,providedIn:"root"}),t})();const A=t=>Object(b.a)(t).pipe(Object(y.a)(t=>!!t&&!!t.default),Object(v.a)(t=>t.default));let j=(()=>{class t{constructor(t,e){this._loader=t,this._hljs=null,t.ready.pipe().subscribe(t=>{this._hljs=t,e&&e.config&&(t.configure(e.config),t.listLanguages().length<1&&console.error("[HighlightJS]: No languages were registered!"))})}get hljs(){return this._hljs}highlight(t,e,n,s){return this._loader.ready.pipe(Object(v.a)(r=>r.highlight(t,e,n,s)))}highlightAuto(t,e){return this._loader.ready.pipe(Object(v.a)(n=>n.highlightAuto(t,e)))}fixMarkup(t){return this._loader.ready.pipe(Object(v.a)(e=>e.fixMarkup(t)))}highlightBlock(t){return this._loader.ready.pipe(Object(v.a)(e=>e.highlightBlock(t)))}configure(t){return this._loader.ready.pipe(Object(v.a)(e=>e.configure(t)))}initHighlighting(){return this._loader.ready.pipe(Object(v.a)(t=>t.initHighlighting()))}registerLanguage(t,e){return this._loader.ready.pipe(Object(C.a)(n=>n.registerLanguage(t,e)))}listLanguages(){return this._loader.ready.pipe(Object(v.a)(t=>t.listLanguages()))}getLanguage(t){return this._loader.ready.pipe(Object(v.a)(e=>e.getLanguage(t)))}lineNumbersBlock(t){return this._loader.ready.pipe(Object(y.a)(t=>!!t.lineNumbersBlock),Object(C.a)(e=>e.lineNumbersBlock(t)))}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(T),s.Sb(k,8))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(T),Object(s.Sb)(k,8))},token:t,providedIn:"root"}),t})(),I=(()=>{class t{constructor(t,e,n,r){this._hljs=e,this._sanitizer=n,this._options=r,this.highlighted=new s.n,this._nativeElement=t.nativeElement}ngOnChanges(t){this.code&&t.code&&void 0!==t.code.currentValue&&t.code.currentValue!==t.code.previousValue&&this.highlightElement(this.code,this.languages)}highlightElement(t,e){this.setTextContent(t),this._hljs.highlightAuto(t,e).subscribe(t=>{this.setInnerHTML(t.value),this.lineNumbers&&this._options&&this._options.lineNumbersLoader&&this.addLineNumbers(),this.highlighted.emit(t)})}addLineNumbers(){this.destroyLineNumbersObserver(),_.a.schedule(()=>{this._hljs.lineNumbersBlock(this._nativeElement).subscribe(),this._lineNumbersObs=new MutationObserver(()=>{this._nativeElement.firstElementChild&&"TABLE"===this._nativeElement.firstElementChild.tagName.toUpperCase()&&this._nativeElement.classList.add("hljs-line-numbers"),this.destroyLineNumbersObserver()}),this._lineNumbersObs.observe(this._nativeElement,{childList:!0})})}destroyLineNumbersObserver(){this._lineNumbersObs&&(this._lineNumbersObs.disconnect(),this._lineNumbersObs=null)}setTextContent(t){_.a.schedule(()=>this._nativeElement.textContent=t)}setInnerHTML(t){_.a.schedule(()=>this._nativeElement.innerHTML=this._sanitizer.sanitize(s.I.HTML,t)||"")}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(j),s.Jb(E.b),s.Jb(k,8))},t.\u0275dir=s.Eb({type:t,selectors:[["","highlight",""]],hostVars:2,hostBindings:function(t,e){2&t&&s.Bb("hljs",!0)},inputs:{code:["highlight","code"],languages:"languages",lineNumbers:"lineNumbers"},outputs:{highlighted:"highlighted"},features:[s.xb]}),t})(),R=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})()},P3kg:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o});var s=n("fXoL"),r=n("2Vo4"),i=n("lJxs");class o{getAuthorities(){const t=this.getSubject();return t&&t.authorities||[]}update(t){t.credentials=null,this.setSubject(t)}updateDetails(t){const e=Object.assign({},this.getSubject());e.details=t,this.setSubject(e)}clear(){this.setSubject(null)}}let a=(()=>{class t extends o{constructor(){super(...arguments),this.subject=new r.a(null),this.subject$=this.subject.asObservable(),this.authorities$=this.subject$.pipe(Object(i.a)(t=>t&&t.authorities||null)),this.details$=this.subject$.pipe(Object(i.a)(t=>t&&t.details||null)),this.displayName$=this.details$.pipe(Object(i.a)(t=>t&&t.displayName||null)),this.isAuthorized$=this.subject$.pipe(Object(i.a)(t=>t&&t.authorities&&t.authorities.length>=0))}ngOnDestroy(){this.subject.complete()}getSubject(){return this.subject.getValue()}setSubject(t){this.subject.next(t)}}return t.\u0275fac=function(e){return l(e||t)},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const l=s.Qb(a)},PqYM:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var s=n("HDdC"),r=n("D0XW"),i=n("DH7j");function o(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}var a=n("z+Ro");function l(t=0,e,n){let i=-1;return o(e)?i=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=r.a),new s.a(e=>{const s=o(t)?t:+t-n.now();return n.schedule(c,s,{index:0,period:i,subscriber:e})})}function c(t){const{index:e,period:n,subscriber:s}=t;if(s.next(e),!s.closed){if(-1===n)return s.complete();t.index=e+1,this.schedule(t,n)}}},Pv2G:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var s=n("tk/3"),r=n("HDdC"),i=n("RJIb"),o=n("iVJa"),a=n("xDj2"),l=n("Q8NU"),c=n("VWR/"),u=n("fXoL");let h=(()=>{class t{constructor(t,e){this.tokens=t,this.options=e}initialize(t=!1){return new r.a(e=>{if(this.tokens.hasValidAccessToken())return e.next({message:"Access token is still valid"}),void e.complete();const{access_token:n,state:s,error:r}=a.a.getHashFragmentParams();if(!r)return n||s||!t?void(n?s?s===l.a.get("nonce")?(this.tokens.setAccessToken(n),e.next({message:"Access token saved"}),e.complete(),this.options.preventClearHashAfterLogin||(location.hash="")):e.error({message:"Nonce is not valid"}):e.error({message:"Nonce is missing"}):e.error({message:"No access token in URL"})):(e.next({message:"No access token and authenticate automatically is set to true - you will be redirected"}),e.complete(),void this.authenticate());e.error({message:r})})}authenticate(t=document.location.href,e=!1,n=new s.e){document.location.href=this.loginUrl(t,e,n)}loginUrl(t,e=!1,n=new s.e){const r=c.a.createAndSaveNonce();return n=(n||new s.e).set("client_id",this.options.clientId).set("state",r).set("response_type",this.options.responseType).set("redirect_uri",t),this.options.scope&&(n=n.set("scope",this.options.scope)),this.options.resource&&(n=n.set("resource",this.options.resource)),e&&(n=n.set("prompt","none")),`${this.options.loginUrl}?${n.toString()}`}clear(){this.tokens.clear()}}return t.\u0275fac=function(e){return new(e||t)(u.Sb(i.a),u.Sb(o.a))},t.\u0275prov=u.Fb({token:t,factory:t.\u0275fac}),t})()},Q8NU:function(t,e,n){"use strict";n.d(e,"a",function(){return s});class s{static put(t,e){sessionStorage.setItem(t,JSON.stringify(e))}static get(t){const e=sessionStorage.getItem(t);if(!e)return null;try{return JSON.parse(e)}catch(n){return console.warn(`Cannot parse ${t} as JSON`,n),e}}static remove(t){sessionStorage.removeItem(t)}}},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 p}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return l}),n.d(e,"g",function(){return u}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return h}),n.d(e,"j",function(){return o}),n.d(e,"k",function(){return f}),n.d(e,"l",function(){return m});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 c(t){return{type:6,styles:t,offset:null}}function u(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 p{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 f{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 m="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",function(){return ge}),n.d(e,"b",function(){return _e});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 c=-1,u=null;if(s.forEach(t=>{const n=t.offset,s=n==c,h=s&&u||{};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),u=h,c=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return l}function c(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&u(n,"start",t)));break;case"done":t.onDone(()=>s(n&&u(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&u(n,"destroy",t)))}}function u(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 p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,m=(t,e)=>!1,g=(t,e,n)=>[];const b=o();(b||"undefined"!=typeof Element)&&(f=(t,e)=>t.contains(e),m=(()=>{if(b||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]):m}})(),g=(t,e,n)=>{let s=[];if(n){const n=t.querySelectorAll(e);for(let t=0;t{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[n]}),e}let O=(()=>{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.Fb({token:t,factory:t.\u0275fac}),t})(),E=(()=>{class t{}return t.NOOP=new O,t})();function k(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:T(parseFloat(e[1]),e[2])}function T(t,e){switch(e){case"s":return 1e3*t;default:return t}}function A(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=T(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(r=T(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 I(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else j(t,n);return n}function R(t,e,n){return n?e+":"+n+";":""}function N(t){let e="";for(let n=0;n{const r=z(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[r]),t.style[r]=e[s]}),o()&&N(t))}function P(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=z(e);t.style[n]=""}),o()&&N(t))}function F(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 M(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 B(t,e){return 0===t||0===e}function $(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;rfunction(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) *"}}(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 G=new Set(["true","1"]),K=new Set(["false","0"]);function Q(t,e){const n=G.has(t)||K.has(t),s=G.has(e)||K.has(e);return(r,i)=>{let o="*"==t||t==r,a="*"==e||e==i;return!o&&n&&"boolean"==typeof r&&(o=r?G.has(t):K.has(t)),!a&&s&&"boolean"==typeof i&&(a=i?G.has(e):K.has(e)),o&&a}}const Z=new RegExp("s*:selfs*,?","g");function X(t,e,n){return new Y(t).build(e,n)}class Y{constructor(t){this._driver=t}build(t,e){const n=new tt(e);return this._resetContextStyleTimingState(n),q(this,F(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=q(this,F(t.animation),e);return{type:1,matchers:J(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=>q(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=q(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(A(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||A(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),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,i=i||c0&&s{const i=u>0?s==h?1:u*s:r[s],o=i*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=i,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:q(this,F(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(Z,"")),[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=q(this,F(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"}:A(t.timings,e.errors,!0);return{type:12,animation:q(this,F(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,c=[]){return(new ct).buildKeyframes(t,e,n,s,r,i,o,a,l,c)}class ct{buildKeyframes(t,e,n,s,r,i,o,a,l,c=[]){l=l||new it;const u=new ht(t,e,l,s,r,c,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),q(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.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?k(n.duration):null,i=null!=n.delay?k(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),q(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=ut);const t=k(r.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>q(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?k(t.options.delay):0;t.steps.forEach(i=>{const o=e.createSubContext(t.options);r&&o.delayNextStep(r),q(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 A(e.params?M(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?k(s.delay):0;r&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ut);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),q(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 c=l.currentTime;q(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const ut={};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=ut,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=k(n.duration)),null!=n.delay&&(s.delay=k(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]=M(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=ut,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 pt(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})):I(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=M(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=I(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 pt 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=I(t[0],!1);a.offset=0,r.push(a);const l=I(t[0],!1);l.offset=ft(o),r.push(l);const c=t.length-1;for(let s=1;s<=c;s++){let o=I(t[s],!1);o.offset=ft((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 ft(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class mt{}class gt extends mt{normalizePropertyName(t,e){return z(t)}normalizeStyleValue(t,e,n,s){let r="";const i=n.toString().trim();if(bt[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 bt=(()=>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,c,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:h,errors:d}}const yt={};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,c){const u=[],h=this.ast.options&&this.ast.options.params||yt,p=this.buildStyles(n,o&&o.params||yt,u),f=a&&a.params||yt,m=this.buildStyles(s,f,u),g=new Set,b=new Map,_=new Map,y="void"===s,v={params:Object.assign(Object.assign({},h),f)},w=c?[]:lt(t,e,this.ast.animation,r,i,p,m,v,l,u);let S=0;if(w.forEach(t=>{S=Math.max(t.duration+t.delay,S)}),u.length)return _t(e,this._triggerName,n,s,y,p,m,[],[],b,_,S,u);w.forEach(t=>{const n=t.element,s=d(b,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const r=d(_,n,{});t.postStyleProps.forEach(t=>r[t]=!0),n!==e&&g.add(n)});const C=U(g.values());return _t(e,this._triggerName,n,s,y,p,m,w,C,b,_,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=M(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 xt=new it;class Ot{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=X(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,xt,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 c=a(o.map(t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}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 c(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 Et=[],kt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Tt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class At{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 At("void");class It{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 Nt(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 At(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{P(t,n),D(t,s)})}return}const c=d(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=r.matchTransition(a.value,l.value,t,l.params),h=!1;if(!u){if(!s)return;u=r.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:l,player:i,isFallbackTransition:h}),h||(Vt(t,"ng-animate-queued"),i.onStart(()=>{Mt(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),c.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 At("void"),a=new Nt(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!==kt||(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,c(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 Rt{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 It(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=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),Mt(t,"ng-animate-disabled"))}removeNode(t,e,n,s){if(Dt(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 Dt(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=kt,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;nt()),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,c=new Map,u=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{const n="ng-enter"+b++;g.set(e,n),t.forEach(t=>Vt(t,n))});const _=[],y=new Set,v=new Set;for(let i=0;iy.add(t)):v.add(t))}const w=new Map,S=Lt(f,Array.from(y));S.forEach((t,e)=>{const n="ng-leave"+b++;w.set(e,n),t.forEach(t=>Vt(t,n))}),t.push(()=>{m.forEach((t,e)=>{const n=g.get(e);t.forEach(t=>Mt(t,n))}),S.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Mt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const C=[],x=[];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=!p||!this.driver.containsElement(p,r),a=w.get(r),h=g.get(r),f=this._buildInstruction(t,n,h,a,i);if(f.errors&&f.errors.length)x.push(f);else{if(i)return e.onStart(()=>P(r,f.fromStyles)),e.onDestroy(()=>D(r,f.toStyles)),void s.push(e);if(t.isFallbackTransition)return e.onStart(()=>P(r,f.fromStyles)),e.onDestroy(()=>D(r,f.toStyles)),void s.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(r,f.timelines),o.push({instruction:f,player:e,element:r}),f.queriedElements.forEach(t=>d(l,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=c.get(e);t||c.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let s=u.get(e);s||u.set(e,s=new Set),n.forEach(t=>s.add(t))})}});if(x.length){const t=[];x.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 O=new Map,E=new Map;o.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(O,e,[]).push(t),t.destroy()})});const k=_.filter(t=>zt(t,c,u)),T=new Map;Ft(T,this.driver,v,u,i.a).forEach(t=>{zt(t,c,u)&&k.push(t)});const A=new Map;m.forEach((t,e)=>{Ft(A,this.driver,new Set(t),c,i.l)}),k.forEach(t=>{const e=T.get(t),n=A.get(t);T.set(t,Object.assign(Object.assign({},e),n))});const j=[],I=[],R={};o.forEach(t=>{const{element:e,player:i,instruction:o}=t;if(n.has(e)){if(h.has(e))return i.onDestroy(()=>D(e,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void s.push(i);let t=R;if(E.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>E.set(e,t))}const n=this._buildAnimation(i.namespaceId,o,O,r,A,T);if(i.setRealPlayer(n),t===R)j.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=a(e)),s.push(i)}}else P(e,o.fromStyles),i.onDestroy(()=>D(e,o.toStyles)),I.push(i),h.has(e)&&s.push(i)}),I.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(Mt(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!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)})}P(s,e.fromStyles)}_buildAnimation(t,e,n,s,r,o){const c=e.triggerName,u=e.element,h=[],p=new Set,f=new Set,m=e.timelines.map(e=>{const a=e.element;p.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new i.d(e.duration,e.delay);const m=a!==u,g=function(t){const e=[];return Ht(t,e),e}((n.get(a)||Et).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===a),b=r.get(a),_=o.get(a),y=l(0,this._normalizer,0,e.keyframes,b,_),v=this._buildPlayer(e,y,g);if(e.subTimeline&&s&&f.add(a),m){const e=new Nt(t,c,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))}),p.forEach(t=>Vt(t,"ng-animating"));const g=a(m);return g.onDestroy(()=>{p.forEach(t=>Mt(t,"ng-animating")),D(u,e.toStyles)}),f.forEach(t=>{d(s,t,[]).push(g)}),g}_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 Nt{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=>c(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 Dt(t){return t&&1===t.nodeType}function Pt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Ft(t,e,n,s,r){const i=[];n.forEach(t=>i.push(Pt(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=Tt,o.push(s))}),t.set(s,i)});let a=0;return n.forEach(t=>Pt(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 Mt(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;nr.add(t)):e.set(t,s),n.delete(t),!0}class Bt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Rt(t,e,n),this._timelineEngine=new Ot(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=X(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]=p(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]=p(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 $t(t,e){let n=null,s=null;return Array.isArray(e)&&e.length?(n=Wt(e[0]),e.length>1&&(s=Wt(e[e.length-1]))):e&&(n=Wt(e)),n||s?new qt(t,n,s):null}let qt=(()=>{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&&D(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(D(this._element,this._initialStyles),this._endStyles&&(D(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(P(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(P(this._element,this._endStyles),this._endStyles=null),D(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Wt(t){let e=null;const n=Object.keys(t);for(let s=0;sthis._handleCallback(t)}apply(){!function(t,e){const n=te(t,"").trim();n.length&&(function(t,e){let n=0;for(let s=0;s=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Xt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=te(t,"").split(","),s=Zt(n,e);s>=0&&(n.splice(s,1),Yt(t,"",n.join(",")))}(this._element,this._name))}}function Kt(t,e,n){Yt(t,"PlayState",n,Qt(t,e))}function Qt(t,e){const n=te(t,"");return n.indexOf(",")>0?Zt(n.split(","),e):Zt([n],e)}function Zt(t,e){for(let n=0;n=0)return n;return-1}function Xt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Yt(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 Gt(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]:W(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=x(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=>x(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={};B(n,s)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=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=$(t,e,l));if(0==n)return new ne(t,c);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=$t(t,e),p=new ee(t,e,u,n,s,r,c,d);return p.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),p}}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]:W(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={},c=i.filter(t=>t instanceof re);B(n,s)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const u=$t(t,e=$(t,e=e.map(t=>I(t,!1)),l));return new re(t,e,a,u)}}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.Q.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 ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(s.F),s.Sb(ae.d))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();class ce extends i.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new ue(this._id,t,e||{},this._renderer)}}class ue{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 pe("",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 fe(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&&te(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.Sb(s.F),s.Sb(Bt),s.Sb(s.z))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();class pe{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 fe extends pe{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 me=(()=>{class t extends Bt{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(ae.d),s.Sb(E),s.Sb(mt))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const ge=new s.q("AnimationModuleType"),be=[{provide:E,useFactory:function(){return"function"==typeof oe()?new ie:new se}},{provide:ge,useValue:"BrowserAnimations"},{provide:i.b,useClass:le},{provide:mt,useFactory:function(){return new gt}},{provide:Bt,useClass:me},{provide:s.F,useFactory:function(t,e,n){return new de(t,e,n)},deps:[r.d,Bt,s.z]}];let _e=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:be,imports:[r.a]}),t})()},RJIb:function(t,e,n){"use strict";n.d(e,"a",function(){return x});var s=n("tk/3"),r=n("2Vo4"),i=n("XNiG"),o=n("itXk"),a=n("z6cu"),l=n("LRne"),c=n("NJ9Y"),u=n("5+tZ"),h=n("IzEk"),d=n("lJxs"),p=n("nYR2"),f=n("vkgz"),m=n("CYhE"),g=n("Q8NU");class b{static put(t,e){localStorage.setItem(t,JSON.stringify(e))}static get(t){const e=localStorage.getItem(t);if(!e)return null;try{return JSON.parse(e)}catch(n){return console.warn(`Cannot parse ${t} as JSON`,n),e}}static remove(t){localStorage.removeItem(t)}}var _=n("JkW8"),y=n("d8a0"),v=n("3/4O"),w=n("s2Hm"),S=n("og18"),C=n("fXoL");let x=(()=>{class t{constructor(e,n,s,i,o){this.http=e,this.options=n,this.passwordFlowOptions=s,this.authorizationCodeFlowOptions=i,this.clientCredentialsFlowOptions=o,this.accessToken=new r.a(g.a.get(t.ACCESS_TOKEN_KEY)),this.refreshToken=new r.a(b.get(t.REFRESH_TOKEN_KEY)),this.accessTokenPending=null,this.accessToken$=this.accessToken.asObservable(),this.refreshToken$=this.refreshToken.asObservable()}ngOnDestroy(){this.accessTokenPending&&this.accessTokenPending.complete(),this.accessToken.complete(),this.refreshToken.complete()}setAccessToken(e){g.a.put(t.ACCESS_TOKEN_KEY,e),this.accessToken.next(e)}setRefreshToken(e){b.put(t.REFRESH_TOKEN_KEY,e),this.refreshToken.next(e)}setTokens(t,e){this.setAccessToken(t),this.setRefreshToken(e)}getAccessToken(){return this.accessToken.getValue()}getRefreshToken(){return this.refreshToken.getValue()}getAuthenticationFlowType(t=this.getAccessToken()){const e=_.a.getTokenClientId(t);return e?this.passwordFlowOptions.clientId===e?y.b.PASSWORD:this.authorizationCodeFlowOptions.clientId===e?y.b.AUTHORIZATION_CODE:this.clientCredentialsFlowOptions.clientId===e?y.b.CLIENT_CREDENTIALS:null:null}hasValidAccessToken(t){const e=this.getAccessToken();return e&&!_.a.isTokenExpired(e,t)}hasValidRefreshToken(t){const e=this.getRefreshToken();return e&&!_.a.isTokenExpired(e,t)}getValidAccessToken(){return this.accessTokenPending&&!this.accessTokenPending.isStopped?this.accessTokenPending.pipe(Object(c.a)(),Object(u.a)(()=>this.accessToken$.pipe(Object(h.a)(1)))):(this.accessTokenPending=new i.a,Object(o.b)([this.accessToken$,this.refreshToken$]).pipe(Object(u.a)(([t,e])=>t||e?t?_.a.isTokenExpired(t)?this.getAuthenticationFlowType(t)===y.b.CLIENT_CREDENTIALS?this.authenticateWithClientCredentials().pipe(Object(d.a)(t=>t.accessToken)):e?_.a.isTokenExpired(e)?Object(a.a)({message:"Refresh token expired",details:"Cannot obtain new access token"}):this.authenticateWithRefreshToken(e).pipe(Object(d.a)(t=>t.accessToken)):Object(a.a)({message:"Access token expired",details:"No refresh token to obtain new access token"}):Object(l.a)(t):_.a.isTokenExpired(e)?Object(a.a)({message:"Access token is missing",details:"Refresh token expired - cannot obtain new access token"}):this.authenticateWithRefreshToken(e).pipe(Object(d.a)(t=>t.accessToken)):Object(a.a)({message:"Authentication token is missing"})),Object(h.a)(1),Object(p.a)(()=>{this.accessTokenPending.next(),this.accessTokenPending.complete()})))}authenticateWithPassword(t,e,n=new s.e,r=new s.d){return n=(n||new s.e).set("username",t).set("password",e).set("grant_type","password"),r=(r||new s.d).set("Content-Type","application/x-www-form-urlencoded"),this.passwordFlowOptions.useHttpBasicAuth&&(r=r.set("Authorization","Basic "+btoa(`${this.passwordFlowOptions.clientId}:${this.passwordFlowOptions.clientSecret}`))),this.http.post(this.passwordFlowOptions.tokenUrl,n,{headers:r}).pipe(Object(d.a)(t=>this.transform(t)),Object(f.a)(t=>this.setTokens(t.accessToken||null,t.refreshToken||null)))}authenticateWithRefreshToken(t,e=new s.e,n=new s.d){if(!t)return Object(a.a)({message:"Refresh token must not be empty"});e=(e||new s.e).set("grant_type","refresh_token").set("refresh_token",t),n=(n||new s.d).set("Content-Type","application/x-www-form-urlencoded");let r=null,i=null,o=null,l=null;switch(this.getAuthenticationFlowType(t)){case y.b.PASSWORD:r=this.passwordFlowOptions.tokenUrl,i=this.passwordFlowOptions.clientId,o=this.passwordFlowOptions.clientSecret,l=this.passwordFlowOptions.useHttpBasicAuth;break;case y.b.AUTHORIZATION_CODE:r=this.authorizationCodeFlowOptions.tokenUrl,i=this.authorizationCodeFlowOptions.clientId,o=this.authorizationCodeFlowOptions.clientSecret,l=this.authorizationCodeFlowOptions.useHttpBasicAuth;break;case y.b.CLIENT_CREDENTIALS:r=this.clientCredentialsFlowOptions.tokenUrl,i=this.clientCredentialsFlowOptions.clientId,o=this.clientCredentialsFlowOptions.clientSecret,l=this.clientCredentialsFlowOptions.useHttpBasicAuth;break;default:return Object(a.a)({message:"Refresh token authentication is not supported"})}return r?(o&&l&&(n=n.set("Authorization","Basic "+btoa(`${i}:${o}`))),this.http.post(r,e,{headers:n}).pipe(Object(d.a)(t=>this.transform(t)),Object(f.a)(t=>this.setTokens(t.accessToken||null,t.refreshToken||null)))):Object(a.a)({message:"Refresh token not supported"})}authenticateWithAuthorizationCode(t,e=new s.e,n=new s.d){return e=(e||new s.e).set("grant_type","authorization_code").set("code",t),n=(n||new s.d).set("Content-Type","application/x-www-form-urlencoded"),this.authorizationCodeFlowOptions.useHttpBasicAuth?n=n.set("Authorization","Basic "+btoa(`${this.authorizationCodeFlowOptions.clientId}:${this.authorizationCodeFlowOptions.clientSecret}`)):(e=e.set("client_id",this.authorizationCodeFlowOptions.clientId),this.authorizationCodeFlowOptions.clientSecret&&(e=e.set("client_secret",this.authorizationCodeFlowOptions.clientSecret))),this.http.post(this.authorizationCodeFlowOptions.tokenUrl,e,{headers:n}).pipe(Object(d.a)(t=>this.transform(t)),Object(f.a)(t=>this.setTokens(t.accessToken||null,t.refreshToken||null)))}authenticateWithClientCredentials(t=new s.e,e=new s.d){return t=(t||new s.e).set("grant_type","client_credentials"),e=(e||new s.d).set("Content-Type","application/x-www-form-urlencoded"),this.clientCredentialsFlowOptions.useHttpBasicAuth&&(e=e.set("Authorization","Basic "+btoa(`${this.clientCredentialsFlowOptions.clientId}:${this.clientCredentialsFlowOptions.clientSecret}`))),this.http.post(this.clientCredentialsFlowOptions.tokenUrl,t,{headers:e}).pipe(Object(d.a)(t=>this.transform(t)),Object(f.a)(t=>this.setTokens(t.accessToken||null,t.refreshToken||null)))}clear(){this.accessToken.next(null),g.a.remove(t.ACCESS_TOKEN_KEY),this.refreshToken.next(null),b.remove(t.REFRESH_TOKEN_KEY)}transform(t){return this.options.mapper(t)}}return t.ACCESS_TOKEN_KEY="access_token",t.REFRESH_TOKEN_KEY="refresh_token",t.\u0275fac=function(e){return new(e||t)(C.Sb(s.b),C.Sb(m.a),C.Sb(w.a),C.Sb(S.a),C.Sb(v.a))},t.\u0275prov=C.Fb({token:t,factory:t.\u0275fac}),t})()},RWdr:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("tk/3"),r=n("RJIb"),i=n("fXoL");let o=(()=>{class t{constructor(t){this.tokens=t}authenticate(t,e,n=new s.e,r=new s.d){return this.tokens.authenticateWithPassword(t,e,n,r)}clear(){this.tokens.clear()}}return t.\u0275fac=function(e){return new(e||t)(i.Sb(r.a))},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t})()},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var s=n("ngJS"),r=n("NJ4a"),i=n("Lhse"),o=n("kJWO"),a=n("I55L"),l=n("c2HN"),c=n("XoHu");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[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(c.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,u}},SpAZ:function(t,e,n){"use strict";function s(t){return t}n.d(e,"a",function(){return s})},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))}},"VWR/":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var s=n("5mAv"),r=n("Q8NU");class i{static createNonce(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let e=45,n="";const r="undefined"==typeof self?null:self.crypto||self.msCrypto;if(r){let s=new Uint8Array(e);r.getRandomValues(s),s=s.map(e=>t.charCodeAt(e%t.length)),n=String.fromCharCode.apply(null,s)}else for(;0{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 c}),n.d(e,"a",function(){return u});var s=n("HDdC"),r=n("7o/Q"),i=n("quSY"),o=n("9ppp"),a=n("Ylt2"),l=n("2QA8");class c extends r.a{constructor(t){super(t),this.destination=t}}let u=(()=>{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 c(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;rnew h(t,e),t})();class h extends u{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})},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)}}},ZDaG:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var s=n("P3kg"),r=n("hCJx"),i=n("fXoL");let o=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.subject||{provide:s.b,useClass:s.a},e.subjectRoles||{provide:r.b,useClass:r.a}]}}static forChild(e={}){return{ngModule:t,providers:[]}}}return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)}}),t})()},Zy1z:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("7o/Q");function r(){return t=>t.lift(new i)}class i{call(t,e){return e.subscribe(new o(t))}}class o extends s.a{constructor(t){super(t),this.hasPrev=!1}_next(t){let e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}},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)}},bTqV:function(t,e,n){"use strict";n.d(e,"a",function(){return d}),n.d(e,"b",function(){return p});var s=n("FKr1"),r=n("R1ws"),i=n("fXoL"),o=n("u47x");const a=["mat-button",""],l=["*"],c=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class u{constructor(t){this._elementRef=t}}const h=Object(s.r)(Object(s.t)(Object(s.s)(u)));let d=(()=>{class t extends h{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of c)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.l),i.Jb(o.e),i.Jb(r.a,8))},t.\u0275cmp=i.Db({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&i.wc(s.m,!0),2&t){let t;i.ic(t=i.Wb())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(i.Ab("disabled",e.disabled||null),i.Bb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.wb],attrs:a,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(i.cc(),i.Ob(0,"span",0),i.bc(1),i.Nb(),i.Kb(2,"span",1),i.Kb(3,"span",2)),2&t&&(i.zb(2),i.Bb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),i.dc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[s.m],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)},imports:[[s.n,s.e],s.e]}),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})},cH1L:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return o});var s=n("fXoL"),r=n("ofXK");const i=new s.q("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(s.U)(r.d)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new s.n,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(i,8))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(i,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})()},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 c(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&Object(r.a)(t[0])?t[0]:t,null).pipe(Object(i.a)(t=>e(...t)))}return c(t,null)}function c(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{u||(u=!0,o++),r[l]=t},error:t=>n.error(t),complete:()=>{i++,i!==s&&u||(o===s&&n.next(e?e.reduce((t,e,n)=>(t[e]=r[n],t),{}):r),n.complete())}}))}})}},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},d8a0:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return r});var s=function(t){return t.PASSWORD="PASSWORD",t.IMPLICIT="IMPLICIT",t.AUTHORIZATION_CODE="AUTHORIZATION_CODE",t.CLIENT_CREDENTIALS="CLIENT_CREDENTIALS",t}({});class r{constructor(t,e){this.type=t,this.clientId=e&&e.clientId||null,this.scope=e&&e.scope||null,this.resource=e&&e.resource||null}}},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)}}},eNwd:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var s=n("3N8a");class r extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,n=0){return null!==n&&n>0?super.requestAsyncId(t,e,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(t,e,n);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var i=n("IjjT");class o extends i.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,s=-1,r=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++s{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===j.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||V,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||I.Emulated,id:"c",styles:t.styles||V,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,r=t.features,i=t.pipes;return n.id+=W++,n.inputs=Y(t.inputs,e),n.outputs=Y(t.outputs),r&&r.forEach(t=>t(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(G):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(K):null,n})}function G(t){return nt(t)||function(t){return t[U]||null}(t)}function K(t){return function(t){return t[H]||null}(t)}const Q={};function Z(t){const e={type:t.type,bootstrap:t.bootstrap||V,declarations:t.declarations||V,imports:t.imports||V,exports:t.exports||V,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&A(()=>{Q[t.id]=t.type}),e}function X(t,e){return A(()=>{const n=st(t,!0);n.declarations=e.declarations||V,n.imports=e.imports||V,n.exports=e.exports||V})}function Y(t,e){if(null==t)return L;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 tt=J;function et(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function nt(t){return t[M]||null}function st(t,e){const n=t[z]||null;if(!n&&!0===e)throw new Error(`Type ${u(t)} does not have '\u0275mod' property.`);return n}function rt(t){return Array.isArray(t)&&"object"==typeof t[1]}function it(t){return Array.isArray(t)&&!0===t[1]}function ot(t){return 0!=(8&t.flags)}function at(t){return 2==(2&t.flags)}function lt(t){return 1==(1&t.flags)}function ct(t){return null!==t.template}function ut(t,e){return t.hasOwnProperty($)?t[$]:null}class ht extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function dt(t){return"string"==typeof t?t:null==t?"":String(t)}function pt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():dt(t)}function ft(t,e){const n=e?" in "+e:"";throw new ht("201",`No provider for ${pt(t)} found${n}`)}class mt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function gt(){return bt}function bt(t){return t.type.prototype.ngOnChanges&&(t.setInput=yt),_t}function _t(){const t=vt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===L)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function yt(t,e,n,s){const r=vt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:L,current:null}),i=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[n],l=o[a];i[a]=new mt(l&&l.currentValue,e,o===L),t[s]=e}function vt(t){return t.__ngSimpleChanges__||null}gt.ngInherit=!0;let wt=void 0;function St(t){wt=t}function Ct(t){return!!t.listen}const xt={createRenderer:(t,e)=>void 0!==wt?wt:"undefined"!=typeof document?document:void 0};function Ot(t){for(;Array.isArray(t);)t=t[0];return t}function Et(t,e){return Ot(e[t])}function kt(t,e){return Ot(e[t.index])}function Tt(t,e){return t.data[e]}function At(t,e){return t[e]}function jt(t,e){const n=e[t];return rt(n)?n:n[0]}function It(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Rt(t){return 4==(4&t[2])}function Nt(t){return 128==(128&t[2])}function Dt(t,e){return null==e?null:t[e]}function Pt(t){t[18]=0}function Ft(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 Lt={lFrame:oe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Vt(){return Lt.bindingsEnabled}function Mt(){return Lt.lFrame.lView}function Ut(){return Lt.lFrame.tView}function Ht(t){Lt.lFrame.contextLView=t}function zt(){let t=Bt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Bt(){return Lt.lFrame.currentTNode}function $t(t,e){const n=Lt.lFrame;n.currentTNode=t,n.isParent=e}function qt(){return Lt.lFrame.isParent}function Wt(){Lt.lFrame.isParent=!1}function Jt(){return Lt.isInCheckNoChangesMode}function Gt(t){Lt.isInCheckNoChangesMode=t}function Kt(){const t=Lt.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Qt(){return Lt.lFrame.bindingIndex++}function Zt(t,e){const n=Lt.lFrame;n.bindingIndex=n.bindingRootIndex=t,Xt(e)}function Xt(t){Lt.lFrame.currentDirectiveIndex=t}function Yt(t){const e=Lt.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function te(){return Lt.lFrame.currentQueryIndex}function ee(t){Lt.lFrame.currentQueryIndex=t}function ne(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function se(t,e,n){if(n&O.SkipSelf){let s=e,r=t;for(;s=s.parent,!(null!==s||n&O.Host||(s=ne(r),null===s)||(r=r[15],10&s.type)););if(null===s)return!1;e=s,t=r}const s=Lt.lFrame=ie();return s.currentTNode=e,s.lView=t,!0}function re(t){const e=ie(),n=t[1];Lt.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function ie(){const t=Lt.lFrame,e=null===t?null:t.child;return null===e?oe(t):e}function oe(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 ae(){const t=Lt.lFrame;return Lt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const le=ae;function ce(){const t=ae();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 ue(){return Lt.lFrame.selectedIndex}function he(t){Lt.lFrame.selectedIndex=t}function de(){const t=Lt.lFrame;return Tt(t.tView,t.selectedIndex)}function pe(t,e){for(let n=e.directiveStart,s=e.directiveEnd;n=s)break}else e[o]<0&&(t[18]+=65536),(i>11>16&&(3&t[2])===e&&(t[2]+=2048,i.call(o)):i.call(o)}class ye{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function ve(t,e,n){const s=Ct(t);let r=0;for(;re){o=i-1;break}}}for(;i>16,s=e;for(;n>0;)s=s[15],n--;return s}let Te=!0;function Ae(t){const e=Te;return Te=t,e}let je=0;function Ie(t,e){const n=Ne(t,e);if(-1!==n)return n;const s=e[1];s.firstCreatePass&&(t.injectorIndex=e.length,Re(s.data,t),Re(e,null),Re(s.blueprint,null));const r=De(t,e),i=t.injectorIndex;if(Oe(r)){const t=Ee(r),n=ke(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 Re(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ne(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function De(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 Pe(t,e,n){!function(t,e,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(q)&&(s=n[q]),null==s&&(s=n[q]=je++);const r=255&s,i=1<=0?255&e:Ue:e}(n);if("function"==typeof i){if(!se(e,t,s))return s&O.Host?Fe(r,n,s):Le(e,n,s,r);try{const t=i();if(null!=t||s&O.Optional)return t;ft(n)}finally{le()}}else if("number"==typeof i){let r=null,o=Ne(t,e),a=-1,l=s&O.Host?e[16][6]:null;for((-1===o||s&O.SkipSelf)&&(a=-1===o?De(t,e):e[o+8],-1!==a&&qe(s,!1)?(r=e[1],o=Ee(a),e=ke(a,e)):o=-1);-1!==o;){const t=e[1];if($e(i,o,t.data)){const t=He(o,e,n,r,s,l);if(t!==Me)return t}a=e[o+8],-1!==a&&qe(s,e[1].data[o+8]===l)&&$e(i,o,e)?(r=t,o=Ee(a),e=ke(a,e)):o=-1}}}return Le(e,n,s,r)}const Me={};function Ue(){return new We(zt(),Mt())}function He(t,e,n,s,r,i){const o=e[1],a=o.data[t+8],l=ze(a,o,n,null==s?at(a)&&Te:s!=o&&0!=(3&a.type),r&O.Host&&i===a);return null!==l?Be(e,o,l,a):Me}function ze(t,e,n,s,r){const i=t.providerIndexes,o=e.data,a=1048575&i,l=t.directiveStart,c=i>>20,u=r?a+c:t.directiveEnd;for(let h=s?a:a+c;h=l&&t.type===n)return h}if(r){const t=o[l];if(t&&ct(t)&&t.type===n)return l}return null}function Be(t,e,n,s){let r=t[n];const i=e.data;if(r instanceof ye){const o=r;o.resolving&&function(t,e){throw new ht("200","Circular dependency in DI detected for "+t)}(pt(i[n]));const a=Ae(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?k(o.injectImpl):null;se(t,s,O.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=bt(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&&k(l),Ae(a),o.resolving=!1,le()}}return r}function $e(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<{const t=Je(f(e));return t?t():null};let n=ut(e);if(null===n){const t=v(e);n=t&&t.factory}return n||null}function Ge(t){return A(()=>{const e=t.prototype.constructor,n=e[$]||Je(e),s=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==s;){const t=r[$]||Je(r);if(t&&t!==n)return t;r=Object.getPrototypeOf(r)}return t=>new t})}function Ke(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{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 Ze{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=g({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Xe=new Ze("AnalyzeForEntryComponents"),Ye=Function;function tn(t,e){void 0===e&&(e=t);for(let n=0;nArray.isArray(t)?en(t,e):e(t))}function nn(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function sn(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function rn(t,e){const n=[];for(let s=0;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 an(t,e){const n=ln(t,e);if(n>=0)return t[1|n]}function ln(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 cn=Qe("Inject",t=>({token:t})),un=Qe("Optional"),hn=Qe("Self"),dn=Qe("SkipSelf"),pn={},fn=/\n/gm,mn=l({provide:String,useValue:l});let gn=void 0;function bn(t){const e=gn;return gn=t,e}function _n(t,e=O.Default){if(void 0===gn)throw new Error("inject() must be called from an injection context");return null===gn?T(t,void 0,e):gn.get(t,e&O.Optional?null:void 0,e)}function yn(t,e=O.Default){return(E||_n)(f(t),e)}const vn=yn;function wn(t){const e=[];for(let n=0;nt,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return Sn}())||void 0===e?void 0:e.createHTML(t))||t}class xn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class On extends xn{getTypeName(){return"HTML"}}class En extends xn{getTypeName(){return"Style"}}class kn extends xn{getTypeName(){return"Script"}}class Tn extends xn{getTypeName(){return"URL"}}class An extends xn{getTypeName(){return"ResourceURL"}}function jn(t){return t instanceof xn?t.changingThisBreaksApplicationSecurity:t}function In(t,e){const n=Rn(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 Rn(t){return t instanceof xn&&t.getTypeName()||null}function Nn(t){return new On(t)}function Dn(t){return new En(t)}function Pn(t){return new kn(t)}function Fn(t){return new Tn(t)}function Ln(t){return new An(t)}class Vn{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Cn(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Mn{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=Cn(t),e;const n=this.inertDocument.createElement("body");return n.innerHTML=Cn(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0zn(t.trim())).join(", ")),this.buf.push(" ",e,'="',ss(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Kn.hasOwnProperty(e)&&!qn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(ss(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 es=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ns=/([^\#-~ |!])/g;function ss(t){return t.replace(/&/g,"&").replace(es,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ns,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let rs;function is(t,e){let n=null;try{rs=rs||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(Cn(""),"text/html")}catch(t){return!1}}()?new Vn:new Mn(t)}(t);let s=e?String(e):"";n=rs.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=rs.getInertBodyElement(s)}while(s!==i);return(new ts).sanitizeChildren(os(n)||n)}finally{if(n){const t=os(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function os(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var as=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 ls(t){const e=function(){const t=Mt();return t&&t[12]}();return e?e.sanitize(as.URL,t)||"":In(t,"URL")?jn(t):zn(dt(t))}function cs(t){return t.ngDebugContext}function us(t){return t.ngOriginalError}function hs(t,...e){t.error(...e)}class ds{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t.ngErrorLogger||hs}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?cs(t)?cs(t):this._findContext(us(t)):null}_findOriginalError(t){let e=us(t);for(;e&&us(e);)e=us(e);return e}}function ps(t,e){t.__ngContext__=e}const fs=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function ms(t){return t instanceof Function?t():t}var gs=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function bs(t,e){return(void 0)(t,e)}function _s(t){const e=t[3];return it(e)?e[3]:e}function ys(t){return ws(t[13])}function vs(t){return ws(t[4])}function ws(t){for(;null!==t&&!it(t);)t=t[4];return t}function Ss(t,e,n,s,r){if(null!=s){let i,o=!1;it(s)?i=s:rt(s)&&(o=!0,s=s[0]);const a=Ot(s);0===t&&null!==n?null==r?js(e,n,a):As(e,n,a,r||null,!0):1===t&&null!==n?As(e,n,a,r||null,!0):2===t?function(t,e,n){const s=Rs(t,e);s&&function(t,e,n,s){Ct(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!==Ot(n)&&Ss(e,t,s,i,r);for(let o=10;o0&&(t[n-1][4]=s[4]);const o=sn(t,10+e);Ms(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 Es(t,e){if(!(256&e[2])){const n=e[11];Ct(n)&&n.destroyNode&&Ms(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return ks(t[1],t);for(;e;){let n=null;if(rt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)rt(e)&&ks(e[1],e),e=e[3];null===e&&(e=t),rt(e)&&ks(e[1],e),n=e&&e[4]}e=n}}(e)}}function ks(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=0?s[r=l]():s[r=-l].unsubscribe(),t+=2}else{const e=s[r=n[t+1]];n[t].call(e)}if(null!==s)for(let t=r+1;ti?"":r[u+1].toLowerCase();const e=8&s?t:null;if(e&&-1!==Bs(e,c,0)||2&s&&c!==t){if(Gs(s))return!1;o=!0}}}}else{if(!o&&!Gs(s)&&!Gs(l))return!1;if(o&&Gs(l))continue;o=!1,s=l|1&s}}return Gs(s)||o}function Gs(t){return 0==(1&t)}function Ks(t,e,n,s){if(null===e)return-1;let r=0;if(s||!n){let n=!1;for(;r-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&s?r+="."+o:4&s&&(r+=" "+o);else""===r||Gs(o)||(e+=Xs(i,r),r=""),s=o,i=i||!Gs(s);n++}return""!==r&&(e+=Xs(i,r)),e}const tr={};function er(t){nr(Ut(),Mt(),ue()+t,Jt())}function nr(t,e,n,s){if(!s)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&fe(e,s,n)}else{const s=t.preOrderHooks;null!==s&&me(e,s,0,n)}he(n)}function sr(t,e){return t<<17|e<<2}function rr(t){return t>>17&32767}function ir(t){return 2|t}function or(t){return(131068&t)>>2}function ar(t,e){return-131069&t|e<<2}function lr(t){return 1|t}function cr(t,e){const n=t.contentQueries;if(null!==n)for(let s=0;s20&&nr(t,e,20,Jt()),n(s,r)}finally{he(i)}}function br(t,e,n){if(ot(e)){const s=e.directiveEnd;for(let r=e.directiveStart;r0;){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 kr(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Tr(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Ar(t,e,n){if(n){if(e.exportAs)for(let s=0;s0&&Lr(n)}}function Lr(t){for(let n=ys(t);null!==n;n=vs(n))for(let t=10;t0&&Lr(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&Lr(s)}}function Vr(t,e){const n=jt(e,t),s=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function qr(t){return t[7]||(t[7]=[])}function Wr(t){return t.cleanup||(t.cleanup=[])}function Jr(t,e,n){return(null===t||ct(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}function Gr(t,e){const n=t[9],s=n?n.get(ds,null):null;s&&s.handleError(e)}function Kr(t,e,n,s,r){for(let i=0;ithis.processProvider(n,t,e)),en([t],t=>this.processInjectorType(t,[],r)),this.records.set(Zr,ci(void 0,this));const i=this.records.get(Yr);this.scope=null!=i?i.value:null,this.source=s||("object"==typeof t?null:u(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=pn,n=O.Default){this.assertNotDestroyed();const s=bn(this);try{if(!(n&O.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(r=t)||"object"==typeof r&&r instanceof Ze)&&_(t);e=n&&this.injectableDefInScope(n)?ci(ai(t),ti):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&O.Self?ri():this.parent).get(t,e=n&O.Optional&&e===pn?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(u(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=u(e);if(Array.isArray(e))r=e.map(u).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):u(s)))}r=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${r}]: ${t.replace(fn,"\n ")}`}("\n"+t.message,r,n,s),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{bn(s)}var r}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(u(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=f(t)))return!1;let s=v(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=v(r)),null==s)return!1;if(null!=s.imports&&!o){let t;n.push(i);try{en(s.imports,s=>{this.processInjectorType(s,e,n)&&(void 0===t&&(t=[]),t.push(s))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,s||ni))}}this.injectorDefTypes.add(i),this.records.set(i,ci(s.factory,ti));const a=s.providers;if(null!=a&&!o){const e=t;en(a,t=>this.processProvider(t,e,a))}return void 0!==r&&void 0!==t.providers}processProvider(t,e,n){let s=hi(t=f(t))?t:f(t&&t.provide);const r=function(t,e,n){return ui(t)?ci(void 0,t.useValue):ci(li(t),ti)}(t);if(hi(t)||!0!==t.multi)this.records.get(s);else{let e=this.records.get(s);e||(e=ci(void 0,ti,!0),e.factory=()=>wn(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===ti&&(e.value=ei,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 ai(t){const e=_(t),n=null!==e?e.factory:ut(t);if(null!==n)return n;const s=v(t);if(null!==s)return s.factory;if(t instanceof Ze)throw new Error(`Token ${u(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=rn(e,"?");throw new Error(`Can't resolve all parameters for ${u(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[w]||t[C]);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 li(t,e,n){let s=void 0;if(hi(t)){const e=f(t);return ut(e)||ai(e)}if(ui(t))s=()=>f(t.useValue);else if((r=t)&&r.useFactory)s=()=>t.useFactory(...wn(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))s=()=>yn(f(t.useExisting));else{const e=f(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return ut(e)||ai(e);s=()=>new e(...wn(t.deps))}var r;return s}function ci(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function ui(t){return null!==t&&"object"==typeof t&&mn in t}function hi(t){return"function"==typeof t}const di=function(t,e,n){return function(t,e=null,n=null,s){const r=ii(t,e,n,s);return r._resolveInjectorDefTypes(),r}({name:n},e,t,n)};let pi=(()=>{class t{static create(t,e){return Array.isArray(t)?di(t,e,""):di(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=pn,t.NULL=new Xr,t.\u0275prov=g({token:t,providedIn:"any",factory:()=>yn(Zr)}),t.__NG_ELEMENT_ID__=-1,t})();function fi(t,e){pe(It(t)[1],zt())}function mi(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const s=[t];for(;e;){let r=void 0;if(ct(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=gi(t.inputs),e.declaredInputs=gi(t.declaredInputs),e.outputs=gi(t.outputs);const n=r.hostBindings;n&&yi(t,n);const i=r.viewQuery,o=r.contentQueries;if(i&&bi(t,i),o&&_i(t,o),c(t.inputs,r.inputs),c(t.declaredInputs,r.declaredInputs),c(t.outputs,r.outputs),ct(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=0;s--){const r=t[s];r.hostVars=e+=r.hostVars,r.hostAttrs=Ce(r.hostAttrs,n=Ce(n,r.hostAttrs))}}(s)}function gi(t){return t===L?{}:t===V?[]:t}function bi(t,e){const n=t.viewQuery;t.viewQuery=n?(t,s)=>{e(t,s),n(t,s)}:e}function _i(t,e){const n=t.contentQueries;t.contentQueries=n?(t,s,r)=>{e(t,s,r),n(t,s,r)}:e}function yi(t,e){const n=t.hostBindings;t.hostBindings=n?(t,s)=>{e(t,s),n(t,s)}:e}let vi=null;function wi(){if(!vi){const t=F.Symbol;if(t&&t.iterator)vi=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Ot(t[s.index])).target:s.index;if(Ct(n)){let o=null;if(!a&&l&&(o=function(t,e,n,s){const r=t.cleanup;if(null!=r)for(let i=0;in?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=Wi(s,e,i,!1);const t=n.listen(p.name||f,r,i);u.push(i,t),c&&c.push(r,g,m,m+1)}}else i=Wi(s,e,i,!0),f.addEventListener(r,i,o),u.push(i),c&&c.push(r,g,m,o)}else i=Wi(s,e,i,!1);const d=s.outputs;let p;if(h&&null!==d&&(p=d[r])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,Lt.lFrame.contextLView))[8]}(t)}function Gi(t,e){let n=null;const s=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let r=0;r=0}function no(t,e,n){return ro(t,e,n,!1),no}function so(t,e){return ro(t,e,null,!0),so}function ro(t,e,n,s){const r=Mt(),i=Ut(),o=function(t){const e=Lt.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();i.firstUpdatePass&&function(t,e,n,s){const r=t.data;if(null===r[n+1]){const i=r[ue()],o=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(i,s)&&null===e&&!o&&(e=!1),e=function(t,e,n,s){const r=Yt(t);let i=s?e.residualClasses:e.residualStyles;if(null===r)0===(s?e.classBindings:e.styleBindings)&&(n=oo(n=io(null,t,e,n,s),e.attrs,s),i=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==r)if(n=io(r,t,e,n,s),null===i){let n=function(t,e,n){const s=n?e.classBindings:e.styleBindings;if(0!==or(s))return t[rr(s)]}(t,e,s);void 0!==n&&Array.isArray(n)&&(n=io(null,t,e,n[1],s),n=oo(n,e.attrs,s),function(t,e,n,s){t[rr(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;i0)&&(u=!0)}else c=n;if(r)if(0!==l){const e=rr(t[a+1]);t[s+1]=sr(e,a),0!==e&&(t[e+1]=ar(t[e+1],s)),t[a+1]=131071&t[a+1]|s<<17}else t[s+1]=sr(a,0),0!==a&&(t[a+1]=ar(t[a+1],s)),a=s;else t[s+1]=sr(l,0),0===a?a=s:t[l+1]=ar(t[l+1],s),l=s;u&&(t[s+1]=ir(t[s+1])),to(t,c,s,!0),to(t,c,s,!1),function(t,e,n,s,r){const i=r?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&ln(i,e)>=0&&(n[s+1]=lr(n[s+1]))}(e,c,t,s,i),o=sr(a,l),i?e.classBindings=o:e.styleBindings=o}(r,i,e,n,o,s)}}(i,t,o,s),e!==tr&&Ei(r,o,e)&&function(t,e,n,s,r,i,o,a){if(!(3&e.type))return;const l=t.data,c=l[a+1];lo(1==(1&c)?ao(l,e,n,r,or(c),o):void 0)||(lo(i)||function(t){return 2==(2&t)}(c)&&(i=ao(l,null,n,r,a,o)),function(t,e,n,s,r){const i=Ct(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:gs.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|=gs.Important),i?t.setStyle(n,s,r,e):n.style.setProperty(s,r,o?"important":"")}}}(s,o,Et(ue(),n),r,i))}(i,i.data[ue()],r,r[11],t,r[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=u(jn(t)))),t}(e,n),s,o)}function io(t,e,n,s,r){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[r],i=Array.isArray(e),l=i?e[1]:e,c=null===l;let u=n[r+1];u===tr&&(u=c?Yi:void 0);let h=c?an(u,s):l===s?u:void 0;if(i&&!lo(h)&&(h=an(e,s)),lo(h)&&(a=h,o))return a;const d=t[r+1];r=o?rr(d):or(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=an(t,s))}return a}function lo(t){return void 0!==t}function co(t,e=""){const n=Mt(),s=Ut(),r=t+20,i=s.firstCreatePass?hr(s,r,1,e,null):s.data[r],o=n[r]=function(t,e){return Ct(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Ps(s,n,o,i),$t(i,!1)}function uo(t){return ho("",t,""),uo}function ho(t,e,n){const s=Mt(),r=Ti(s,t,e,n);return r!==tr&&function(t,e,n){const s=Et(e,t);!function(t,e,n){Ct(t)?t.setValue(e,n):e.textContent=n}(t[11],s,n)}(s,ue(),r),ho}function po(t,e,n){const s=Mt();return Ei(s,Qt(),e)&&xr(Ut(),de(),s,t,e,s[11],n,!0),po}function fo(t,e,n){const s=Mt();if(Ei(s,Qt(),e)){const r=Ut(),i=de();xr(r,i,s,t,e,Jr(Yt(r.data),i,s),n,!0)}return fo}const mo=void 0;var go=["en",[["a","p"],["AM","PM"],mo],[["AM","PM"],mo,mo],[["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"]],mo,[["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"]],mo,[["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}",mo,"{1} 'at' {0}",mo],[".",",",";","%","+","-","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 bo={};function _o(t,e,n){"string"!=typeof e&&(n=e,e=t[Co.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),bo[e]=t,n&&(bo[e][Co.ExtraData]=n)}function yo(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=So(e);if(n)return n;const s=e.split("-")[0];if(n=So(s),n)return n;if("en"===s)return go;throw new Error(`Missing locale data for the locale "${t}".`)}function vo(t){return yo(t)[Co.CurrencyCode]||null}function wo(t){return yo(t)[Co.PluralCase]}function So(t){return t in bo||(bo[t]=F.ng&&F.ng.common&&F.ng.common.locales&&F.ng.common.locales[t]),bo[t]}var Co=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 xo="en-US";function Oo(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&&(xo=t.toLowerCase().replace(/_/g,"-"))}function Eo(t,e,n,s,r){if(t=f(t),Array.isArray(t))for(let i=0;i>20;if(hi(t)||!t.multi){const s=new ye(l,r,Ii),p=Ao(a,e,r?u:u+d,h);-1===p?(Pe(Ie(c,o),i,a),ko(i,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(s),o.push(s)):(n[p]=s,o[p]=s)}else{const p=Ao(a,e,u+d,h),f=Ao(a,e,u,u+d),m=p>=0&&n[p],g=f>=0&&n[f];if(r&&!g||!r&&!m){Pe(Ie(c,o),i,a);const u=function(t,e,n,s,r){const i=new ye(t,n,Ii);return i.multi=[],i.index=e,i.componentProviders=0,To(i,r,s&&!n),i}(r?Io:jo,n.length,r,s,l);!r&&g&&(n[f].providerFactory=u),ko(i,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(u),o.push(u)}else ko(i,t,p>-1?p:f,To(n[r?f:p],l,!r&&s));!r&&s&&g&&n[f].componentProviders++}}}function ko(t,e,n,s){const r=hi(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 To(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ao(t,e,n,s){for(let r=n;r{n.providersResolver=(n,s)=>function(t,e,n){const s=Ut();if(s.firstCreatePass){const r=ct(t);Eo(n,s.data,s.blueprint,r,!0),Eo(e,s.data,s.blueprint,r,!1)}}(n,s?s(t):t,e)}}class Do{}class Po{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${u(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let Fo=(()=>{class t{}return t.NULL=new Po,t})();function Lo(...t){}function Vo(t,e){return new Uo(kt(t,e))}const Mo=function(){return Vo(zt(),Mt())};let Uo=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=Mo,t})();class Ho{}let zo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Bo(),t})();const Bo=function(){const t=Mt(),e=jt(zt().index,t);return function(t){return t[11]}(rt(e)?e:t)};let $o=(()=>{class t{}return t.\u0275prov=g({token:t,providedIn:"root",factory:()=>null}),t})();class qo{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Wo=new qo("11.0.5");class Jo{constructor(){}supports(t){return Ci(t)}create(t){return new Ko(t)}}const Go=(t,e)=>e;class Ko{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||Go}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{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 Qo(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 Xo),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 Xo),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 Qo{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 Zo{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 Xo{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Zo,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 Yo(t,e,n){const s=t.previousIndex;if(null===s)return s;let r=0;return n&&s{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 na(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 na{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 sa=(()=>{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 dn,new un]]}}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=g({token:t,providedIn:"root",factory:()=>new t([new Jo])}),t})(),ra=(()=>{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 dn,new un]]}}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=g({token:t,providedIn:"root",factory:()=>new t([new ta])}),t})();function ia(t,e,n,s,r=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&s.push(Ot(i)),it(i))for(let t=10;t-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Es(this._lView[1],this._lView)}onDestroy(t){Sr(this._lView[1],this._lView,null,t)}markForCheck(){Ur(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Hr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){Gt(!0);try{Hr(t,e,n)}finally{Gt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ms(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class aa extends oa{constructor(t){super(t),this._view=t}detectChanges(){zr(this._view)}checkNoChanges(){!function(t){Gt(!0);try{zr(t)}finally{Gt(!1)}}(this._view)}get context(){return null}}const la=ua;let ca=(()=>{class t{}return t.__NG_ELEMENT_ID__=la,t.__ChangeDetectorRef__=!0,t})();function ua(t=!1){return function(t,e,n){if(!n&&at(t)){const n=jt(t.index,e);return new oa(n,n)}return 47&t.type?new oa(e[16],e):null}(zt(),Mt(),t)}const ha=[new ta],da=new sa([new Jo]),pa=new ra(ha),fa=function(){return _a(zt(),Mt())};let ma=(()=>{class t{}return t.__NG_ELEMENT_ID__=fa,t})();const ga=ma,ba=class extends ga{constructor(t,e,n){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ur(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)),pr(e,n,t),new oa(n)}};function _a(t,e){return 4&t.type?new ba(e,t,Vo(t,e)):null}class ya{}class va{}const wa=function(){return ka(zt(),Mt())};let Sa=(()=>{class t{}return t.__NG_ELEMENT_ID__=wa,t})();const Ca=Sa,xa=class extends Ca{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=n}get element(){return Vo(this._hostTNode,this._hostLView)}get injector(){return new We(this._hostTNode,this._hostLView)}get parentInjector(){const t=De(this._hostTNode,this._hostLView);if(Oe(t)){const e=ke(t,this._hostLView),n=Ee(t);return new We(e[1].data[n+8],e)}return new We(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Oa(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(ya,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(it(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],s=new xa(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),sfs});class Ra extends Do{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Ys).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ja(this.componentDef.inputs)}get outputs(){return ja(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,Ta,r);return i!==Ta||s===Ta?i:e.get(n,s,r)}}}(t,s.injector):t,i=r.get(Ho,xt),o=r.get($o,null),a=i.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Ct(t))return t.selectRootElement(e,n===I.ShadowDom);let s="string"==typeof e?t.querySelector(e):e;return s.textContent="",s}(a,n,this.componentDef.encapsulation):Cs(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)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:fs,clean:$r,playerHandler:null,flags:0},d=wr(0,null,null,1,0,null,null,null,null,null),p=ur(null,d,h,u,null,null,i,a,o,r);let f,m;re(p);try{const t=function(t,e,n,s,r,i){const o=n[1];n[20]=t;const a=hr(o,20,2,"#host",null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(Qr(a,l,!0),null!==t&&(ve(r,t,l),null!==a.classes&&zs(r,t,a.classes),null!==a.styles&&Hs(r,t,a.styles)));const c=s.createRenderer(t,e),u=ur(n,vr(e),null,e.onPush?64:16,n[20],a,s,c,null,null);return o.firstCreatePass&&(Pe(Ie(a,n),o,e.type),Tr(o,a),jr(a,n.length,1)),Mr(n,u),n[20]=u}(c,this.componentDef,p,i,a);if(c)if(n)ve(a,c,["ng-version",Wo.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let s=1,r=2;for(;s0&&zs(a,c,e.join(" "))}if(m=Tt(d,20),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries){const t=zt();e.contentQueries(1,o,t.directiveStart)}const a=zt();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(he(a.index),Er(n[1],a,0,a.directiveStart,a.directiveEnd,e),kr(e,o)),o}(t,this.componentDef,p,h,[fi]),pr(d,p,null)}finally{ce()}return new Na(this.componentType,f,Vo(m,p),p,m)}}class Na 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 aa(s),this.componentType=t}get injector(){return new We(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const Da=new Map;class Pa extends ya{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Aa(this);const n=st(t),s=t[B]||null;s&&Oo(s),this._bootstrapComponents=ms(n.bootstrap),this._r3Injector=ii(t,e,[{provide:ya,useValue:this},{provide:Fo,useValue:this.componentFactoryResolver}],u(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=pi.THROW_IF_NOT_FOUND,n=O.Default){return t===pi||t===ya||t===Zr?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 Fa extends va{constructor(t){super(),this.moduleType=t,null!==st(t)&&function(t){const e=new Set;!function t(n){const s=st(n,!0),r=s.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${u(e)} vs ${u(e.name)}`)}(r,Da.get(r),n),Da.set(r,n));const i=ms(s.imports);for(const o of i)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new Pa(this.moduleType,t)}}function La(t,e,n){const s=Kt()+t,r=Mt();return r[s]===tr?Oi(r,s,n?e.call(n):e()):function(t,e){return t[e]}(r,s)}function Va(t,e,n,s){return Ha(Mt(),Kt(),t,e,n,s)}function Ma(t,e,n,s,r){return za(Mt(),Kt(),t,e,n,s,r)}function Ua(t,e){const n=t[e];return n===tr?void 0:n}function Ha(t,e,n,s,r,i){const o=e+n;return Ei(t,o,r)?Oi(t,o+1,i?s.call(i,r):s(r)):Ua(t,o+1)}function za(t,e,n,s,r,i,o){const a=e+n;return function(t,e,n,s){const r=Ei(t,e,n);return Ei(t,e+1,s)||r}(t,a,r,i)?Oi(t,a+2,o?s.call(o,r,i):s(r,i)):Ua(t,a+2)}function Ba(t,e){const n=Ut();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 ht("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=ut(s.type)),o=k(Ii);try{const t=Ae(!1),e=i();return Ae(t),function(t,e,n,s){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=s}(n,Mt(),r,e),e}finally{k(o)}}function $a(t,e,n){const s=t+20,r=Mt(),i=At(r,s);return Ja(r,Wa(r,s)?Ha(r,Kt(),e,i.transform,n,i):i.transform(n))}function qa(t,e,n,s){const r=t+20,i=Mt(),o=At(i,r);return Ja(i,Wa(i,r)?za(i,Kt(),e,o.transform,n,s,o):o.transform(n,s))}function Wa(t,e){return t[1].data[e].pure}function Ja(t,e){return Si.isWrapped(e)&&(e=Si.unwrap(e),t[Lt.lFrame.bindingIndex]=tr),e}const Ga=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 Ka(){return this._results[wi()]()}class Qa{constructor(){this.dirty=!0,this._results=[],this.changes=new Ga,this.length=0;const t=wi(),e=Qa.prototype;e[t]||(e[t]=Ka)}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=tn(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 Za{constructor(t){this.queryList=t,this.matches=null}clone(){return new Za(this.queryList)}setDirty(){this.queryList.setDirty()}}class Xa{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;t0)s.push(o[t/2]);else{const r=i[t+1],o=e[-n];for(let t=10;t{class t{constructor(t){this.appInits=t,this.resolve=Lo,this.reject=Lo,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{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(yn(_l,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const vl=new Ze("AppId"),wl={provide:vl,useFactory:function(){return`${Sl()}${Sl()}${Sl()}`},deps:[]};function Sl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Cl=new Ze("Platform Initializer"),xl=new Ze("Platform ID"),Ol=new Ze("appBootstrapListener");let El=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const kl=new Ze("LocaleId"),Tl=new Ze("DefaultCurrencyCode");class Al{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const jl=function(t){return new Fa(t)},Il=jl,Rl=function(t){return Promise.resolve(jl(t))},Nl=function(t){const e=jl(t),n=ms(st(t).declarations).reduce((t,e)=>{const n=nt(e);return n&&t.push(new Ra(n)),t},[]);return new Al(e,n)},Dl=Nl,Pl=function(t){return Promise.resolve(Nl(t))};let Fl=(()=>{class t{constructor(){this.compileModuleSync=Il,this.compileModuleAsync=Rl,this.compileModuleAndAllComponentsSync=Dl,this.compileModuleAndAllComponentsAsync=Pl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const Ll=(()=>Promise.resolve(0))();function Vl(t){"undefined"==typeof Zone?Ll.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ml{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ga(!1),this.onMicrotaskEmpty=new Ga(!1),this.onStable=new Ga(!1),this.onError=new Ga(!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=F.requestAnimationFrame,e=F.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(F,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,zl(t),Hl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),zl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,s,r,i,o,a)=>{try{return Bl(t),n.invokeTask(r,i,o,a)}finally{e&&"eventTask"===i.type&&e(),$l(t)}},onInvoke:(e,n,s,r,i,o,a)=>{try{return Bl(t),e.invoke(s,r,i,o,a)}finally{$l(t)}},onHasTask:(e,n,s,r)=>{e.hasTask(s,r),n===s&&("microTask"==r.change?(t._hasPendingMicrotasks=r.microTask,zl(t),Hl(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(!Ml.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ml.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,Ul,Lo,Lo);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 Ul={};function Hl(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 zl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Bl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function $l(t){t._nesting--,Hl(t)}class ql{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ga,this.onMicrotaskEmpty=new Ga,this.onStable=new Ga,this.onError=new Ga}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 Wl=(()=>{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:()=>{Ml.assertNotInAngularZone(),Vl(()=>{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())Vl(()=>{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)(yn(Ml))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})(),Jl=(()=>{class t{constructor(){this._applications=new Map,Zl.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 Zl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();class Gl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Kl(t){Zl=t}let Ql,Zl=new Gl,Xl=!0,Yl=!1;function tc(){return Yl=!0,Xl}function ec(){if(Yl)throw new Error("Cannot enable prod mode after platform setup.");Xl=!1}const nc=new Ze("AllowMultipleToken");class sc{constructor(t,e){this.name=t,this.token=e}}function rc(t,e,n=[]){const s="Platform: "+e,r=new Ze(s);return(e=[])=>{let i=ic();if(!i||i.injector.get(nc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{const t=n.concat(e).concat({provide:r,useValue:!0},{provide:Yr,useValue:"platform"});!function(t){if(Ql&&!Ql.destroyed&&!Ql.injector.get(nc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ql=t.get(oc);const e=t.get(Cl,null);e&&e.forEach(t=>t())}(pi.create({providers:t,name:s}))}return function(t){const e=ic();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 ic(){return Ql&&!Ql.destroyed?Ql:null}let oc=(()=>{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 ql:("zone.js"===t?void 0:t)||new Ml({enableLongStackTrace:tc(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),s=[{provide:Ml,useValue:n}];return n.run(()=>{const e=pi.create({providers:s,parent:this.injector,name:t.moduleType.name}),r=t.create(e),i=r.injector.get(ds,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(()=>{cc(this._modules,r),t.unsubscribe()})}),function(t,e,n){try{const s=n();return Ui(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(yl);return t.runInitializers(),t.donePromise.then(()=>(Oo(r.injector.get(kl,"en-US")||"en-US"),this._moduleDoBootstrap(r),r))})})}bootstrapModule(t,e=[]){const n=ac({},e);return function(t,e,n){const s=new Fa(n);return Promise.resolve(s)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(lc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${u(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)(yn(pi))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function ac(t,e){return Array.isArray(e)?e.reduce(ac,t):Object.assign(Object.assign({},t),e)}let lc=(()=>{class t{constructor(t,e,n,s,r,l){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=r,this._initStatus=l,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 c=new i.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new i.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{Ml.assertNotInAngularZone(),Vl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{Ml.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(c,u.pipe(Object(a.a)()))}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 Do?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(ya),r=n.create(pi.NULL,[],e||n.selector,s),i=r.location.nativeElement,o=r.injector.get(Wl,null),a=o&&r.injector.get(Jl);return o&&a&&a.registerApplication(i,o),r.onDestroy(()=>{this.detachView(r.hostView),cc(this.components,r),a&&a.unregisterApplication(i)}),this._loadComponent(r),tc()&&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;cc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ol,[]).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)(yn(Ml),yn(El),yn(pi),yn(ds),yn(Fo),yn(yl))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function cc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class uc{}class hc{}const dc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let pc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||dc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,s]=t.split("#");return void 0===s&&(s="default"),n("crnd")(e).then(t=>t[s]).then(t=>fc(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("crnd")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[s+r]).then(t=>fc(t,e,s))}}return t.\u0275fac=function(e){return new(e||t)(yn(Fl),yn(hc,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function fc(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const mc=function(t){return null},gc=rc(null,"core",[{provide:xl,useValue:"unknown"},{provide:oc,deps:[pi]},{provide:Jl,deps:[]},{provide:El,deps:[]}]),bc=[{provide:lc,useClass:lc,deps:[Ml,El,pi,ds,Fo,yl]},{provide:Ia,deps:[Ml],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:yl,useClass:yl,deps:[[new un,_l]]},{provide:Fl,useClass:Fl,deps:[]},wl,{provide:sa,useFactory:function(){return da},deps:[]},{provide:ra,useFactory:function(){return pa},deps:[]},{provide:kl,useFactory:function(t){return Oo(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new cn(kl),new un,new dn]]},{provide:Tl,useValue:"USD"}];let _c=(()=>{class t{constructor(t){}}return t.\u0275mod=Z({type:t}),t.\u0275inj=b({factory:function(e){return new(e||t)(yn(lc))},providers:bc}),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(){}}},hCJx:function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return l}),n.d(e,"c",function(){return c});var s=n("2Vo4"),r=n("lJxs"),i=n("fXoL"),o=n("P3kg");class a{constructor(){}hasRoleAsync(t){return this.roles$.pipe(Object(r.a)(e=>this._hasRole(t,e)))}hasAnyRoleAsync(t){return this.roles$.pipe(Object(r.a)(e=>this._hasAnyRole(t,e)))}hasRolesAsync(t){return this.roles$.pipe(Object(r.a)(e=>this._hasRoles(t,e)))}hasRole(t){return this._hasRole(t)}hasAnyRole(t){return this._hasAnyRole(t)}hasRoles(t){return this._hasRoles(t)}_hasRole(t,e=this.getRoles()){return!(!e||!t)&&e.indexOf(t)>=0}_hasAnyRole(t,e=this.getRoles()){return!(!e||!t)&&e.filter(e=>t.indexOf(e)>=0).length>0}_hasRoles(t,e=this.getRoles()){return!(!e||!t)&&e.filter(e=>t.indexOf(e)>=0).length===t.length}}let l=(()=>{class t extends a{constructor(t){super(),this.subject=t,this.roles$=this.subject.authorities$}getRoles(){return this.subject.getAuthorities()}}return t.\u0275fac=function(e){return new(e||t)(i.Sb(o.b))},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t})(),c=(()=>{class t extends a{constructor(){super(),this.roles=new s.a([]),this.roles$=this.roles.asObservable()}ngOnDestroy(){this.roles.complete()}getRoles(){return this.roles.getValue()}update(t){this.roles.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t})()},iVJa:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("d8a0");class r extends s.a{constructor(t){super(s.b.IMPLICIT,t),this.loginUrl=t&&t.loginUrl||null,this.responseType=t&&t.responseType||"token",this.preventClearHashAfterLogin=t&&t.preventClearHashAfterLogin||!1}}},itXk:function(t,e,n){"use strict";n.d(e,"b",function(){return p}),n.d(e,"a",function(){return f});var s=n("z+Ro"),r=n("DH7j"),i=n("7o/Q");class o extends i.a{notifyNext(t,e,n,s,r){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class a extends i.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 l=n("SeVD"),c=n("HDdC");function u(t,e,n,s,r=new a(t,n,s)){if(!r.closed)return e instanceof c.a?e.subscribe(r):Object(l.a)(e)(r)}var h=n("yCtX");const d={};function p(...t){let e=void 0,n=void 0;return Object(s.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(r.a)(t[0])&&(t=t[0]),Object(h.a)(t,n).lift(new f(e))}class f{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new m(t,this.resultSelector))}}class m extends o{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),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{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 I}),n.d(e,"c",function(){return P}),n.d(e,"d",function(){return w});var s=n("ofXK"),r=n("fXoL");class i extends s.s{constructor(){super()}supportsDOMEvents(){return!0}}class o extends i{static makeCurrent(){Object(s.w)(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.v)(document.cookie,t)}}let a,l=null;const c=new r.q("TRANSITION_ID"),u=[{provide:r.d,useFactory:function(t,e,n){return()=>{n.get(r.e).donePromise.then(()=>{const n=Object(s.u)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[c,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.u)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new r.q("EventManagerPlugins");let p=(()=>{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{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.Fb({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends m{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.u)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(s.d))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();const b={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 y(t,e,n){for(let s=0;s{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.Q.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.Q.ShadowDom:return new x(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=y(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.Sb(p),r.Sb(g),r.Sb(r.c))},t.\u0275prov=r.Fb({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(b[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=b[s];r?t.setAttributeNS(r,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=b[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.G.DashCase|r.G.Important)?t.style.setProperty(e,n,s&r.G.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&r.G.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=y(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 x 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=y(s.id,s.styles,[]);for(let i=0;i{class t extends f{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.Sb(s.d))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();const E=["alt","control","meta","shift"],k={"\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"},T={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"},A={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let j=(()=>{class t extends f{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.u)().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(E.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&&T.hasOwnProperty(e)&&(e=T[e]))}return k[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),E.forEach(s=>{s!=n&&(0,A[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.Sb(s.d))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Fb)({factory:function(){return Object(r.Sb)(N)},token:t,providedIn:"root"}),t})();function R(t){return new N(t.get(s.d))}let N=(()=>{class t extends I{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case r.I.NONE:return e;case r.I.HTML:return Object(r.db)(e,"HTML")?Object(r.vb)(e):Object(r.bb)(this._doc,String(e));case r.I.STYLE:return Object(r.db)(e,"Style")?Object(r.vb)(e):e;case r.I.SCRIPT:if(Object(r.db)(e,"Script"))return Object(r.vb)(e);throw new Error("unsafe value used in a script context");case r.I.URL:return Object(r.nb)(e),Object(r.db)(e,"URL")?Object(r.vb)(e):Object(r.cb)(String(e));case r.I.RESOURCE_URL:if(Object(r.db)(e,"ResourceURL"))return Object(r.vb)(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.Sb(s.d))},t.\u0275prov=Object(r.Fb)({factory:function(){return R(Object(r.Sb)(r.o))},token:t,providedIn:"root"}),t})();const D=[{provide:r.B,useValue:s.t},{provide:r.C,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:s.d,useFactory:function(){return Object(r.tb)(document),document},deps:[]}],P=Object(r.R)(r.W,"browser",D),F=[[],{provide:r.Z,useValue:"root"},{provide:r.m,useFactory:function(){return new r.m},deps:[]},{provide:d,useClass:O,multi:!0,deps:[s.d,r.z,r.B]},{provide:d,useClass:j,multi:!0,deps:[s.d]},[],{provide:w,useClass:w,deps:[p,g,r.c]},{provide:r.F,useExisting:w},{provide:m,useExisting:g},{provide:g,useClass:g,deps:[s.d]},{provide:r.M,useClass:r.M,deps:[r.z]},{provide:p,useClass:p,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:c,useExisting:r.c},u]}}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)(r.Sb(t,12))},providers:F,imports:[s.c,r.f]}),t})();"undefined"!=typeof window&&window},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return s});const s=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kiQV:function(t){t.exports=JSON.parse('{"name":"ngx-security","version":"11.0.1","scripts":{"ng":"ng","start":"ng serve","build":"ng build --prod --output-path ./docs --base-href /ngx-security/","test":"ng test","lint":"ng lint","e2e":"ng e2e","build:core":"ng build core --prod","build:roles":"ng build roles --prod","build:permissions":"ng build permissions --prod","build:auth":"ng build auth --prod","publish:core":"npm publish ./dist/core --access public","publish:roles":"npm publish ./dist/roles --access public","publish:permissions":"npm publish ./dist/permissions --access public","publish:auth":"npm publish ./dist/auth --access public","build:lib":"npm run build:core && npm run build:roles && npm run build:permissions && npm run build:auth","update:docs":"npm run build && git add -A docs/ && git commit -m \'Update docs app\'","release":"ngitflow release start && npm run update:docs && ngitflow release finish","release:major":"ngitflow release start major && npm run update:docs && ngitflow release finish"},"private":true,"dependencies":{"@angular/animations":"^11.0.5","@angular/cdk":"^11.0.3","@angular/common":"^11.0.5","@angular/compiler":"^11.0.5","@angular/core":"^11.0.5","@angular/forms":"^11.0.5","@angular/material":"^11.0.3","@angular/platform-browser":"^11.0.5","@angular/platform-browser-dynamic":"^11.0.5","@angular/router":"^11.0.5","core-js":"^3.8.1","highlight.js":"^10.4.1","material-design-icons":"^3.0.1","ngx-highlightjs":"^4.1.3","rxjs":"^6.6.3","shiro-trie":"^0.4.9","tslib":"^2.0.0","zone.js":"^0.10.3"},"devDependencies":{"@angular-devkit/build-angular":"^0.1100.5","@angular-devkit/core":"^11.0.5","@angular/cli":"^11.0.5","@angular/compiler-cli":"^11.0.5","@angular/language-service":"^11.0.5","@types/jasmine":"~3.6.0","@types/jasminewd2":"^2.0.8","@types/node":"^14.14.14","codelyzer":"^6.0.0","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"~5.1.0","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","ng-packagr":"^11.0.3","ngitflow":"^2.0.0","protractor":"~7.0.0","ts-node":"~9.0.0","tslint":"^6.1.3","typescript":"^4.0.5"}}')},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)}}},n6bG:function(t,e,n){"use strict";function s(t){return"function"==typeof t}n.d(e,"a",function(){return s})},nLfN:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return _}),n.d(e,"d",function(){return b}),n.d(e,"e",function(){return u}),n.d(e,"f",function(){return m}),n.d(e,"g",function(){return g});var s=n("fXoL"),r=n("ofXK");let i;try{i="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){i=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(r.r)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!i)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(s.B))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(s.B))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function u(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(c),o;let t=document.createElement("input");return o=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let h,d,p,f;function m(t){return function(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?t:!!t.capture}function g(){if(null==p)if("object"==typeof document&&document||(p=!1),"scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const n=document.createElement("div"),s=n.style;s.width="2px",s.height="1px",t.appendChild(n),document.body.appendChild(t),d=0,0===t.scrollLeft&&(t.scrollLeft=1,d=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return d}function _(t){if(function(){if(null==f){const t="undefined"!=typeof document?document.head:null;f=!(!t||!t.createShadowRoot&&!t.attachShadow)}return f}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},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))}}},ngFo:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var s=n("tk/3"),r=n("HDdC"),i=n("RJIb"),o=n("og18"),a=n("xDj2"),l=n("Q8NU"),c=n("VWR/"),u=n("fXoL");let h=(()=>{class t{constructor(t,e){this.tokens=t,this.options=e}initialize(t=!1){return new r.a(e=>{if(this.tokens.hasValidAccessToken())return e.next({message:"Access is still valid"}),void e.complete();const{code:n,state:s,error:r}=a.a.getCodePartsFromUrl(window.location.search);if(!this.options.preventClearHashAfterLogin){const t=location.href.replace(/[&?]code=[^&$]*/,"").replace(/[&?]scope=[^&$]*/,"").replace(/[&?]state=[^&$]*/,"").replace(/[&?]session_state=[^&$]*/,"");history.replaceState(null,window.name,t)}if(!r)return n||s||!t?void(s?s===l.a.get("nonce")?n?this.getTokenFromCode(n).subscribe(()=>{e.next({message:"Tokens saved"}),e.complete()},e.error):e.error({message:"Code is missing"}):e.error({message:"Nonce is not valid"}):e.error({message:"Nonce is missing"})):(e.next({message:"No code and authenticate automatically is set to true - you will be redirected"}),e.complete(),void this.authenticate());e.error({message:r})})}authenticate(t=document.location.href,e=!1,n=new s.e){document.location.href=this.loginUrl(t,e,n)}loginUrl(t,e=!1,n=new s.e){const r=c.a.createAndSaveNonce();return n=(n||new s.e).set("client_id",this.options.clientId).set("state",r).set("response_type",this.options.responseType).set("redirect_uri",t),this.options.scope&&(n=n.set("scope",this.options.scope)),this.options.resource&&(n=n.set("resource",this.options.resource)),e&&(n=n.set("prompt","none")),`${this.options.loginUrl}?${n.toString()}`}clear(){this.tokens.clear()}getTokenFromCode(t){let e=new s.e;if(!this.options.disablePKCE){const t=l.a.get("PKCI_verifier");t?e=e.set("code_verifier",t):console.warn("No PKCI verifier found in storage!")}return this.tokens.authenticateWithAuthorizationCode(t,e)}}return t.\u0275fac=function(e){return new(e||t)(u.Sb(i.a),u.Sb(o.a))},t.\u0275prov=u.Fb({token:t,factory:t.\u0275fac}),t})()},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{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Fb)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(s.Sb)(d)}const h=new s.q("Location Initialized");let d=(()=>{class t extends c{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){p()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){p()?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.Sb(l))},t.\u0275prov=Object(s.Fb)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d(Object(s.Sb)(l))}function m(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 g(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 b(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Fb)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(s.Sb)(l).location;return new w(Object(s.Sb)(c),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 m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const r=this.prepareExternalUrl(n+b(s));this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,s){const r=this.prepareExternalUrl(n+b(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.Sb(c),s.Sb(v,8))},t.\u0275prov=s.Fb({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=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,s){let r=this.prepareExternalUrl(n+b(s));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}replaceState(t,e,n,s){let r=this.prepareExternalUrl(n+b(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.Sb(c),s.Sb(v,8))},t.\u0275prov=s.Fb({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=g(O(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+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,O(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+b(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(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.Sb(_),s.Sb(c))},t.normalizeQueryParams=b,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=Object(s.Fb)({factory:x,token:t,providedIn:"root"}),t})();function x(){return new C(Object(s.Sb)(_),Object(s.Sb)(c))}function O(t){return t.replace(/\/index.html$/,"")}var E=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}({});const k=s.mb;class T{}let A=(()=>{class t extends T{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(k(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(s.u))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();function j(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.ub)(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.Jb(s.s),s.Jb(s.t),s.Jb(s.l),s.Jb(s.E))},t.\u0275dir=s.Eb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class R{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 N=(()=>{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 R(null,this._ngForOf,-1,-1),null===s?void 0:s),r=new D(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 D(t,r);e.push(i)}});for(let n=0;n{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.Jb(s.P),s.Jb(s.L),s.Jb(s.s))},t.\u0275dir=s.Eb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class D{constructor(t,e){this.record=t,this.view=e}}let P=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new F,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){L("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){L("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.Jb(s.P),s.Jb(s.L))},t.\u0275dir=s.Eb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class F{constructor(){this.$implicit=null,this.ngIf=null}}function L(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(s.ub)(e)}'.`)}class V{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let M=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new V(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.P),s.Jb(s.L),s.Jb(M,1))},t.\u0275dir=s.Eb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})();class H{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class z{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const B=new z,$=new H;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 B;if(Object(s.qb)(e))return $;throw n=t,Error(`InvalidPipeArgument: '${e}' for pipe '${Object(s.ub)(n)}'`);var n}_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.Ub())},t.\u0275pipe=s.Ib({name:"async",type:t,pure:!1}),t})(),W=(()=>{class t{transform(t){return JSON.stringify(t,null,2)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=s.Ib({name:"json",type:t,pure:!1}),t})(),J=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[{provide:T,useClass:A}]}),t})();const G="browser";function K(t){return t===G}let Q=(()=>{class t{}return t.\u0275prov=Object(s.Fb)({token:t,providedIn:"root",factory:()=>new Z(Object(s.Sb)(l),window,Object(s.Sb)(s.m))}),t})();class Z{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,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){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}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])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=X(this.window.history)||X(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 X(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},og18:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("d8a0");class r extends s.a{constructor(t){super(s.b.AUTHORIZATION_CODE,t),this.loginUrl=t&&t.loginUrl||null,this.tokenUrl=t&&t.tokenUrl||null,this.clientSecret=t&&t.clientSecret||null,this.useHttpBasicAuth=t&&t.useHttpBasicAuth||!0,this.responseType=t&&t.responseType||"code",this.preventClearHashAfterLogin=t&&t.preventClearHashAfterLogin||!1,this.disablePKCE=t&&t.disablePKCE||null}}},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)}}},pfHM:function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"d",function(){return l}),n.d(e,"a",function(){return c});var s=n("2Vo4"),r=n("lJxs"),i=n("fXoL");class o{}class a{}class l{getAuthorities(){const t=this.getSubject();return t&&t.authorities||[]}update(t){t.credentials=null,this.setSubject(t)}updateDetails(t){const e=Object.assign({},this.getSubject());e.details=t,this.setSubject(e)}clear(){this.setSubject(null)}}let c=(()=>{class t extends l{constructor(){super(...arguments),this.subject=new s.a(null),this.subject$=this.subject.asObservable(),this.authorities$=this.subject$.pipe(Object(r.a)(t=>t&&t.authorities||null)),this.details$=this.subject$.pipe(Object(r.a)(t=>t&&t.details||null)),this.displayName$=this.details$.pipe(Object(r.a)(t=>t&&t.displayName||null)),this.isAuthorized$=this.subject$.pipe(Object(r.a)(t=>t&&t.authorities&&t.authorities.length>=0))}ngOnDestroy(){this.subject.complete()}getSubject(){return this.subject.getValue()}setSubject(t){this.subject.next(t)}}return t.\u0275fac=function(e){return u(e||t)},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t})();const u=i.Qb(c)},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:c,_subscriptions:u}=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;tt.concat(e instanceof o?e.errors:e),[])}},s2Hm:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var s=n("d8a0");class r extends s.a{constructor(t){super(s.b.PASSWORD,t),this.tokenUrl=t&&t.tokenUrl||null,this.clientSecret=t&&t.clientSecret||null,this.useHttpBasicAuth=t&&t.useHttpBasicAuth||!0}}},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})()},"tk/3":function(t,e,n){"use strict";n.d(e,"a",function(){return T}),n.d(e,"b",function(){return E}),n.d(e,"c",function(){return H}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return m});var s=n("fXoL"),r=n("LRne"),i=n("HDdC"),o=n("bOdf"),a=n("pLZG"),l=n("lJxs"),c=n("ofXK");class u{}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 p{encodeKey(t){return f(t)}encodeValue(t){return f(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function f(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 m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new p,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 m({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 g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{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?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new y(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 x 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 O(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let E=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof y)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 m?n.params:new m({fromObject:n.params})),s=new y(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 y||"events"===n.observe)return i;const c=i.pipe(Object(a.a)(t=>t instanceof C));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return c.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 c.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 c.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 c.pipe(Object(l.a)(t=>t.body))}case"response":return c;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 m).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,O(n,e))}post(t,e,n={}){return this.request("POST",t,O(n,e))}put(t,e,n={}){return this.request("PUT",t,O(n,e))}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(u))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();class k{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const T=new s.q("HTTP_INTERCEPTORS");let A=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const j=/^\)\]\}',?\n/;class I{}let R=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})(),N=(()=>{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 c=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(u){l=t,c&&(c=!1,l={error:u,text:l})}}c?(e.next(new C({body:l,headers:s,status:r,statusText:o,url:a||void 0})),e.complete()):e.error(new x({error:l,headers:s,status:r,statusText:o,url:a||void 0}))},a=t=>{const{url:s}=i(),r=new x({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:s||void 0});e.error(r)};let l=!1;const c=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)},u=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",c),null!==s&&n.upload&&n.upload.addEventListener("progress",u)),n.send(s),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",c),null!==s&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(I))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();const D=new s.q("XSRF_COOKIE_NAME"),P=new s.q("XSRF_HEADER_NAME");class F{}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(c.v)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(c.d),s.Sb(s.B),s.Sb(D))},t.\u0275prov=s.Fb({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.Sb(F),s.Sb(P))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{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(T,[]);this.chain=t.reduceRight((t,e)=>new k(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(h),s.Sb(s.r))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})(),U=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:V,useClass:A}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:D,useValue:e.cookieName}:[],e.headerName?{provide:P,useValue:e.headerName}:[]]}}}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[V,{provide:T,useExisting:V,multi:!0},{provide:F,useClass:L},{provide:D,useValue:"XSRF-TOKEN"},{provide:P,useValue:"X-XSRF-TOKEN"}]}),t})(),H=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[E,{provide:u,useClass:M},N,{provide:h,useExisting:N},R,{provide:I,useExisting:R}],imports:[[U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",function(){return Ut}),n.d(e,"b",function(){return L}),n.d(e,"c",function(){return rn}),n.d(e,"d",function(){return on}),n.d(e,"e",function(){return cn}),n.d(e,"f",function(){return vn}),n.d(e,"g",function(){return un});var s=n("ofXK"),r=n("fXoL"),i=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),l=n("itXk"),c=n("HDdC"),u=n("sVev"),h=n("NXyV"),d=n("EY2u"),p=n("XNiG"),f=n("lJxs"),m=n("0EUg"),g=n("NJ9Y"),b=n("eIep"),_=n("IzEk"),y=n("JX91"),v=n("7o/Q");class w{constructor(t,e,n=!1){this.accumulator=t,this.seed=e,this.hasSeed=n}call(t,e){return e.subscribe(new S(t,this.accumulator,this.seed,this.hasSeed))}}class S extends v.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)}}var C=n("pLZG"),x=n("JIr8"),O=n("bOdf"),E=n("xbPD"),k=n("XDbj"),T=n("SpAZ");function A(t,e){const n=arguments.length>=2;return s=>s.pipe(t?Object(C.a)((e,n)=>t(e,n,s)):T.a,Object(_.a)(1),n?Object(E.a)(e):Object(k.a)(()=>new u.a))}var j=n("5+tZ"),I=n("vkgz"),R=n("BFxc"),N=n("nYR2"),D=n("bHdf");class P{constructor(t,e){this.id=t,this.url=e}}class F extends P{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 L extends P{constructor(t,e,n){super(t,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class V extends P{constructor(t,e,n){super(t,e),this.reason=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class M extends P{constructor(t,e,n){super(t,e),this.error=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class U extends P{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 H extends P{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 z extends P{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 B extends P{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 $ extends P{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 q{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class W{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class J{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class G{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class K{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Q{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Z{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 X{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 Y(t){return new X(t)}function tt(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function et(t,e,n){const s=n.path.split("/");if(s.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||s.lengths[e]===t)}return t===e}function rt(t){return Array.prototype.concat.apply([],t)}function it(t){return t.length>0?t[t.length-1]:null}function ot(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function at(t){return Object(r.qb)(t)?t:Object(r.rb)(t)?Object(o.a)(Promise.resolve(t)):Object(i.a)(t)}function lt(t,e,n){return n?function(t,e){return nt(t,e)}(t.queryParams,e.queryParams)&&ct(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>st(t[n],e[n]))}(t.queryParams,e.queryParams)&&ut(t.root,e.root)}function ct(t,e){if(!mt(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(!ct(t.children[n],e.children[n]))return!1}return!0}function ut(t,e){return ht(t,e,e.segments)}function ht(t,e,n){if(t.segments.length>n.length)return!!mt(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!mt(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!ut(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!!mt(t.segments,s)&&!!t.children.primary&&ht(t.children.primary,e,r)}}class dt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return yt.serialize(this)}}class pt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ot(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vt(this)}}class ft{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Y(this.parameters)),this._parameterMap}toString(){return kt(this)}}function mt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function gt(t,e){let n=[];return ot(t.children,(t,s)=>{"primary"===s&&(n=n.concat(e(t,s)))}),ot(t.children,(t,s)=>{"primary"!==s&&(n=n.concat(e(t,s)))}),n}class bt{}class _t{parse(t){const e=new Rt(t);return new dt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+wt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Ct(e)}=${Ct(t)}`).join("&"):`${Ct(e)}=${Ct(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const yt=new _t;function vt(t){return t.segments.map(t=>kt(t)).join("/")}function wt(t,e){if(!t.hasChildren())return vt(t);if(e){const e=t.children.primary?wt(t.children.primary,!1):"",n=[];return ot(t.children,(t,e)=>{"primary"!==e&&n.push(`${e}:${wt(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=gt(t,(e,n)=>"primary"===n?[wt(t.children.primary,!1)]:[`${n}:${wt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${vt(t)}/${e[0]}`:`${vt(t)}/(${e.join("//")})`}}function St(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ct(t){return St(t).replace(/%3B/gi,";")}function xt(t){return St(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ot(t){return decodeURIComponent(t)}function Et(t){return Ot(t.replace(/\+/g,"%20"))}function kt(t){return`${xt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${xt(t)}=${xt(e[t])}`).join("")}`;var e}const Tt=/^[^\/()?;=#]+/;function At(t){const e=t.match(Tt);return e?e[0]:""}const jt=/^[^=?&#]+/,It=/^[^?&#]+/;class Rt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pt([],{}):new pt([],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 pt(t,e)),n}parseSegment(){const t=At(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new ft(Ot(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=At(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=At(this.remaining);t&&(n=t,this.capture(n))}t[Ot(e)]=Ot(n)}parseQueryParam(t){const e=function(t){const e=t.match(jt);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(It);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const s=Et(e),r=Et(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=At(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 pt([],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 Nt{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=Dt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Dt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Pt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Pt(t,this._root).map(t=>t.value)}}function Dt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Dt(t,n);if(e)return e}return null}function Pt(t,e){if(t===e.value)return[e];for(const n of e.children){const s=Pt(t,n);if(s.length)return s.unshift(e),s}return[]}class Ft{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Lt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Vt extends Nt{constructor(t,e){super(t),this.snapshot=e,$t(this,t)}toString(){return this.snapshot.toString()}}function Mt(t,e){const n=function(t,e){const n=new zt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Bt("",new Ft(n,[]))}(t,e),s=new a.a([new ft("",{})]),r=new a.a({}),i=new a.a({}),o=new a.a({}),l=new a.a(""),c=new Ut(s,r,o,l,i,"primary",e,n.root);return c.snapshot=n.root,new Vt(new Ft(c,[]),n)}class Ut{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(f.a)(t=>Y(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(f.a)(t=>Y(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ht(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 zt{constructor(t,e,n,s,r,i,o,a,l,c,u){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=c,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Y(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Y(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Bt extends Nt{constructor(t,e){super(e),this.url=t,$t(this,e)}toString(){return qt(this._root)}}function $t(t,e){e.value._routerState=t,e.children.forEach(e=>$t(t,e))}function qt(t){const e=t.children.length>0?` { ${t.children.map(qt).join(", ")} } `:"";return`${t.value}${e}`}function Wt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,nt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),nt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nnt(t.parameters,s[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Jt(t.parent,e.parent))}function Gt(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 Gt(t,e,s);return Gt(t,e)})}(t,e,n);return new Ft(s,r)}{const n=t.retrieve(e.value);if(n){const t=n.route;return Kt(e,t),t}{const n=new Ut(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=>Gt(t,e));return new Ft(n,r)}}var s}function Kt(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{i[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new dt(n.root===t?e:Yt(n.root,t,e),i,r)}function Yt(t,e,n){const s={};return ot(t.children,(t,r)=>{s[r]=t===e?n:Yt(t,e,n)}),new pt(t.segments,s)}class te{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Qt(n[0]))throw new Error("Root segment cannot have matrix parameters");const s=n.find(Zt);if(s&&s!==it(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ee{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ne(t,e,n){if(t||(t=new pt([],{})),0===t.segments.length&&t.hasChildren())return se(t,e,n);const s=function(t,e,n){let s=0,r=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;r=n.length)return i;const e=t.segments[r],o=n[s];if(Zt(o))break;const a=""+o,l=s0&&void 0===a)break;if(a&&l&&"object"==typeof l&&void 0===l.outlets){if(!ae(a,l,e))return i;s+=2}else{if(!ae(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{"string"==typeof n&&(n=[n]),null!==n&&(r[s]=ne(t.children[s],e,n))}),ot(t.children,(t,e)=>{void 0===s[e]&&(r[e]=t)}),new pt(t.segments,r)}}function re(t,e,n){const s=t.segments.slice(0,e);let r=0;for(;r{"string"==typeof t&&(t=[t]),null!==t&&(e[n]=re(new pt([],{}),0,t))}),e}function oe(t){const e={};return ot(t,(t,n)=>e[n]=""+t),e}function ae(t,e,n){return t==n.path&&nt(e,n.parameters)}class le{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),Wt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const s=Lt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,s[e],n),delete s[e]}),ot(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);if(n){const s=Lt(t),r=t.value.component?n.children:e;ot(s,(t,e)=>this.deactivateRouteAndItsChildren(t,r)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const s=Lt(e);t.children.forEach(t=>{this.activateRoutes(t,s[t.value.outlet],n),this.forwardEvent(new Q(t.value.snapshot))}),t.children.length&&this.forwardEvent(new G(t.value.snapshot))}activateRoutes(t,e,n){const s=t.value,r=e?e.value:null;if(Wt(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),ce(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 ce(t){Wt(t.value),t.children.forEach(ce)}class ue{constructor(t,e){this.routes=t,this.module=e}}function he(t){return"function"==typeof t}function de(t){return t instanceof dt}const pe=Symbol("INITIAL_VALUE");function fe(){return Object(b.a)(t=>Object(l.b)(...t.map(t=>t.pipe(Object(_.a)(1),Object(y.a)(pe)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(s){return s.lift(new w(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,s,r)=>{if(t!==pe)return t;if(s===pe&&(n=!0),!n){if(!1===s)return s;if(r===e.length-1||de(s))return s}return t},t)},pe),Object(C.a)(t=>t!==pe),Object(f.a)(t=>de(t)?t:!0===t),Object(_.a)(1)))}let me=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Db({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&r.Kb(0,"router-outlet")},directives:function(){return[un]},encapsulation:2}),t})();function ge(t,e=""){for(let n=0;ne.error(new we(t)))}function xe(t){return new c.a(e=>e.error(new Se(t)))}function Oe(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ee{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(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(f.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(x.a)(t=>{if(t instanceof Se)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof we)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(f.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(x.a)(t=>{if(t instanceof we)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 pt([],{primary:t}):t;return new dt(s,e,n)}expandSegmentGroup(t,e,n,s){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(f.a)(t=>new pt([],t))):this.expandSegment(t,n,e,n.segments,s,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(i.a)({});const n=[],s=[],r={};return ot(t,(t,i)=>{const o=e(i,t).pipe(Object(f.a)(t=>r[i]=t));"primary"===i?n.push(o):s.push(o)}),i.a.apply(null,n.concat(s)).pipe(Object(m.a)(),Object(g.a)(),Object(f.a)(()=>r))}(n.children,(n,s)=>this.expandSegmentGroup(t,e,s,n))}expandSegment(t,e,n,s,r,a){const c=function(t){return t.reduce((t,e)=>{const n=ve(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(n);c.has(r)||c.set(r,[]);const h=n=>Object(o.a)(n).pipe(Object(O.a)(o=>this.expandSegmentAgainstRoute(t,e,n,o,s,r,a).pipe(Object(x.a)(t=>{if(t instanceof we)return Object(i.a)(null);throw t}))),A(t=>null!==t),Object(x.a)(t=>{if(t instanceof u.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,s,r))return Object(i.a)(new pt([],{}));throw new we(e)}throw t})),d=Array.from(c.entries()).map(([t,e])=>{const n=h(e);return t===r?n:n.pipe(Object(f.a)(()=>null),Object(x.a)(()=>Object(i.a)(null)))});return Object(o.a)(d).pipe(t=>t.lift(new l.a(void 0)),A(),Object(f.a)(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,s,r,i,o){return ve(s)!==i&&""!==s.path?Ce(e):void 0===s.redirectTo?this.matchSegmentAgainstRoute(t,e,s,r):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,s,r,i):Ce(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("/")?xe(r):this.lineralizeSegments(n,r).pipe(Object(j.a)(n=>{const r=new pt(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:c}=ke(e,s,r);if(!o)return Ce(e);const u=this.applyRedirectCommands(a,s.redirectTo,c);return s.redirectTo.startsWith("/")?xe(u):this.lineralizeSegments(s,u).pipe(Object(j.a)(s=>this.expandSegment(t,e,n,s.concat(r.slice(l)),i,!1)))}matchSegmentAgainstRoute(t,e,n,s){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(f.a)(t=>(n._loadedConfig=t,new pt(s,{})))):Object(i.a)(new pt(s,{}));const{matched:r,consumedSegments:o,lastChild:a}=ke(e,n,s);if(!r)return Ce(e);const l=s.slice(a);return this.getChildConfig(t,n,s).pipe(Object(j.a)(t=>{const n=t.module,s=t.routes,{segmentGroup:r,slicedSegments:a}=function(t,e,n,s){return n.length>0&&function(t,e,n){return n.some(n=>Ae(t,e,n)&&"primary"!==ve(n))}(t,n,s)?{segmentGroup:Te(new pt(e,function(t,e){const n={};n.primary=e;for(const s of t)""===s.path&&"primary"!==ve(s)&&(n[ve(s)]=new pt([],{}));return n}(s,new pt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>Ae(t,e,n))}(t,n,s)?{segmentGroup:Te(new pt(t.segments,function(t,e,n,s){const r={};for(const i of n)Ae(t,e,i)&&!s[ve(i)]&&(r[ve(i)]=new pt([],{}));return Object.assign(Object.assign({},s),r)}(t,n,s,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,l,s);return 0===a.length&&r.hasChildren()?this.expandChildren(n,s,r).pipe(Object(f.a)(t=>new pt(o,t))):0===s.length&&0===a.length?Object(i.a)(new pt(o,{})):this.expandSegment(n,r,s,a,"primary",!0).pipe(Object(f.a)(t=>new pt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(i.a)(new ue(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(i.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(j.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(f.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(tt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(i.a)(new ue([],t))}runCanLoadGuards(t,e,n){const s=e.canLoad;if(!s||0===s.length)return Object(i.a)(!0);const r=s.map(s=>{const r=t.get(s);let i;if(function(t){return t&&he(t.canLoad)}(r))i=r.canLoad(e,n);else{if(!he(r))throw new Error("Invalid CanLoad guard");i=r(e,n)}return at(i)});return Object(i.a)(r).pipe(fe(),Object(I.a)(t=>{if(!de(t))return;const e=tt(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(f.a)(t=>!0===t))}lineralizeSegments(t,e){let n=[],s=e.root;for(;;){if(n=n.concat(s.segments),0===s.numberOfChildren)return Object(i.a)(n);if(s.numberOfChildren>1||!s.children.primary)return Oe(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 dt(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ot(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 ot(e.children,(e,r)=>{i[r]=this.createSegmentGroup(t,e,n,s)}),new pt(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 ke(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const s=(e.matcher||et)(n,t,e);return s?{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,positionalParamSegments:s.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Te(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new pt(t.segments.concat(e.segments),e.children)}return t}function Ae(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}class je{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Ie{constructor(t,e){this.component=t,this.route=e}}function Re(t,e,n){const s=t._root;return De(s,e?e._root:null,n,[s.value])}function Ne(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 De(t,e,n,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const i=Lt(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!mt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!mt(t.url,e.url)||!nt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Jt(t,e)||!nt(t.queryParams,e.queryParams);case"paramsChange":default:return!Jt(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new je(s)):(i.data=o.data,i._resolvedData=o._resolvedData),De(t,e,i.component?a?a.children:null:n,s,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Ie(a.outlet.component,o))}else o&&Pe(e,a,r),r.canActivateChecks.push(new je(s)),De(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]}),ot(i,(t,e)=>Pe(t,n.getContext(e),r)),r}function Pe(t,e,n){const s=Lt(t),r=t.value;ot(s,(t,s)=>{Pe(t,r.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new Ie(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}function Fe(t,e){return null!==t&&e&&e(new K(t)),Object(i.a)(!0)}function Le(t,e){return null!==t&&e&&e(new J(t)),Object(i.a)(!0)}function Ve(t,e,n){const s=e.routeConfig?e.routeConfig.canActivate:null;if(!s||0===s.length)return Object(i.a)(!0);const r=s.map(s=>Object(h.a)(()=>{const r=Ne(s,e,n);let i;if(function(t){return t&&he(t.canActivate)}(r))i=at(r.canActivate(e,t));else{if(!he(r))throw new Error("Invalid CanActivate guard");i=at(r(e,t))}return i.pipe(A())}));return Object(i.a)(r).pipe(fe())}function Me(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(h.a)(()=>{const r=e.guards.map(r=>{const i=Ne(r,e.node,n);let o;if(function(t){return t&&he(t.canActivateChild)}(i))o=at(i.canActivateChild(s,t));else{if(!he(i))throw new Error("Invalid CanActivateChild guard");o=at(i(s,t))}return o.pipe(A())});return Object(i.a)(r).pipe(fe())}));return Object(i.a)(r).pipe(fe())}class Ue{}class He{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(){try{const t=$e(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new zt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),s=new Ft(n,e),r=new Bt(this.url,s);return this.inheritParamsAndData(r._root),Object(i.a)(r)}catch(t){return new c.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Ht(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=gt(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),s=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${s}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,s){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,s)}catch(r){if(!(r instanceof Ue))throw r}if(this.noLeftoversInUrl(e,n,s))return[];throw new Ue}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,s){if(t.redirectTo)throw new Ue;if((t.outlet||"primary")!==s)throw new Ue;let r,i=[],o=[];if("**"===t.path){const i=n.length>0?it(n).parameters:{};r=new zt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,We(t),s,t.component,t,ze(e),Be(e)+n.length,Je(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ue;return{consumedSegments:[],lastChild:0,parameters:{}}}const s=(e.matcher||et)(n,t,e);if(!s)throw new Ue;const r={};ot(s.posParams,(t,e)=>{r[e]=t.path});const i=s.consumed.length>0?Object.assign(Object.assign({},r),s.consumed[s.consumed.length-1].parameters):r;return{consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),r=new zt(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,We(t),s,t.component,t,ze(e),Be(e)+i.length,Je(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=$e(e,i,o,a,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new Ft(r,t)]}if(0===a.length&&0===c.length)return[new Ft(r,[])];const u=this.processSegment(a,l,c,"primary");return[new Ft(r,u)]}}function ze(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Be(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 $e(t,e,n,s,r){if(n.length>0&&function(t,e,n){return n.some(n=>qe(t,e,n)&&"primary"!==ve(n))}(t,n,s)){const r=new pt(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"!==ve(i)){const n=new pt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,r[ve(i)]=n}return r}(t,e,s,new pt(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=>qe(t,e,n))}(t,n,s)){const i=new pt(t.segments,function(t,e,n,s,r,i){const o={};for(const a of s)if(qe(t,n,a)&&!r[ve(a)]){const n=new pt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[ve(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 pt(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function qe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function We(t){return t.data||{}}function Je(t){return t.resolve||{}}function Ge(t){return function(e){return e.pipe(Object(b.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(f.a)(()=>e)):Object(o.a)([e])}))}}class Ke 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 Qe=new r.q("ROUTES");class Ze{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(f.a)(n=>{this.onLoadEndListener&&this.onLoadEndListener(e);const s=n.create(t);return new ue(rt(s.injector.get(Qe)).map(ye),s)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):at(t()).pipe(Object(j.a)(t=>t instanceof r.v?Object(i.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class Xe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Ye,this.attachRef=null}}class Ye{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 Xe,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class tn{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function en(t){throw t}function nn(t,e,n){return e.parse("/")}function sn(t,e){return Object(i.a)(null)}let rn=(()=>{class t{constructor(t,e,n,s,i,o,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=s,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new p.a,this.errorHandler=en,this.malformedUriErrorHandler=nn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:sn,afterPreactivation:sn},this.urlHandlingStrategy=new tn,this.routeReuseStrategy=new Ke,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 u=i.get(r.z);this.isNgZoneEnabled=u instanceof r.z,this.resetConfig(c),this.currentUrlTree=new dt(new pt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ze(o,l,t=>this.triggerEvent(new q(t)),t=>this.triggerEvent(new W(t))),this.routerState=Mt(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(C.a)(t=>0!==t.id),Object(f.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(b.a)(t=>{let n=!1,s=!1;return Object(i.a)(t).pipe(Object(I.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(b.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(i.a)(t).pipe(Object(b.a)(t=>{const n=this.transitions.getValue();return e.next(new F(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?d.a:[t]}),Object(b.a)(t=>Promise.resolve(t)),(s=this.ngModule.injector,r=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(b.a)(t=>function(t,e,n,s,r){return new Ee(t,e,n,s,r).apply()}(s,r,o,t.extractedUrl,a).pipe(Object(f.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(I.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,s,r){return function(i){return i.pipe(Object(j.a)(i=>function(t,e,n,s,r="emptyOnly",i="legacy"){return new He(t,e,n,s,r,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),s,r).pipe(Object(f.a)(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(I.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(I.a)(t=>{const n=new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var s,r,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:s,source:r,restoredState:o,extras:a}=t,l=new F(n,this.serializeUrl(s),r,o);e.next(l);const c=Mt(s,this.rootComponentType).snapshot;return Object(i.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:s,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a}),Ge(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(I.a)(t=>{const e=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(f.a)(t=>Object.assign(Object.assign({},t),{guards:Re(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(j.a)(n=>{const{targetSnapshot:s,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:l}}=n;return 0===l.length&&0===a.length?Object(i.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,s){return Object(o.a)(t).pipe(Object(j.a)(t=>function(t,e,n,s,r){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(i.a)(!0);const a=o.map(i=>{const o=Ne(i,e,r);let a;if(function(t){return t&&he(t.canDeactivate)}(o))a=at(o.canDeactivate(t,e,n,s));else{if(!he(o))throw new Error("Invalid CanDeactivate guard");a=at(o(t,e,n,s))}return a.pipe(A())});return Object(i.a)(a).pipe(fe())}(t.component,t.route,n,e,s)),A(t=>!0!==t,!0))}(l,s,r,t).pipe(Object(j.a)(n=>n&&"boolean"==typeof n?function(t,e,n,s){return Object(o.a)(e).pipe(Object(O.a)(e=>Object(o.a)([Le(e.route.parent,s),Fe(e.route,s),Me(t,e.path,n),Ve(t,e.route,n)]).pipe(Object(m.a)(),A(t=>!0!==t,!0))),A(t=>!0!==t,!0))}(s,a,t,e):Object(i.a)(n)),Object(f.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(I.a)(t=>{if(de(t.guardsResult)){const e=tt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(I.a)(t=>{const e=new z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(C.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new V(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Ge(t=>{if(t.guards.canActivateChecks.length)return Object(i.a)(t).pipe(Object(I.a)(t=>{const e=new B(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(b.a)(t=>{let n=!1;return Object(i.a)(t).pipe((s=this.paramsInheritanceStrategy,r=this.ngModule.injector,function(t){return t.pipe(Object(j.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(i.a)(t);let a=0;return Object(o.a)(n).pipe(Object(O.a)(t=>function(t,e,n,s){return function(t,e,n,s){const r=Object.keys(t);if(0===r.length)return Object(i.a)({});const a={};return Object(o.a)(r).pipe(Object(j.a)(r=>function(t,e,n,s){const r=Ne(t,e,s);return at(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,s).pipe(Object(I.a)(t=>{a[r]=t}))),Object(R.a)(1),Object(j.a)(()=>Object.keys(a).length===r.length?Object(i.a)(a):d.a))}(t._resolve,t,e,s).pipe(Object(f.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Ht(t,n).resolve),null)))}(t.route,e,s,r)),Object(I.a)(()=>a++),Object(R.a)(1),Object(j.a)(e=>a===n.length?Object(i.a)(t):d.a))}))}),Object(I.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new V(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(I.a)(t=>{const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Ge(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(f.a)(t=>{const e=function(t,e,n){const s=Gt(t,e._root,n?n._root:void 0);return new Vt(s,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(I.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(f.a)(t=>(new le(a,t.targetRouterState,t.currentRouterState,l).activate(r),t))),Object(I.a)({next(){n=!0},complete(){n=!0}}),Object(N.a)(()=>{if(!n&&!s){this.resetUrlToCurrentUrlTree();const n=new V(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(x.a)(n=>{if(s=!0,(r=n)&&r.ngNavigationCancelingError){const s=de(n.url);s||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const r=new V(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(r),s?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return 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 M(t.id,this.serializeUrl(t.extractedUrl),n);e.next(s);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var r;return d.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){ge(t),this.config=t.map(ye),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 c=null;switch(i){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=s||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,n,s,r){if(0===n.length)return Xt(e.root,e.root,e,s,r);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new te(!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 ot(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 te(n,e,s)}(n);if(i.toRoot())return Xt(e.root,new pt([],{}),e,s,r);const o=function(t,e,n){if(t.isAbsolute)return new ee(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new ee(t,t===e.root,0)}const s=Qt(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 ee(s,!1,r-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+s,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?se(o.segmentGroup,o.index,i.commands):ne(o.segmentGroup,o.index,i.commands);return Xt(o.segmentGroup,a,e,s,r)}(a,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const n=de(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{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 L(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,c,u;r?(l=r.resolve,c=r.reject,u=r.promise):u=new Promise((t,e)=>{l=t,c=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:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.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.Sb(r.N),r.Sb(bt),r.Sb(Ye),r.Sb(s.h),r.Sb(r.r),r.Sb(r.w),r.Sb(r.i),r.Sb(void 0))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),on=(()=>{class t{constructor(t,e,n,s,r){this.router=t,this.route=e,this.commands=[],this.onChanges=new p.a,null==n&&s.setAttribute(r.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}onClick(){const t={skipLocationChange:ln(this.skipLocationChange),replaceUrl:ln(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ln(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(rn),r.Jb(Ut),r.Tb("tabindex"),r.Jb(r.E),r.Jb(r.l))},t.\u0275dir=r.Eb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&r.Vb("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.xb]}),t})(),an=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new p.a,this.subscription=t.events.subscribe(t=>{t instanceof L&&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:ln(this.skipLocationChange),replaceUrl:ln(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:ln(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(rn),r.Jb(Ut),r.Jb(s.i))},t.\u0275dir=r.Eb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.Vb("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(r.Rb("href",e.href,r.lc),r.Ab("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[r.xb]}),t})();function ln(t){return""===t||!!t}let cn=(()=>{class t{constructor(t,e,n,s,r,i){this.router=t,this.element=e,this.renderer=n,this.cdr=s,this.link=r,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof L&&this.update()})}ngAfterContentInit(){Object(o.a)([this.links.changes,this.linksWithHrefs.changes,Object(i.a)(null)]).pipe(Object(D.a)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=Object(o.a)(e).pipe(Object(D.a)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(rn),r.Jb(r.l),r.Jb(r.E),r.Jb(r.h),r.Jb(on,8),r.Jb(an,8))},t.\u0275dir=r.Eb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){if(1&t&&(r.Cb(n,on,!0),r.Cb(n,an,!0)),2&t){let t;r.ic(t=r.Wb())&&(e.links=t),r.ic(t=r.Wb())&&(e.linksWithHrefs=t)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[r.xb]}),t})(),un=(()=>{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 hn(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.Jb(Ye),r.Jb(r.P),r.Jb(r.j),r.Tb("name"),r.Jb(r.h))},t.\u0275dir=r.Eb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class hn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Ut?this.route:t===Ye?this.childContexts:this.parent.get(t,e)}}class dn{}class pn{preload(t,e){return Object(i.a)(null)}}let fn=(()=>{class t{constructor(t,e,n,s,r){this.router=t,this.injector=s,this.preloadingStrategy=r,this.loader=new Ze(e,n,e=>t.triggerEvent(new q(e)),e=>t.triggerEvent(new W(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(C.a)(t=>t instanceof L),Object(O.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(o.a)(n).pipe(Object(D.a)(),Object(f.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(j.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(rn),r.Sb(r.w),r.Sb(r.i),r.Sb(r.r),r.Sb(dn))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})(),mn=(()=>{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 F?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof L&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Z&&(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 Z(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.Sb(rn),r.Sb(s.q),r.Sb(void 0))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();const gn=new r.q("ROUTER_CONFIGURATION"),bn=new r.q("ROUTER_FORROOT_GUARD"),_n=[s.h,{provide:bt,useClass:_t},{provide:rn,useFactory:function(t,e,n,r,i,o,a,l={},c,u){const h=new rn(null,t,e,n,r,i,o,rt(a));if(c&&(h.urlHandlingStrategy=c),u&&(h.routeReuseStrategy=u),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.u)();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return h},deps:[bt,Ye,s.h,r.r,r.w,r.i,Qe,gn,[class{},new r.A],[class{},new r.A]]},Ye,{provide:Ut,useFactory:function(t){return t.routerState.root},deps:[rn]},{provide:r.w,useClass:r.K},fn,pn,class{preload(t,e){return e().pipe(Object(x.a)(()=>Object(i.a)(null)))}},{provide:gn,useValue:{enableTracing:!1}}];function yn(){return new r.y("Router",rn)}let vn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[_n,xn(e),{provide:bn,useFactory:Cn,deps:[[rn,new r.A,new r.J]]},{provide:gn,useValue:n||{}},{provide:s.i,useFactory:Sn,deps:[s.p,[new r.p(s.a),new r.A],gn]},{provide:mn,useFactory:wn,deps:[rn,s.q,gn]},{provide:dn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:pn},{provide:r.y,multi:!0,useFactory:yn},[On,{provide:r.d,multi:!0,useFactory:En,deps:[On]},{provide:Tn,useFactory:kn,deps:[On]},{provide:r.b,multi:!0,useExisting:Tn}]]}}static forChild(e){return{ngModule:t,providers:[xn(e)]}}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)(r.Sb(bn,8),r.Sb(rn,8))}}),t})();function wn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new mn(t,e,n)}function Sn(t,e,n={}){return n.useHash?new s.e(t,e):new s.o(t,e)}function Cn(t){return"guarded"}function xn(t){return[{provide:r.a,multi:!0,useValue:t},{provide:Qe,multi:!0,useValue:t}]}let On=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new p.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(rn),s=this.injector.get(gn);return"disabled"===s.initialNavigation?(n.setUpLocationChangeListener(),t(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(n.hooks.afterPreactivation=()=>this.initNavigation?Object(i.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(gn),n=this.injector.get(fn),s=this.injector.get(mn),i=this.injector.get(rn),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.Sb(r.r))},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t})();function En(t){return t.appInitializer.bind(t)}function kn(t){return t.bootstrapListener.bind(t)}const Tn=new r.q("Router Initializer")},u47x:function(t,e,n){"use strict";n.d(e,"a",function(){return R}),n.d(e,"b",function(){return _}),n.d(e,"c",function(){return j}),n.d(e,"d",function(){return y}),n.d(e,"e",function(){return T}),n.d(e,"f",function(){return x}),n.d(e,"g",function(){return I}),n.d(e,"h",function(){return O});var s=n("ofXK"),r=n("fXoL"),i=n("nLfN"),o=n("XNiG"),a=n("quSY"),l=n("LRne"),c=n("FtGj"),u=n("vkgz"),h=n("Kj3r"),d=n("pLZG"),p=n("lJxs"),f=n("IzEk"),m=n("8LU1"),g=n("GU7r");class b{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new o.a,this._typeaheadSubscription=a.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new o.a,this.change=new o.a,t instanceof r.D&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(u.a)(t=>this._pressedLetters.push(t)),Object(h.a)(t),Object(d.a)(()=>this._pressedLetters.length>0),Object(p.a)(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let n=1;n!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.m:return void this.tabOut.next();case c.d:if(this._vertical&&n){this.setNextItemActive();break}return;case c.n:if(this._vertical&&n){this.setPreviousItemActive();break}return;case c.k:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.i:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.h:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case c.e:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Object(c.q)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.a&&e<=c.o||e>=c.p&&e<=c.j)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),s=e[n];this._activeItem=null==s?null:s,this._activeItemIndex=n}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let n=1;n<=e.length;n++){const s=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof r.D?this._items.toArray():this._items}}class _ extends b{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class y extends b{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}let v=(()=>{class t{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const e=function(t){try{return t.frameElement}catch(e){return null}}((n=t).ownerDocument&&n.ownerDocument.defaultView||window);var n;if(e){if(-1===S(e))return!1;if(!this.isVisible(e))return!1}let s=t.nodeName.toLowerCase(),r=S(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==s&&"object"!==s&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===s?!!t.hasAttribute("controls")&&-1!==r:"video"===s?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){let e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||w(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(i.a))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(i.a))},token:t,providedIn:"root"}),t})();function w(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;let e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function S(t){if(!w(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class C{constructor(t,e,n,s,r=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=s,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,r||this.attachAnchors()}get enabled(){return this._enabled}set enabled(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}destroy(){const t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement()))})}focusFirstTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement()))})}focusLastTabbableElementWhenReady(){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement()))})}_getRegionBoundary(t){let e=this._element.querySelectorAll(`[cdk-focus-region-${t}], [cdkFocusRegion${t}], [cdk-focus-${t}]`);for(let n=0;n=0;n--){let t=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(t)return t}return null}_createAnchor(){const t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}_toggleAnchorTabIndex(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}_executeOnStable(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(f.a)(1)).subscribe(t)}}let x=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new C(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(v),r.Sb(r.z),r.Sb(s.d))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(v),Object(r.Sb)(r.z),Object(r.Sb)(s.d))},token:t,providedIn:"root"}),t})();function O(t){return 0===t.buttons}"undefined"!=typeof Element&∈const E=new r.q("cdk-focus-monitor-default-options"),k=Object(i.f)({passive:!0,capture:!0});let T=(()=>{class t{constructor(t,e,n,s){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=O(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=A(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=A(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let s=e;s;s=s.parentElement)n.call(this,t,s)},this._document=n,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){const n=Object(m.d)(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(l.a)(null);const s=Object(i.c)(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;const a={checkChildren:e,subject:new o.a,rootNode:s};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const e=Object(m.d)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const s=Object(m.d)(t);s===this._getDocument().activeElement&&this._elementInfo.has(s)?this._originChanged(s,e,this._elementInfo.get(s)):(this._setOriginForCurrentEventQueue(e),"function"==typeof s.focus&&s.focus(n))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=A(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);n&&(n.checkChildren||e===A(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,k),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,k)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,k),t.addEventListener("mousedown",this._documentMousedownListener,k),t.addEventListener("touchstart",this._documentTouchstartListener,k),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,k),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,k),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,k),t.removeEventListener("mousedown",this._documentMousedownListener,k),t.removeEventListener("touchstart",this._documentTouchstartListener,k),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(r.z),r.Sb(i.a),r.Sb(s.d,8),r.Sb(E,8))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(r.z),Object(r.Sb)(i.a),Object(r.Sb)(s.d,8),Object(r.Sb)(E,8))},token:t,providedIn:"root"}),t})();function A(t){return t.composedPath?t.composedPath()[0]:t.target}let j=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new r.n}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Jb(r.l),r.Jb(T))},t.\u0275dir=r.Eb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),I=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");const e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}return t.\u0275fac=function(e){return new(e||t)(r.Sb(i.a),r.Sb(s.d))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(i.a),Object(r.Sb)(s.d))},token:t,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)(r.Sb(I))},imports:[[i.b,g.c]]}),t})()},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()}}},vxfF:function(t,e,n){"use strict";n.d(e,"a",function(){return m}),n.d(e,"b",function(){return b}),n.d(e,"c",function(){return f}),n.d(e,"d",function(){return _}),n.d(e,"e",function(){return g}),n("8LU1");var s=n("fXoL"),r=n("XNiG"),i=n("LRne"),o=n("HDdC"),a=n("xgIS");n("eNwd"),n("3N8a"),n("IjjT"),n("quSY"),n("7+OI"),n("/uUt");var l=n("3UWI"),c=n("pLZG"),u=n("1G5W");n("JX91"),n("Zy1z"),n("eIep"),n("7o/Q"),n("WMd4"),n("9ppp"),n("Ylt2");var h=n("nLfN"),d=n("ofXK"),p=n("cH1L");n("0EQZ");let f=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new r.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new o.a(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Object(l.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(i.a)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(c.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,s)=>{this._scrollableContainsElement(s,t)&&e.push(s)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(a.a)(t.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(s.z),s.Sb(h.a),s.Sb(d.d,8))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(s.z),Object(s.Sb)(h.a),Object(s.Sb)(d.d,8))},token:t,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e,n,s){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=s,this._destroyed=new r.a,this._elementScrolled=new o.a(t=>this.ngZone.runOutsideAngular(()=>Object(a.a)(this.elementRef.nativeElement,"scroll").pipe(Object(u.a)(this._destroyed)).subscribe(t)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(h.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(h.d)()?t.left=t.right:1==Object(h.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const e=this.elementRef.nativeElement;Object(h.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}measureScrollOffset(t){const e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;const n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Object(h.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Object(h.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(f),s.Jb(s.z),s.Jb(p.b,8))},t.\u0275dir=s.Eb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),g=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new r.a,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),n=t.documentElement,s=n.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-s.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(l.a)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(h.a),s.Sb(s.z),s.Sb(d.d,8))},t.\u0275prov=Object(s.Fb)({factory:function(){return new t(Object(s.Sb)(h.a),Object(s.Sb)(s.z),Object(s.Sb)(d.d,8))},token:t,providedIn:"root"}),t})(),b=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})(),_=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[p.a,h.b,b],p.a,b]}),t})()},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return f});var s=n("XNiG"),r=n("HDdC"),i=n("7o/Q"),o=n("quSY");function a(){return function(t){return t.lift(new l(t))}}class l{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 i.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 u extends r.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 o.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.a.EMPTY)),t}refCount(){return a()(this)}}const h=(()=>{const t=u.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 d 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 f(){return t=>{return a()((e=p,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,h);return s.source=t,s.subjectFactory=n,s})(t));var e}}},xDj2:function(t,e,n){"use strict";n.d(e,"a",function(){return s});class s{static getHashFragmentParams(t){let e=t||window.location.hash;if(e=decodeURIComponent(e),0!==e.indexOf("#"))return{};const n=e.indexOf("?");return e=e.substr(n>-1?n+1:1),s.parseQueryString(e)}static parseQueryString(t){const e={};let n,s,r,i,o,a,l;if(null===t)return e;n=t.split("&");for(let c=0;ce.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()}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var s=n("HDdC"),r=n("DH7j"),i=n("n6bG"),o=n("lJxs");function a(t,e,n,c){return Object(i.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(o.a)(t=>Object(r.a)(t)?c(...t):c(t))):new s.a(s=>{l(t,e,function(t){s.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},s,n)})}function l(t,e,n,s,r){let i;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const s=t;t.addEventListener(e,n,r),i=()=>s.removeEventListener(e,n,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const s=t;t.on(e,n),i=()=>s.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const s=t;t.addListener(e,n),i=()=>s.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let i=0,o=t.length;ie.schedule(i,0,{error:t,subscriber:n}):e=>e.error(t))}function i({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,n){"use strict";n.r(e);var s=n("fXoL"),r=n("R1ws"),i=n("ofXK"),o=n("bTqV"),a=n("NFeN"),l=n("FKr1"),c=n("8LU1"),u=n("XNiG"),h=n("1G5W"),d=n("JX91"),p=n("u47x"),f=(n("0EQZ"),n("FtGj"));n("3Pt+");let m=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[l.e],l.e]}),t})();const g=["*"],b=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],_=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"];class y{}const v=Object(l.t)(Object(l.s)(y));class w{}const S=Object(l.s)(w),C=new s.q("MatList"),x=new s.q("MatNavList");let O=(()=>{class t extends v{constructor(){super(...arguments),this._stateChanges=new u.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return E(e||t)},t.\u0275cmp=s.Db({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.yb([{provide:x,useExisting:t}]),s.wb,s.xb],ngContentSelectors:g,decls:1,vars:0,template:function(t,e){1&t&&(s.cc(),s.bc(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),t})();const E=s.Qb(O);let k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Eb({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Eb({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),A=(()=>{class t extends S{constructor(t,e,n,s){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new u.a,this._disabled=!1,this._isInteractiveList=!!(n||s&&"action-list"===s._getListType()),this._list=n||s;const r=this._getHostElement();"button"!==r.nodeName.toLowerCase()||r.hasAttribute("type")||r.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Object(h.a)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Object(c.b)(t)}ngAfterContentInit(){Object(l.w)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(s.h),s.Jb(x,8),s.Jb(C,8))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){if(1&t&&(s.Cb(n,k,!0),s.Cb(n,T,!0),s.Cb(n,l.f,!0)),2&t){let t;s.ic(t=s.Wb())&&(e._avatar=t.first),s.ic(t=s.Wb())&&(e._icon=t.first),s.ic(t=s.Wb())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.Bb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.wb],ngContentSelectors:_,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.cc(b),s.Ob(0,"div",0),s.Kb(1,"div",1),s.bc(2),s.Ob(3,"div",2),s.bc(4,1),s.Nb(),s.bc(5,2),s.Nb()),2&t&&(s.zb(1),s.dc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[l.m],encapsulation:2,changeDetection:0}),t})(),j=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[l.g,l.n,l.e,l.l,i.c],l.g,l.e,l.l,m]}),t})();var I=n("nLfN"),R=n("vxfF"),N=n("xgIS"),D=n("VRyK"),P=n("pLZG"),F=n("lJxs"),L=n("7o/Q");function V(t){return e=>e.lift(new M(t))}class M{constructor(t){this.value=t}call(t,e){return e.subscribe(new U(t,this.value))}}class U extends L.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}var H=n("/uUt"),z=n("IzEk"),B=n("Kj3r"),$=n("R0Ic"),q=n("cH1L");const W=["*"];function J(t,e){if(1&t){const t=s.Pb();s.Ob(0,"div",2),s.Vb("click",function(){return s.kc(t),s.Xb()._onBackdropClicked()}),s.Nb()}if(2&t){const t=s.Xb();s.Bb("mat-drawer-shown",t._isShowingBackdrop())}}function G(t,e){1&t&&(s.Ob(0,"mat-drawer-content"),s.bc(1,2),s.Nb())}const K=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Q=["mat-drawer","mat-drawer-content","*"];function Z(t,e){if(1&t){const t=s.Pb();s.Ob(0,"div",2),s.Vb("click",function(){return s.kc(t),s.Xb()._onBackdropClicked()}),s.Nb()}if(2&t){const t=s.Xb();s.Bb("mat-drawer-shown",t._isShowingBackdrop())}}function X(t,e){1&t&&(s.Ob(0,"mat-sidenav-content",3),s.bc(1,2),s.Nb())}const Y=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],tt=["mat-sidenav","mat-sidenav-content","*"],et=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",nt={transformDrawer:Object($.j)("transform",[Object($.g)("open, open-instant",Object($.h)({transform:"none",visibility:"visible"})),Object($.g)("void",Object($.h)({"box-shadow":"none",visibility:"hidden"})),Object($.i)("void => open-instant",Object($.e)("0ms")),Object($.i)("void <=> open, open-instant => void",Object($.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},st=new s.q("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),rt=new s.q("MAT_DRAWER_CONTAINER");let it=(()=>{class t extends R.a{constructor(t,e,n,s,r){super(n,s,r),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.h),s.Jb(Object(s.T)(()=>at)),s.Jb(s.l),s.Jb(R.c),s.Jb(s.z))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.pc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.wb],ngContentSelectors:W,decls:1,vars:0,template:function(t,e){1&t&&(s.cc(),s.bc(0))},encapsulation:2,changeDetection:0}),t})(),ot=(()=>{class t{constructor(t,e,n,r,i,o,a){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=n,this._platform=r,this._ngZone=i,this._doc=o,this._container=a,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new u.a,this._animationEnd=new u.a,this._animationState="void",this.openedChange=new s.n(!0),this._openedStream=this.openedChange.pipe(Object(P.a)(t=>t),Object(F.a)(()=>{})),this.openedStart=this._animationStarted.pipe(Object(P.a)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),V(void 0)),this._closedStream=this.openedChange.pipe(Object(P.a)(t=>!t),Object(F.a)(()=>{})),this.closedStart=this._animationStarted.pipe(Object(P.a)(t=>t.fromState!==t.toState&&"void"===t.toState),V(void 0)),this._destroyed=new u.a,this.onPositionChanged=new s.n,this._modeChanged=new u.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(N.a)(this._elementRef.nativeElement,"keydown").pipe(Object(P.a)(t=>t.keyCode===f.g&&!this.disableClose&&!Object(f.q)(t)),Object(h.a)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Object(H.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:n}=t;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Object(c.b)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Object(c.b)(t)}get opened(){return this._opened}set opened(t){this.toggle(Object(c.b)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,n="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=n):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Object(z.a)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(p.f),s.Jb(p.e),s.Jb(I.a),s.Jb(s.z),s.Jb(i.d,8),s.Jb(rt,8))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&s.qc("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(s.Ab("align",null),s.rc("@transform",e._animationState),s.Bb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:W,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.cc(),s.Ob(0,"div",0),s.bc(1),s.Nb())},encapsulation:2,data:{animation:[nt.transformDrawer]},changeDetection:0}),t})(),at=(()=>{class t{constructor(t,e,n,r,i,o=!1,a){this._dir=t,this._element=e,this._ngZone=n,this._changeDetectorRef=r,this._animationMode=a,this._drawers=new s.D,this.backdropClick=new s.n,this._destroyed=new u.a,this._doCheckSubject=new u.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new u.a,t&&t.change.pipe(Object(h.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),i.change().pipe(Object(h.a)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=o}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Object(c.b)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Object(c.b)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(d.a)(this._allDrawers),Object(h.a)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(d.a)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Object(B.a)(10),Object(h.a)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const n=this._left._getWidth();t+=n,e-=n}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const n=this._right._getWidth();e+=n,t-=n}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Object(P.a)(t=>t.fromState!==t.toState),Object(h.a)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(h.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Object(h.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Object(z.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Object(h.a)(Object(D.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(q.b,8),s.Jb(s.l),s.Jb(s.z),s.Jb(s.h),s.Jb(R.e),s.Jb(st),s.Jb(r.a,8))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){if(1&t&&(s.Cb(n,it,!0),s.Cb(n,ot,!0)),2&t){let t;s.ic(t=s.Wb())&&(e._content=t.first),s.ic(t=s.Wb())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&s.wc(it,!0),2&t){let t;s.ic(t=s.Wb())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.Bb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[s.yb([{provide:rt,useExisting:t}])],ngContentSelectors:Q,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(s.cc(K),s.sc(0,J,1,2,"div",0),s.bc(1),s.bc(2,1),s.sc(3,G,2,0,"mat-drawer-content",1)),2&t&&(s.dc("ngIf",e.hasBackdrop),s.zb(3),s.dc("ngIf",!e._content))},directives:[i.l,it],styles:[et],encapsulation:2,changeDetection:0}),t})(),lt=(()=>{class t extends it{constructor(t,e,n,s,r){super(t,e,n,s,r)}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.h),s.Jb(Object(s.T)(()=>ht)),s.Jb(s.l),s.Jb(R.c),s.Jb(s.z))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&s.pc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[s.wb],ngContentSelectors:W,decls:1,vars:0,template:function(t,e){1&t&&(s.cc(),s.bc(0))},encapsulation:2,changeDetection:0}),t})(),ct=(()=>{class t extends ot{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Object(c.b)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Object(c.e)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Object(c.e)(t)}}return t.\u0275fac=function(e){return ut(e||t)},t.\u0275cmp=s.Db({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(s.Ab("align",null),s.pc("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),s.Bb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[s.wb],ngContentSelectors:W,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(s.cc(),s.Ob(0,"div",0),s.bc(1),s.Nb())},encapsulation:2,data:{animation:[nt.transformDrawer]},changeDetection:0}),t})();const ut=s.Qb(ct);let ht=(()=>{class t extends at{}return t.\u0275fac=function(e){return dt(e||t)},t.\u0275cmp=s.Db({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){if(1&t&&(s.Cb(n,lt,!0),s.Cb(n,ct,!0)),2&t){let t;s.ic(t=s.Wb())&&(e._content=t.first),s.ic(t=s.Wb())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&s.Bb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[s.yb([{provide:rt,useExisting:t}]),s.wb],ngContentSelectors:tt,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(s.cc(Y),s.sc(0,Z,1,2,"div",0),s.bc(1),s.bc(2,1),s.sc(3,X,2,0,"mat-sidenav-content",1)),2&t&&(s.dc("ngIf",e.hasBackdrop),s.zb(3),s.dc("ngIf",!e._content))},directives:[i.l,lt,R.a],styles:[et],encapsulation:2,changeDetection:0}),t})();const dt=s.Qb(ht);let pt=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[i.c,l.e,I.b,R.b],R.b,l.e]}),t})();const ft=["*",[["mat-toolbar-row"]]],mt=["*","mat-toolbar-row"];class gt{constructor(t){this._elementRef=t}}const bt=Object(l.r)(gt);let _t=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Eb({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),yt=(()=>{class t extends bt{constructor(t,e,n){super(t),this._platform=e,this._document=n}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(s.l),s.Jb(I.a),s.Jb(i.d))},t.\u0275cmp=s.Db({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){if(1&t&&s.Cb(n,_t,!0),2&t){let t;s.ic(t=s.Wb())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&s.Bb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[s.wb],ngContentSelectors:mt,decls:2,vars:0,template:function(t,e){1&t&&(s.cc(ft),s.bc(0),s.bc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),vt=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[l.e],l.e]}),t})();var wt=n("tk/3"),St=n("OtPg"),Ct=n("9r3w"),xt=n("ZDaG"),Ot=n("OCPU"),Et=n("P3kg"),kt=n("5+tZ"),Tt=n("RJIb");class At{constructor(t){this.whitelistedUrls=t&&t.whitelistedUrls||[]}}let jt=(()=>{class t{constructor(t,e=new At){this.tokens=t,this.options=e}intercept(t,e){return this.isWhitelistedUrl(t)?this.tokens.getValidAccessToken().pipe(Object(kt.a)(n=>e.handle(t.clone({setHeaders:{Authorization:"Bearer "+n}})))):e.handle(t)}isWhitelistedUrl(t){const e=t.url;return this.options.whitelistedUrls.findIndex(t=>"string"==typeof t?t===e:t instanceof RegExp&&t.test(e))>-1}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(Tt.a),s.Sb(At))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();var It=n("CYhE"),Rt=n("s2Hm"),Nt=n("iVJa"),Dt=n("og18"),Pt=n("3/4O"),Ft=n("2Vo4"),Lt=n("itXk"),Vt=n("Zy1z");function Mt(t){return{principal:(t=t||{}).user_name||t.username||t.email||null,authorities:t.authorities||[],details:t}}class Ut{constructor(t){this.mapper=t&&t.mapper||Mt}}var Ht=n("JkW8"),zt=n("d8a0");let Bt=(()=>{class t extends Et.b{constructor(t,e){super(),this.tokensService=t,this.options=e,this.subject=new Ft.a(null),this.subject$=this.subject.asObservable(),this.principal$=this.subject$.pipe(Object(F.a)(t=>t&&t.principal||null)),this.authorities$=this.subject$.pipe(Object(F.a)(t=>t&&t.authorities||[])),this.details$=this.subject$.pipe(Object(F.a)(t=>t&&t.details||null)),this.displayName$=this.details$.pipe(Object(F.a)(t=>t&&t.displayName||null)),this.isAuthorized$=this.authorities$.pipe(Object(F.a)(t=>t.length>0)),this.changes$=this.subject$.pipe(Object(Vt.a)(),Object(P.a)(t=>t[0]!==t[1]&&(t[0]&&t[0].principal||null)!==(t[1]&&t[1].principal||null)),Object(F.a)(t=>t[1])),this.sub=this.tokensService.accessToken$.subscribe(t=>{this.decode(t)})}ngOnDestroy(){this.sub.unsubscribe(),this.subject.complete()}setSubject(t){this.subject.next(t)}getSubject(){return this.subject.getValue()}getAuthorities(){const t=this.subject.getValue();return t&&t.authorities||[]}updateDetails(t){const e=this.getSubject();e&&this.subject.next(Object.assign(Object.assign({},e),{details:t}))}isAuthenticated(){return Object(Lt.b)([this.tokensService.accessToken$,this.tokensService.refreshToken$]).pipe(Object(z.a)(1),Object(F.a)(([t,e])=>!(!t&&!e)&&(t?this.tokensService.getAuthenticationFlowType(t)===zt.b.CLIENT_CREDENTIALS||!Ht.a.isTokenExpired(t)||e&&!Ht.a.isTokenExpired(e):!Ht.a.isTokenExpired(e))))}clear(){this.subject.next(null)}decode(t){const e=Ht.a.decodeToken(t);this.setSubject(this.options.mapper(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(Tt.a),s.Sb(Ut))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();var $t=n("RWdr"),qt=n("Pv2G"),Wt=n("ngFo");let Jt=(()=>{class t{constructor(t){this.tokens=t}authenticate(t=new wt.e,e=new wt.d){return this.tokens.authenticateWithClientCredentials(t,e)}clear(){this.tokens.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.Sb(Tt.a))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t})();function Gt(t){return e=>new qt.a(e,new Nt.a(t))}function Kt(t){return e=>new Wt.a(e,new Dt.a(t))}function Qt(t){return e=>new Bt(e,new Ut(t))}function Zt(t){return e=>new jt(e,new At(t))}let Xt=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:Tt.a,useFactory:(n=e.tokens,s=e.passwordFlow,r=e.authorizationCodeFlow,i=e.clientCredentialsFlow,t=>new Tt.a(t,new It.a(n),new Rt.a(s),new Dt.a(r),new Pt.a(i))),deps:[wt.b]},{provide:$t.a,useFactory:t=>new $t.a(t),deps:[Tt.a]},{provide:qt.a,useFactory:Gt(e.implicitFlow),deps:[Tt.a]},{provide:Wt.a,useFactory:Kt(e.authorizationCodeFlow),deps:[Tt.a]},{provide:Jt,useFactory:t=>new Jt(t),deps:[Tt.a]},{provide:Et.b,useFactory:Qt(e.subject),deps:[Tt.a]},{provide:wt.a,useFactory:Zt(e.interceptor),deps:[Tt.a],multi:!0}]};var n,s,r,i}}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)}}),t})();var Yt=n("tyNb");const te=[{path:"home",loadChildren:()=>Promise.all([n.e(0),n.e(8)]).then(n.bind(null,"ct+p")).then(t=>t.HomeModule),data:{title:"ngx-security",pageTitle:"Home",pageIcon:"home"}},{path:"core",loadChildren:()=>Promise.all([n.e(0),n.e(7)]).then(n.bind(null,"pKmL")).then(t=>t.CoreModule),data:{title:"ngx-security/core",pageTitle:"Core",pageIcon:"security"}},{path:"roles",loadChildren:()=>Promise.all([n.e(0),n.e(10)]).then(n.bind(null,"ESCD")).then(t=>t.RolesModule),data:{title:"ngx-security/roles",pageTitle:"Roles",pageIcon:"security"}},{path:"permissions",loadChildren:()=>Promise.all([n.e(0),n.e(9)]).then(n.bind(null,"jl54")).then(t=>t.PermissionsModule),data:{title:"ngx-security/permissions",pageTitle:"Permissions",pageIcon:"security"}},{path:"auth",loadChildren:()=>Promise.all([n.e(0),n.e(6)]).then(n.bind(null,"Yj9t")).then(t=>t.AuthModule),data:{title:"ngx-security/auth",pageTitle:"Auth",pageIcon:"security"}},{path:"",redirectTo:"/home",pathMatch:"full"}];let ee=(()=>{class t{}return t.\u0275mod=s.Hb({type:t}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},imports:[[Yt.f.forRoot(te)],Yt.f]}),t})();const ne=n("kiQV").version;let se=(()=>{class t{constructor(t,e){this.version=ne,this.pageInfo$=t.events.pipe(Object(P.a)(t=>t instanceof Yt.b),Object(F.a)(()=>e),Object(F.a)(t=>t.firstChild||t),Object(P.a)(t=>"primary"===t.outlet),Object(kt.a)(t=>t.data),Object(F.a)(t=>t||{}))}}return t.\u0275fac=function(e){return new(e||t)(s.Jb(Yt.c),s.Jb(Yt.a))},t.\u0275cmp=s.Db({type:t,selectors:[["app-root"]],decls:50,vars:10,consts:[["color","primary"],["mat-icon-button","",3,"click"],[1,"app-name"],["mode","side"],["nav",""],["routerLink","home","routerLinkActive","active",2,"border-left-color","#f5f5f5"],["matListIcon",""],["matLine",""],["routerLink","core","routerLinkActive","active",2,"border-left-color","#75ff03"],["routerLink","roles","routerLinkActive","active",2,"border-left-color","#feff00"],["routerLink","permissions","routerLinkActive","active",2,"border-left-color","#feff00"],["routerLink","auth","routerLinkActive","active",2,"border-left-color","#ff9100"],[2,"margin-left","8px"],[1,"page-container"]],template:function(t,e){if(1&t){const t=s.Pb();s.Ob(0,"mat-toolbar",0),s.Ob(1,"mat-toolbar-row"),s.Ob(2,"button",1),s.Vb("click",function(){return s.kc(t),s.jc(12).toggle()}),s.Ob(3,"mat-icon"),s.tc(4,"menu"),s.Nb(),s.Nb(),s.Ob(5,"h1",2),s.tc(6),s.Yb(7,"async"),s.Nb(),s.Ob(8,"span"),s.tc(9),s.Nb(),s.Nb(),s.Nb(),s.Ob(10,"mat-sidenav-container"),s.Ob(11,"mat-sidenav",3,4),s.Ob(13,"mat-nav-list"),s.Ob(14,"mat-list-item",5),s.Ob(15,"mat-icon",6),s.tc(16,"home"),s.Nb(),s.Ob(17,"h1",7),s.tc(18,"Home"),s.Nb(),s.Nb(),s.Ob(19,"mat-list-item",8),s.Ob(20,"mat-icon",6),s.tc(21,"security"),s.Nb(),s.Ob(22,"h1",7),s.tc(23,"Core"),s.Nb(),s.Nb(),s.Ob(24,"mat-list-item",9),s.Ob(25,"mat-icon",6),s.tc(26,"security"),s.Nb(),s.Ob(27,"h1",7),s.tc(28,"Roles"),s.Nb(),s.Nb(),s.Ob(29,"mat-list-item",10),s.Ob(30,"mat-icon",6),s.tc(31,"security"),s.Nb(),s.Ob(32,"h1",7),s.tc(33,"Permissions"),s.Nb(),s.Nb(),s.Ob(34,"mat-list-item",11),s.Ob(35,"mat-icon",6),s.tc(36,"security"),s.Nb(),s.Ob(37,"h1",7),s.tc(38,"Auth"),s.Nb(),s.Nb(),s.Nb(),s.Nb(),s.Ob(39,"mat-sidenav-content"),s.Ob(40,"mat-toolbar"),s.Ob(41,"mat-toolbar-row"),s.Ob(42,"mat-icon"),s.tc(43),s.Yb(44,"async"),s.Nb(),s.Ob(45,"h1",12),s.tc(46),s.Yb(47,"async"),s.Nb(),s.Nb(),s.Nb(),s.Ob(48,"div",13),s.Kb(49,"router-outlet"),s.Nb(),s.Nb(),s.Nb()}if(2&t){let t=null,n=null,r=null;s.zb(6),s.uc(null==(t=s.Zb(7,4,e.pageInfo$))?null:t.title),s.zb(3),s.uc(e.version),s.zb(34),s.uc(null==(n=s.Zb(44,6,e.pageInfo$))?null:n.pageIcon),s.zb(3),s.uc(null==(r=s.Zb(47,8,e.pageInfo$))?null:r.pageTitle)}},directives:[yt,_t,o.a,a.a,ht,ct,O,A,Yt.d,Yt.e,T,l.f,lt,Yt.g],pipes:[i.b],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:stretch;height:100%}[_nghost-%COMP%] h1.app-name[_ngcontent-%COMP%]{flex:1;margin-left:8px}[_nghost-%COMP%] mat-sidenav-container[_ngcontent-%COMP%]{flex:1 1 100%}[_nghost-%COMP%] .page-container[_ngcontent-%COMP%]{padding:1em;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] mat-list-item[_ngcontent-%COMP%]{border-left:3px solid}[_nghost-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(.active){border-left-color:transparent!important}"]}),t})();var re=n("hCJx"),ie=n("8Cu2");let oe=(()=>{class t{}return t.\u0275mod=s.Hb({type:t,bootstrap:[se]}),t.\u0275inj=s.Gb({factory:function(e){return new(e||t)},providers:[{provide:i.i,useClass:i.e},{provide:St.a,useValue:{coreLibraryLoader:()=>n.e(11).then(n.t.bind(null,"ECCn",7)),languages:{typescript:()=>n.e(13).then(n.t.bind(null,"r0Rl",7)),scss:()=>n.e(12).then(n.t.bind(null,"YROV",7)),xml:()=>n.e(14).then(n.t.bind(null,"jctj",7))}}}],imports:[[r.b,ee,wt.c,vt,pt,j,o.b,a.b,St.c,Ct.a.forRoot(),xt.a.forRoot({subjectRoles:{provide:re.b,useClass:re.c}}),Ot.a.forRoot({subjectPermissions:{provide:ie.b,useClass:ie.c}}),Xt.forRoot({passwordFlow:{tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret",useHttpBasicAuth:!0},implicitFlow:{loginUrl:"loginUrl",clientId:"clientId"},authorizationCodeFlow:{loginUrl:"loginUrl",tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret",useHttpBasicAuth:!0},clientCredentialsFlow:{tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret"},tokens:{mapper:t=>({accessToken:(t=t||{}).access_token||t.accessToken||null,refreshToken:t.refresh_token||t.refreshToken||null})},subject:{mapper:t=>({principal:(t=t||{}).user_name||t.username||t.email||null,authorities:t.authorities||[],details:t})},interceptor:{whitelistedUrls:[new RegExp(".*/my-api.*")]}})]]}),t})();var ae=n("jhN1");Object(s.S)(),ae.c().bootstrapModule(oe).catch(t=>console.log(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 t instanceof r.a?t.subscribe(e):Object(i.a)(t)(e)}}},[[0,1]]]); \ No newline at end of file diff --git a/docs/main-es5.b7f213c18e5176afc50b.js b/docs/main-es5.8be5508f7959de712f42.js similarity index 99% rename from docs/main-es5.b7f213c18e5176afc50b.js rename to docs/main-es5.8be5508f7959de712f42.js index 2e03459..4c4e470 100644 --- a/docs/main-es5.b7f213c18e5176afc50b.js +++ b/docs/main-es5.8be5508f7959de712f42.js @@ -1 +1 @@ -!function(){function t(n){var r="function"==typeof Map?new Map:void 0;return(t=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,i)}function i(){return e(t,arguments,v(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),c(i,t)})(n)}function e(t,n,r){return(e=d()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];p(this,t),this._multiple=n,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new a.a,r&&r.length&&(n?r.forEach(function(t){return e._markSelected(t)}):this._markSelected(r[0]),this._selectedToEmit.length=0)}return y(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),n}(function(t){u(n,t);var e=l(n);function n(t,r){return p(this,n),e.call(this)}return y(n,[{key:"schedule",value:function(t){return this}}]),n}(n("quSY").a))},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",function(){return b}),n.d(e,"b",function(){return pt}),n.d(e,"c",function(){return Ct}),n.d(e,"d",function(){return Et}),n.d(e,"e",function(){return At}),n.d(e,"f",function(){return f}),n.d(e,"g",function(){return M}),n.d(e,"h",function(){return H}),n.d(e,"i",function(){return z}),n.d(e,"j",function(){return _t}),n.d(e,"k",function(){return jt}),n.d(e,"l",function(){return kt});var i=n("fXoL"),a=n("ofXK"),s=n("cp0P"),c=n("Cfvw"),h=n("lJxs"),f=new i.q("NgValueAccessor"),d={provide:f,useExisting:Object(i.T)(function(){return v}),multi:!0},v=function(){var t=function(){function t(e,n){p(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return y(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.E),i.Jb(i.l))},t.\u0275dir=i.Eb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&i.Vb("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[i.yb([d])]}),t}(),m={provide:f,useExisting:Object(i.T)(function(){return b}),multi:!0},g=new i.q("CompositionEventMode"),b=function(){var t=function(){function t(e,n,r){var i;p(this,t),this._renderer=e,this._elementRef=n,this._compositionMode=r,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Object(a.u)()?Object(a.u)().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return y(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.E),i.Jb(i.l),i.Jb(g,8))},t.\u0275dir=i.Eb({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&&i.Vb("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:[i.yb([m])]}),t}();function _(t){return null==t||0===t.length}function k(t){return null!=t&&"number"==typeof t.length}var w=new i.q("NgValidators"),S=new i.q("NgAsyncValidators"),C=/^(?=.{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])?)*$/,O=function(){function t(){p(this,t)}return y(t,null,[{key:"min",value:function(t){return function(e){if(_(e.value)||_(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return _(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return _(t.value)||C.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){return _(e.value)||!k(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(_(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(E);return 0==e.length?null:function(t){return T(A(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(E);return 0==e.length?null:function(t){var n=A(t,e).map(x);return Object(s.a)(n).pipe(Object(h.a)(T))}}}]),t}();function E(t){return null!=t}function x(t){var e=Object(i.rb)(t)?Object(c.a)(t):t;return Object(i.qb)(e),e}function T(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function A(t,e){return e.map(function(e){return e(t)})}function j(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function I(t){return null!=t?O.compose(j(t)):null}function R(t){return null!=t?O.composeAsync(j(t)):null}function N(t,e){return null===t?[e]:Array.isArray(t)?[].concat(r(t),[e]):[t,e]}function D(t){return t._rawValidators}function P(t){return t._rawAsyncValidators}var F=function(){var t=function(){function t(){p(this,t),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return y(t,[{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=I(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=R(this._rawAsyncValidators)}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Eb({type:t}),t}(),L=function(){var t=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(F);return t.\u0275fac=function(e){return V(e||t)},t.\u0275dir=i.Eb({type:t,features:[i.wb]}),t}(),V=i.Qb(L),M=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return n}(F),U=function(){function t(e){p(this,t),this._cd=e}return y(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),H=function(){var t=function(t){u(n,t);var e=l(n);function n(t){return p(this,n),e.call(this,t)}return n}(U);return t.\u0275fac=function(e){return new(e||t)(i.Jb(M,2))},t.\u0275dir=i.Eb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Bb("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:[i.wb]}),t}(),z=function(){var t=function(t){u(n,t);var e=l(n);function n(t){return p(this,n),e.call(this,t)}return n}(U);return t.\u0275fac=function(e){return new(e||t)(i.Jb(L,2))},t.\u0275dir=i.Eb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Bb("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:[i.wb]}),t}(),B={provide:f,useExisting:Object(i.T)(function(){return q}),multi:!0},q=function(){var t=function(){function t(e,n){p(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return y(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.E),i.Jb(i.l))},t.\u0275dir=i.Eb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.Vb("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[i.yb([B])]}),t}(),W={provide:f,useExisting:Object(i.T)(function(){return G}),multi:!0},J=function(){var t=function(){function t(){p(this,t),this._accessors=[]}return y(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t}(),G=function(){var t=function(){function t(e,n,r,i){p(this,t),this._renderer=e,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return y(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(M),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.E),i.Jb(i.l),i.Jb(J),i.Jb(i.r))},t.\u0275dir=i.Eb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&i.Vb("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.yb([W])]}),t}(),K={provide:f,useExisting:Object(i.T)(function(){return Q}),multi:!0},Q=function(){var t=function(){function t(e,n){p(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return y(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.E),i.Jb(i.l))},t.\u0275dir=i.Eb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.Vb("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[i.yb([K])]}),t}(),Z={provide:f,useExisting:Object(i.T)(function(){return X}),multi:!0},X=function(){var t=function(){function t(e,n){p(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Object.is}return y(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o0&&t.setValidators(r.filter(function(t){return t!==e.validator}))}if(null!==e.asyncValidator){var i=P(t);Array.isArray(i)&&i.length>0&&t.setAsyncValidators(i.filter(function(t){return t!==e.asyncValidator}))}}if(n){var o=function(){};et(e._rawValidators,o),et(e._rawAsyncValidators,o)}}function it(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ot(t,e){nt(t,e,!1)}var at=[v,Q,q,X,Y,G];function st(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ut(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function ct(t){return(dt(t)?t.validators:t)||null}function lt(t){return Array.isArray(t)?I(t):t||null}function ht(t,e){return(dt(e)?e.asyncValidators:t)||null}function ft(t){return Array.isArray(t)?R(t):t||null}function dt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var vt=function(){function t(e,n){p(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=lt(this._rawValidators),this._composedAsyncValidatorFn=ft(this._rawAsyncValidators)}return y(t,[{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=lt(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ft(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(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(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(function(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(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=x(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(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;var r=t;return e.forEach(function(t){r=r instanceof mt?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof yt&&r.at(t)||null}),r}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new i.n,this.statusChanges=new i.n}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){dt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),pt=function(t){u(n,t);var e=l(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return p(this,n),(t=e.call(this,ct(i),ht(o,i)))._onChange=[],t._applyFormState(r),t._setUpdateStrategy(i),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),t}return y(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){ut(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){ut(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(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}}]),n}(vt),mt=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,ct(r),ht(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return y(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){e._throwIfControlMissing(r),e.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach(function(r){e.controls[r]&&e.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof pt?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(vt),yt=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,ct(r),ht(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return y(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,r){e._throwIfControlMissing(r),e.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach(function(t,r){e.at(r)&&e.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof pt?t.value:t.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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)}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=o(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(vt),gt={provide:L,useExisting:Object(i.T)(function(){return _t})},bt=Promise.resolve(null),_t=function(){var t=function(t){u(n,t);var e=l(n);function n(t,r){var o;return p(this,n),(o=e.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new i.n,o.form=new mt({},I(t),R(r)),o}return y(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;bt.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),tt(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;bt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),ut(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;bt.then(function(){var n=e._findContainer(t.path),r=new mt({});ot(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;bt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;bt.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,st(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(L);return t.\u0275fac=function(e){return new(e||t)(i.Jb(w,10),i.Jb(S,10))},t.\u0275dir=i.Eb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.Vb("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.yb([gt]),i.wb]}),t}(),kt=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Eb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),wt=new i.q("NgModelWithFormControlWarning"),St={provide:M,useExisting:Object(i.T)(function(){return Ct})},Ct=function(){var t=function(t){u(n,t);var e=l(n);function n(t,r,o,a){var s;return p(this,n),(s=e.call(this))._ngModelWarningConfig=a,s.update=new i.n,s._ngModelWarningSent=!1,s._setValidators(t),s._setAsyncValidators(r),s.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);var n=void 0,r=void 0,i=void 0;return e.forEach(function(t){var e;t.constructor===b?n=t:(e=t,at.some(function(t){return e.constructor===t})?r=t:i=t)}),i||r||n||null}(0,o),s}return y(n,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(tt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}},{key:"isDisabled",set:function(t){}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}}]),n}(M);return t.\u0275fac=function(e){return new(e||t)(i.Jb(w,10),i.Jb(S,10),i.Jb(f,10),i.Jb(wt,8))},t.\u0275dir=i.Eb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.yb([St]),i.wb,i.xb]}),t._ngModelWarningSentOnce=!1,t}(),Ot={provide:L,useExisting:Object(i.T)(function(){return Et})},Et=function(){var t=function(t){u(n,t);var e=l(n);function n(t,r){var o;return p(this,n),(o=e.call(this)).validators=t,o.asyncValidators=r,o.submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new i.n,o._setValidators(t),o._setAsyncValidators(r),o}return y(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return tt(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){ut(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);ot(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);ot(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,st(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){var n=function(){};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),rt(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}(e.control||null,e),n&&tt(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){nt(this.form,this,!1),this._oldForm&&rt(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(L);return t.\u0275fac=function(e){return new(e||t)(i.Jb(w,10),i.Jb(S,10))},t.\u0275dir=i.Eb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.Vb("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.yb([Ot]),i.wb,i.xb]}),t}(),xt=function(){var t=function t(){p(this,t)};return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)}}),t}(),Tt=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),r=null,i=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new mt(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(t,e,n){return new pt(t,e,n)}},{key:"array",value:function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new yt(i,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n}},{key:"_createControl",value:function(t){return t instanceof pt||t instanceof mt||t instanceof yt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t}(),At=function(){var t=function t(){p(this,t)};return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)},providers:[J],imports:[xt]}),t}(),jt=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:wt,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)},providers:[Tt,J],imports:[xt]}),t}()},"3UWI":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("D0XW"),i=n("zx2A"),o=function(){function t(e){p(this,t),this.durationSelector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.durationSelector))}}]),t}(),a=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).durationSelector=r,i.hasValue=!1,i}return y(n,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(r){return this.destination.error(r)}var n=Object(i.c)(e,new i.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(i.b),s=n("PqYM");function c(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a;return e=function(){return Object(s.a)(t,n)},function(t){return t.lift(new o(e))}}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){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 a});var r=n("lJxs"),i=n("Cfvw"),o=n("zx2A");function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(o){return o.pipe(a(function(n,o){return Object(i.a)(t(n,o)).pipe(Object(r.a)(function(t,r){return e(n,t,o,r)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new s(t,n))})}var s=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;p(this,t),this.project=e,this.concurrent=n}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.project,this.concurrent))}}]),t}(),c=function(t){u(n,t);var e=l(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return p(this,n),(i=e.call(this,t)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return y(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.b)},"5mAv":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){p(this,t)}return y(t,null,[{key:"decode",value:function(t){var e="";if((t=String(t).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0;r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?e+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return e}},{key:"decodeUnicode",value:function(e){return decodeURIComponent(Array.prototype.map.call(t.decode(e),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}},{key:"urlDecode",value:function(e){var n=e.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("Illegal base64url string!")}return t.decodeUnicode(n)}},{key:"urlEncode",value:function(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}}]),t}()},"7+OI":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("HDdC");function i(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var r=n("n6bG"),o=n("gRHU"),a=n("quSY"),s=n("2QA8"),c=n("2fFW"),h=n("NJ4a"),d=function(t){u(n,t);var e=l(n);function n(t,r,i){var a;switch(p(this,n),(a=e.call(this)).syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!t){a.destination=o.a;break}if("object"==typeof t){t instanceof n?(a.syncErrorThrowable=t.syncErrorThrowable,a.destination=t,t.add(f(a))):(a.syncErrorThrowable=!0,a.destination=new m(f(a),t));break}default:a.syncErrorThrowable=!0,a.destination=new m(f(a),t,r,i)}return a}return y(n,[{key:s.a,value:function(){return this}},{key:"next",value:function(t){this.isStopped||this._next(t)}},{key:"error",value:function(t){this.isStopped||(this.isStopped=!0,this._error(t))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,i(v(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(t){this.destination.next(t)}},{key:"_error",value:function(t){this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}],[{key:"create",value:function(t,e,r){var i=new n(t,e,r);return i.syncErrorThrowable=!1,i}}]),n}(a.a),m=function(t){u(n,t);var e=l(n);function n(t,i,a,s){var u,c;p(this,n),(u=e.call(this))._parentSubscriber=t;var l=f(u);return Object(r.a)(i)?c=i:i&&(c=i.next,a=i.error,s=i.complete,i!==o.a&&(l=Object.create(i),Object(r.a)(l.unsubscribe)&&u.add(l.unsubscribe.bind(l)),l.unsubscribe=u.unsubscribe.bind(f(u)))),u._context=l,u._next=c,u._error=a,u._complete=s,u}return y(n,[{key:"next",value:function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}},{key:"error",value:function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.a.useDeprecatedSynchronousErrorHandling;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(h.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(h.a)(t)}}}},{key:"complete",value:function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),c.a.useDeprecatedSynchronousErrorHandling)throw n;Object(h.a)(n)}}},{key:"__tryOrSetError",value:function(t,e,n){if(!c.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return c.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(h.a)(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}]),n}(d)},"8Cu2":function(t,e,n){"use strict";n.d(e,"b",function(){return h}),n.d(e,"a",function(){return f}),n.d(e,"c",function(){return d});var i=n("2Vo4"),o=n("lJxs"),a=n("ElX6"),s=n("fXoL"),c=n("P3kg"),h=function(){function t(){p(this,t),this.trie=Object(a.newTrie)()}return y(t,[{key:"apply",value:function(){var t;this.trie.reset(),(t=this.trie).add.apply(t,r(this.getPermissions()))}},{key:"isPermittedAsync",value:function(t){var e=this;return this.permissions$.pipe(Object(o.a)(function(){return e._isPermitted(t)}))}},{key:"isPermitted",value:function(t){return this._isPermitted(t)}},{key:"_isPermitted",value:function(t){return this.trie.check(t)}}]),t}(),f=function(){var t=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this)).subject=t,r.permissions$=r.subject.authorities$,r}return y(n,[{key:"getPermissions",value:function(){return this.subject.getAuthorities()}}]),n}(h);return t.\u0275fac=function(e){return new(e||t)(s.Sb(c.b))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t}(),d=function(){var t=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.call(this)).permissions=new i.a([]),t.permissions$=t.permissions.asObservable(),t.apply(),t}return y(n,[{key:"ngOnDestroy",value:function(){this.permissions.complete()}},{key:"getPermissions",value:function(){return this.permissions.getValue()}},{key:"update",value:function(t){this.permissions.next(t)}}]),n}(h);return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t}()},"8LU1":function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return c}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return l});var r=n("fXoL");function i(t){return null!=t&&""+t!="false"}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function s(t){return Array.isArray(t)?t:[t]}function u(t){return null==t?"":"string"==typeof t?t:t+"px"}function c(t){return t instanceof r.l?t.nativeElement:t}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=t){var r,i=Array.isArray(t)?t:(""+t).split(e),a=o(i);try{for(a.s();!(r=a.n()).done;){var s=r.value,u=(""+s).trim();u&&n.push(u)}}catch(c){a.e(c)}finally{a.f()}}return n}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},"9r3w":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("pfHM"),i=n("fXoL"),o=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.subject||{provide:r.d,useClass:r.a}]}}},{key:"forChild",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)},imports:[[]]}),t}()},BFxc:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");function a(t){return function(e){return 0===t?Object(o.b)():e.lift(new s(t))}}var s=function(){function t(e){if(p(this,t),this.total=e,this.total<0)throw new i.a}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.total))}}]),t}(),c=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).total=r,i.ring=new Array,i.count=0,i}return y(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i1?(u=u||e.slice(n+1),o[s[r]]=i(o[s[r]],u),n=e.length):(a=o,o=o[s[r]])}return u||a&&a.hasOwnProperty("*")||(o["*"]={}),t}function o(t,e){var n,r;for(r=t,(e.length<1||"*"!==e[e.length-1])&&e.push("*"),n=0;n0){var o={};return i.forEach(function(n){o[n]=u(t[n],e)}),i.filter(function(t){return o[t].length>0})}return i}if("$"===n){i=[],Object.keys(t).forEach(function(n){i=i.concat(a(t[n],[].concat(e)))});for(var s=r(i),c=s.length-1;c>=0;c--)"*"===s[c]&&s.splice(c,1);return s}return i=[],t.hasOwnProperty(n)&&(i=i.concat(a(t[n],e))),t.hasOwnProperty("*")&&(i=i.concat(a(t["*"],e))),i}function s(t){var e,n,i=[],o=t.split(":");for(e=0;e1&&void 0!==arguments[1]?arguments[1]:0;return function(t){u(r,t);var n=l(r);function r(){var t;p(this,r);for(var i=arguments.length,o=new Array(i),a=0;a2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe(Object(d.a)(t)).subscribe(function(t){var r=t.length;D(e,n+"-2-line",!1),D(e,n+"-3-line",!1),D(e,n+"-multi-line",!1),2===r||3===r?D(e,"".concat(n,"-").concat(r,"-line"),!0):r>3&&D(e,n+"-multi-line",!0)})}function D(t,e,n){var r=t.nativeElement.classList;n?r.add(e):r.remove(e)}var P,F,L,V,M,U,H,z,B=((P=function t(){p(this,t)}).\u0275mod=r.Hb({type:P}),P.\u0275inj=r.Gb({factory:function(t){return new(t||P)},imports:[[S],S]}),P),q=function(){function t(e,n,r){p(this,t),this._renderer=e,this.element=n,this.config=r,this.state=3}return y(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),W={enterDuration:450,exitDuration:400},J=Object(f.f)({passive:!0}),G=["mousedown","touchstart"],K=["mouseup","mouseleave","touchend","touchcancel"],Q=function(){function t(e,n,r,i){p(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Object(c.d)(r))}return y(t,[{key:"fadeInRipple",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},W),r.animation);r.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);var a=r.radius||function(t,e,n){var r=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(r*r+i*i)}(t,e,i),s=t-i.left,u=e-i.top,c=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-a+"px",l.style.top=u-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",null!=r.color&&(l.style.backgroundColor=r.color),l.style.transitionDuration=c+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new q(this,l,r);return h.state=0,this._activeRipples.add(h),r.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===n._mostRecentTransientRipple;h.state=1,r.persistent||t&&n._isPointerDown||h.fadeOut()},c),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,r=Object.assign(Object.assign({},W),t.config.animation);n.style.transitionDuration=r.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,n.parentNode.removeChild(n)},r.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=Object(c.d)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(G))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(K),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=Object(i.h)(t),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,J)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(G.forEach(function(e){t._triggerElement.removeEventListener(e,t,J)}),this._pointerUpEventsRegistered&&K.forEach(function(e){t._triggerElement.removeEventListener(e,t,J)}))}}]),t}(),Z=new r.q("mat-ripple-global-options"),X=((M=function(){function t(e,n,r,i,o){p(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Q(this,n,e,r)}return y(t,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),t}()).\u0275fac=function(t){return new(t||M)(r.Jb(r.l),r.Jb(r.z),r.Jb(f.a),r.Jb(Z,8),r.Jb(v.a,8))},M.\u0275dir=r.Eb({type:M,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&r.Bb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),M),$=((V=function t(){p(this,t)}).\u0275mod=r.Hb({type:V}),V.\u0275inj=r.Gb({factory:function(t){return new(t||V)},imports:[[S,f.b],S]}),V),Y=((L=function t(e){p(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1}).\u0275fac=function(t){return new(t||L)(r.Jb(v.a,8))},L.\u0275cmp=r.Db({type:L,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&r.Bb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),L),tt=((F=function t(){p(this,t)}).\u0275mod=r.Hb({type:F}),F.\u0275inj=r.Gb({factory:function(t){return new(t||F)},imports:[[S]]}),F),et=C(function t(){p(this,t)}),nt=0,rt=((U=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments))._labelId="mat-optgroup-label-"+nt++,t}return n}(et)).\u0275fac=function(t){return it(t||U)},U.\u0275dir=r.Eb({type:U,inputs:{label:"label"},features:[r.wb]}),U),it=r.Qb(rt),ot=new r.q("MatOptgroup"),at=0,st=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p(this,t),this.source=e,this.isUserInput=n},ut=new r.q("MAT_OPTION_PARENT_COMPONENT"),ct=((z=function(){function t(e,n,i,o){p(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+at++,this.onSelectionChange=new r.n,this._stateChanges=new h.a}return y(t,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==m.f&&t.keyCode!==m.l||Object(m.q)(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new st(this,t))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=Object(c.b)(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),t}()).\u0275fac=function(t){return new(t||z)(r.Jb(r.l),r.Jb(r.h),r.Jb(void 0),r.Jb(rt))},z.\u0275dir=r.Eb({type:z,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),z),lt=((H=function(t){u(n,t);var e=l(n);function n(t,r,i,o){return p(this,n),e.call(this,t,r,i,o)}return n}(ct)).\u0275fac=function(t){return new(t||H)(r.Jb(r.l),r.Jb(r.h),r.Jb(ut,8),r.Jb(ot,8))},H.\u0275cmp=r.Db({type:H,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&r.Vb("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(r.Rb("id",e.id),r.Ab("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),r.Bb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[r.wb],ngContentSelectors:_,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(r.cc(),r.sc(0,g,1,2,"mat-pseudo-checkbox",0),r.Ob(1,"span",1),r.bc(2),r.Nb(),r.Kb(3,"div",2)),2&t&&(r.dc("ngIf",e.multiple),r.zb(3),r.dc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[s.l,X,Y],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),H);function ht(t,e,n){if(n.length){for(var r=e.toArray(),i=n.toArray(),o=0,a=0;an+r?Math.max(0,t-r+e):n}var dt,vt=((dt=function t(){p(this,t)}).\u0275mod=r.Hb({type:dt}),dt.\u0275inj=r.Gb({factory:function(t){return new(t||dt)},imports:[[$,s.c,S,tt]]}),dt)},FtGj:function(t,e,n){"use strict";n.d(e,"a",function(){return y}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return v}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return u}),n.d(e,"f",function(){return o}),n.d(e,"g",function(){return a}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return l}),n.d(e,"j",function(){return m}),n.d(e,"k",function(){return f}),n.d(e,"l",function(){return s}),n.d(e,"m",function(){return i}),n.d(e,"n",function(){return h}),n.d(e,"o",function(){return g}),n.d(e,"p",function(){return p}),n.d(e,"q",function(){return b});var r=8,i=9,o=13,a=27,s=32,u=35,c=36,l=37,h=38,f=39,d=40,v=46,p=48,m=57,y=65,g=90;function b(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:t.now;p(this,t),this.SchedulerAction=e,this.now=n}return y(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),o=function(t){u(n,t);var e=l(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return p(this,n),(i=e.call(this,t,function(){return n.delegate&&n.delegate!==f(i)?n.delegate.now():o()})).actions=[],i.active=!1,i.scheduled=void 0,i}return y(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,r):i(v(n.prototype),"schedule",this).call(this,t,e,r)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var 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}}}}]),n}(r)},IzEk:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");function a(t){return function(e){return 0===t?Object(o.b)():e.lift(new s(t))}}var s=function(){function t(e){if(p(this,t),this.total=e,this.total<0)throw new i.a}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.total))}}]),t}(),c=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).total=r,i.count=0,i}return y(n,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),n}(r.a)},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("zx2A");function o(t){return function(e){var n=new a(t),r=e.lift(n);return n.caught=r}}var a=function(){function t(e){p(this,t),this.selector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.selector,this.caught))}}]),t}(),s=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t)).selector=r,o.caught=i,o}return y(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void i(v(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new r.a(this);this.add(o);var a=Object(r.c)(e,o);a!==o&&this.add(a)}}}]),n}(r.b)},JX91:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("LRne"),i=n("0EUg");function o(){return Object(i.a)()(Object(r.a).apply(void 0,arguments))}var a=n("z+Ro");function s(){for(var t=arguments.length,e=new Array(t),n=0;n(new Date).valueOf()+1e3*n)}},{key:"getTokenClientId",value:function(e){var n=t.decodeToken(e);return n&&n.hasOwnProperty("client_id")?n.client_id:null}}]),t}()},Kj3r:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("7o/Q"),i=n("D0XW");function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;return function(n){return n.lift(new a(t,e))}}var a=function(){function t(e,n){p(this,t),this.dueTime=e,this.scheduler=n}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))}}]),t}(),s=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t)).dueTime=r,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return y(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(r.a);function c(t){t.debouncedNext()}},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("z+Ro"),i=n("yCtX"),o=n("jZKg");function a(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,n=this._sanitizer.sanitize(i.I.RESOURCE_URL,t);if(!n)throw E(t);var r=this._cachedIconsByUrl.get(n);return r?Object(c.a)(j(r)):this._loadSvgIconFromConfig(new T(t,null)).pipe(Object(v.a)(function(t){return e._cachedIconsByUrl.set(n,t)}),Object(m.a)(function(t){return j(t)}))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=I(e,t),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):Object(h.a)(O(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgText?Object(c.a)(j(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(m.a)(function(t){return j(t)}))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var n=this,r=this._extractIconWithNameFromAnySet(t,e);if(r)return Object(c.a)(r);var o=e.filter(function(t){return!t.svgText}).map(function(t){return n._loadSvgIconSetFromConfig(t).pipe(Object(g.a)(function(e){var r=n._sanitizer.sanitize(i.I.RESOURCE_URL,t.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(r," failed: ").concat(e.message))),Object(c.a)(null)}))});return Object(f.a)(o).pipe(Object(m.a)(function(){var r=n._extractIconWithNameFromAnySet(t,e);if(!r)throw O(t);return r}))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.svgText&&r.svgText.indexOf(t)>-1){var i=this._svgElementFromConfig(r),o=this._extractSvgIconFromSet(i,t,r.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchIcon(t).pipe(Object(v.a)(function(e){return t.svgText=e}),Object(m.a)(function(){return e._svgElementFromConfig(t)}))}},{key:"_loadSvgIconSetFromConfig",value:function(t){return t.svgText?Object(c.a)(null):this._fetchIcon(t).pipe(Object(v.a)(function(e){return t.svgText=e}))}},{key:"_extractSvgIconFromSet",value:function(t,e,n){var r=t.querySelector('[id="'.concat(e,'"]'));if(!r)return null;var i=r.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);var o=this._svgElementFromString("");return o.appendChild(i),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),n=t.attributes,r=0;r=2;return function(c){return c.pipe(t?Object(i.a)(function(e,n){return t(e,n,c)}):u.a,Object(o.a)(1),n?Object(s.a)(e):Object(a.a)(function(){return new r.a}))}}},NXyV:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("HDdC"),i=n("Cfvw"),o=n("EY2u");function a(t){return new r.a(function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(e)})}},OCPU:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("P3kg"),i=n("8Cu2"),o=n("fXoL"),a=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.subject||{provide:r.b,useClass:r.a},e.subjectPermissions||{provide:i.b,useClass:i.a}]}}},{key:"forChild",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)}}),t}()},OtPg:function(t,e,i){"use strict";i.d(e,"a",function(){return L}),i.d(e,"b",function(){return H}),i.d(e,"c",function(){return z});var o,a,s,c,h=i("fXoL"),f=i("2Vo4"),d=i("EY2u"),v=i("z6cu"),m=i("yCtX"),g=i("DH7j"),b=i("7o/Q"),_=i("Lhse"),k=i("zx2A"),w=function(){function t(e){p(this,t),this.resultSelector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new S(t,this.resultSelector))}}]),t}(),S=function(t){u(n,t);var e=l(n);function n(t,r){var i;arguments.length>2&&void 0!==arguments[2]||Object.create(null);return p(this,n),(i=e.call(this,t)).resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return y(n,[{key:"_next",value:function(t){var e=this.iterators;Object(g.a)(t)?e.push(new O(t)):e.push("function"==typeof t[_.a]?new C(t[_.a]()):new E(this.destination,this,t))}},{key:"_complete",value:function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;nthis.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),t}(),E=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t)).parent=r,o.observable=i,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return y(n,[{key:_.a,value:function(){return this}},{key:"next",value:function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(t){this.buffer.push(t),this.parent.checkIterators()}},{key:"subscribe",value:function(){return Object(k.c)(this.observable,new k.a(this))}}]),n}(k.b),x=i("Cfvw"),T=i("eNwd"),A=i("pLZG"),j=i("lJxs"),I=i("IzEk"),R=i("eIep"),N=i("vkgz"),D=i("JIr8"),P=i("ofXK"),F=i("jhN1"),L=new h.q("HIGHLIGHT_OPTIONS"),V=((o=function(){function t(e,n,r){var i=this;p(this,t),this._options=r,this._ready=new f.a(null),this.ready=this._ready.asObservable().pipe(Object(A.a)(function(t){return!!t}),Object(j.a)(function(t){return t}),Object(I.a)(1)),Object(P.r)(n)&&e.defaultView.hljs?this._ready.next(e.defaultView.hljs):this._loadLibrary().pipe(Object(R.a)(function(t){return i._options&&i._options.lineNumbersLoader?(e.defaultView.hljs=t,i.loadLineNumbers().pipe(Object(N.a)(function(){return i._ready.next(t)}))):(i._ready.next(t),d.a)}),Object(D.a)(function(t){return console.error("[HLJS] ",t),d.a})).subscribe()}return y(t,[{key:"_loadLibrary",value:function(){var t=this;if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return Object(v.a)("The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return Object(v.a)("The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return Object(v.a)("The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return Object(v.a)("The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe(Object(R.a)(function(e){return t._loadLanguages(e)}))}return Object(v.a)("Highlight.js library was not imported!")}},{key:"_loadLanguages",value:function(t){return(function(){for(var t=arguments.length,e=new Array(t),n=0;n=0})),t}return y(n,[{key:"ngOnDestroy",value:function(){this.subject.complete()}},{key:"getSubject",value:function(){return this.subject.getValue()}},{key:"setSubject",value:function(t){this.subject.next(t)}}]),n}(a);return t.\u0275fac=function(e){return c(e||t)},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t}(),c=r.Qb(s)},PqYM:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("HDdC"),i=n("D0XW"),o=n("DH7j");function a(t){return!Object(o.a)(t)&&t-parseFloat(t)+1>=0}var s=n("z+Ro");function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=-1;return a(e)?o=Number(e)<1?1:Number(e):Object(s.a)(e)&&(n=e),Object(s.a)(n)||(n=i.a),new r.a(function(e){var r=a(t)?t:+t-n.now();return n.schedule(c,r,{index:0,period:o,subscriber:e})})}function c(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},Pv2G:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("tk/3"),i=n("HDdC"),o=n("RJIb"),a=n("iVJa"),s=n("xDj2"),u=n("Q8NU"),c=n("VWR/"),l=n("fXoL"),h=function(){var t=function(){function t(e,n){p(this,t),this.tokens=e,this.options=n}return y(t,[{key:"initialize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new i.a(function(n){if(t.tokens.hasValidAccessToken())return n.next({message:"Access token is still valid"}),void n.complete();var r=s.a.getHashFragmentParams(),i=r.access_token,o=r.state,a=r.error;if(!a)return i||o||!e?void(i?o?o===u.a.get("nonce")?(t.tokens.setAccessToken(i),n.next({message:"Access token saved"}),n.complete(),t.options.preventClearHashAfterLogin||(location.hash="")):n.error({message:"Nonce is not valid"}):n.error({message:"Nonce is missing"}):n.error({message:"No access token in URL"})):(n.next({message:"No access token and authenticate automatically is set to true - you will be redirected"}),n.complete(),void t.authenticate());n.error({message:a})})}},{key:"authenticate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.location.href,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new r.e;document.location.href=this.loginUrl(t,e,n)}},{key:"loginUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new r.e,i=c.a.createAndSaveNonce();return n=(n||new r.e).set("client_id",this.options.clientId).set("state",i).set("response_type",this.options.responseType).set("redirect_uri",t),this.options.scope&&(n=n.set("scope",this.options.scope)),this.options.resource&&(n=n.set("resource",this.options.resource)),e&&(n=n.set("prompt","none")),"".concat(this.options.loginUrl,"?").concat(n.toString())}},{key:"clear",value:function(){this.tokens.clear()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Sb(o.a),l.Sb(a.a))},t.\u0275prov=l.Fb({token:t,factory:t.\u0275fac}),t}()},Q8NU:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){p(this,t)}return y(t,null,[{key:"put",value:function(t,e){sessionStorage.setItem(t,JSON.stringify(e))}},{key:"get",value:function(t){var e=sessionStorage.getItem(t);if(!e)return null;try{return JSON.parse(e)}catch(n){return console.warn("Cannot parse ".concat(t," as JSON"),n),e}}},{key:"remove",value:function(t){sessionStorage.removeItem(t)}}]),t}()},R0Ic:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return s}),n.d(e,"f",function(){return u}),n.d(e,"g",function(){return l}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return h}),n.d(e,"j",function(){return a}),n.d(e,"k",function(){return v}),n.d(e,"l",function(){return m});var r=function t(){p(this,t)},i=function t(){p(this,t)},o="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function l(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function f(t){Promise.resolve(null).then(t)}var d=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;f(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),v=function(){function t(e){var n=this;p(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var r=0,i=0,o=0,a=this.players.length;0==a?f(function(){return n._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++r==a&&n._onFinish()}),t.onDestroy(function(){++i==a&&n._onDestroy()}),t.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),m="!"},R1ws:function(t,e,a){"use strict";a.d(e,"a",function(){return Ie}),a.d(e,"b",function(){return Ne});var s=a("fXoL"),c=a("jhN1"),h=a("R0Ic");function f(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function d(t){switch(t.length){case 0:return new h.d;case 1:return t[0];default:return new h.k(t)}}function m(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,c=null;if(r.forEach(function(t){var n=t.offset,r=n==u,l=r&&c||{};Object.keys(t).forEach(function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),s){case h.l:s=i[n];break;case h.a:s=o[n];break;default:s=e.normalizeStyleValue(n,r,s,a)}l[r]=s}),r||s.push(l),c=l,u=n}),a.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(a.join(l)))}return s}function g(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&b(n,"start",t))});break;case"done":t.onDone(function(){return r(n&&b(n,"done",t))});break;case"destroy":t.onDestroy(function(){return r(n&&b(n,"destroy",t))})}}function b(t,e,n){var r=n.totalTime,i=_(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function _(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function k(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function w(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var S=function(t,e){return!1},C=function(t,e){return!1},O=function(t,e,n){return[]},E=f();(E||"undefined"!=typeof Element)&&(S=function(t,e){return t.contains(e)},C=function(){if(E||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:C}(),O=function(t,e,n){var r=[];if(n)for(var i=t.querySelectorAll(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function H(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var r in t)n[r]=t[r];else U(t,n);return n}function z(t,e,n){return n?e+":"+n+";":""}function B(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=i[1],a=i[2],s=i[3];e.push(ot(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(ot(s,o))}(t,i,r)}):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:ht(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return et(n,t,e)}),options:ht(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=et(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:ht(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ft(M(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=ft(0,0,"");return i.dynamic=!0,i.strValue=r,i}return ft((n=n||M(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:Object(h.h)({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=Object(h.h)(s)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,e);u.isEmptyStep=a,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==h.a?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(lt(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,u,c,l,h=e.collectedStyles[e.currentQuerySelector],f=h[r],d=!0;f&&(o!=i&&o>=f.startTime&&i<=f.endTime&&(e.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),d=!1),o=f.startTime),d&&(h[r]={startTime:o,endTime:i}),e.options&&(a=t[r],s=e.options,u=e.errors,c=s.params||{},(l=K(a)).length&&l.forEach(function(t){c.hasOwnProperty(t)||u.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,u=0,c=t.steps.map(function(t){var r=n._makeStyleAst(t,e),c=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(lt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(lt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),l=0;return null!=c&&(i++,l=r.offset=c),s=s||l<0||l>1,a=a||l0&&i0?i==f?1:h*i:o[i],s=a*p;e.currentTime=d+v.delay+s,v.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r}},{key:"visitReference",value:function(t,e){return{type:8,animation:et(this,J(t.animation),e),options:ht(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:ht(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ht(t.options)}}},{key:"visitQuery",value:function(t,e){var r=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var o=n(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(at,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),a=o[0],s=o[1];e.currentQuerySelector=r.length?r+" "+a:a,k(e.collectedStyles,e.currentQuerySelector,{});var u=et(this,J(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:u,originalSelector:t.selector,options:ht(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:M(t.timings,e.errors,!0);return{type:12,animation:et(this,J(t.animation),e),timings:n,options:null}}}]),t}(),ct=function t(e){p(this,t),this.errors=e,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 lt(t){return!Array.isArray(t)&&"object"==typeof t}function ht(t){var e;return t?(t=U(t)).params&&(t.params=(e=t.params)?U(e):null):t={},t}function ft(t,e,n){return{duration:t,delay:e,easing:n}}function dt(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var vt=function(){function t(){p(this,t),this._map=new Map}return y(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,r(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),pt=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function yt(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new gt).buildKeyframes(t,e,n,r,i,o,a,s,u,c)}var gt=function(){function t(){p(this,t)}return y(t,[{key:"buildKeyframes",value:function(t,e,n,r,i,o,a,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new vt;var l=new _t(t,e,u,r,i,c,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),et(this,n,l);var h=l.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,l.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[dt(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?L(n.duration):null,o=null!=n.delay?L(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),et(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=bt);var a=L(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return et(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?L(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),et(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return M(e.params?Q(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?L(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach(function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(u=s.currentTimeline),et(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;et(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}]),t}(),bt={},_t=function(){function t(e,n,r,i,o,a,s,u){p(this,t),this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new kt(this._driver,n,0),s.push(this.currentTimeline)}return y(t,[{key:"updateOptions",value:function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=L(r.duration)),null!=r.delay&&(i.delay=L(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=Q(o[t],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,o,a){var s=[];if(i&&s.push(this.element),t.length>0){t=(t=t.replace(pt,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);var u=this._driver.query(this.element,t,1!=n);0!==n&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push.apply(s,r(u))}return o||0!=s.length||a.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),t}(),kt=function(){function t(e,n,r,i){p(this,t),this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return y(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||h.a,e._currentKeyframe[t]=h.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=h.a}):H(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=Q(a[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:h.a),i._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var s=H(o,!0);Object.keys(s).forEach(function(t){var r=s[t];r==h.l?e.add(t):r==h.a&&n.add(t)}),r||(s.offset=a/t.duration),i.push(s)});var o=e.size?Z(e.values()):[],a=n.size?Z(n.values()):[];if(r){var s=i[0],u=U(s);s.offset=0,u.offset=1,i=[s,u]}return dt(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),wt=function(t){u(n,t);var e=l(n);function n(t,r,i,o,a,s){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return p(this,n),(u=e.call(this,t,r,s.delay)).element=r,u.keyframes=i,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return y(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,u=H(t[0],!1);u.offset=0,o.push(u);var c=H(t[0],!1);c.offset=St(s),o.push(c);for(var l=t.length-1,h=1;h<=l;h++){var f=H(t[h],!1);f.offset=St((n+f.offset*r)/a),o.push(f)}r=a,n=0,i="",t=o}return dt(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(kt);function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var Ct,Ot,Et=function t(){p(this,t)},xt=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"normalizePropertyName",value:function(t,e){return $(t)}},{key:"normalizeStyleValue",value:function(t,e,n,r){var i="",o=n.toString().trim();if(Tt[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return o+i}}]),n}(Et),Tt=(Ct="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(","),Ot={},Ct.forEach(function(t){return Ot[t]=!0}),Ot);function At(t,e,n,r,i,o,a,s,u,c,l,h,f){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:f}}var jt={},It=function(){function t(e,n,r){p(this,t),this._triggerName=e,this.ast=n,this._stateStyles=r}return y(t,[{key:"match",value:function(t,e,n,r){return function(t,e,n,r,i){return t.some(function(t){return t(e,n,r,i)})}(this.ast.matchers,t,e,n,r)}},{key:"buildStyles",value:function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o}},{key:"build",value:function(t,e,n,r,i,o,a,s,u,c){var l=[],h=this.ast.options&&this.ast.options.params||jt,f=this.buildStyles(n,a&&a.params||jt,l),d=s&&s.params||jt,v=this.buildStyles(r,d,l),p=new Set,m=new Map,y=new Map,g="void"===r,b={params:Object.assign(Object.assign({},h),d)},_=c?[]:yt(t,e,this.ast.animation,i,o,f,v,b,u,l),w=0;if(_.forEach(function(t){w=Math.max(t.duration+t.delay,w)}),l.length)return At(e,this._triggerName,n,r,g,f,v,[],[],m,y,w,l);_.forEach(function(t){var n=t.element,r=k(m,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=k(y,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&p.add(n)});var S=Z(p.values());return At(e,this._triggerName,n,r,g,f,v,_,S,m,y,w)}}]),t}(),Rt=function(){function t(e,n){p(this,t),this.styles=e,this.defaultParams=n}return y(t,[{key:"buildStyles",value:function(t,e){var n={},r=U(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=Q(o,r,e)),n[t]=o})}}),n}}]),t}(),Nt=function(){function t(e,n){var r=this;p(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(t){r.states[t.name]=new Rt(t.style,t.options&&t.options.params||{})}),Dt(this.states,"true","1"),Dt(this.states,"false","0"),n.transitions.forEach(function(t){r.transitionFactories.push(new It(e,t,r.states))}),this.fallbackTransition=new It(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return y(t,[{key:"matchTransition",value:function(t,e,n,r){return this.transitionFactories.find(function(i){return i.match(t,e,n,r)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function Dt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Pt=new vt,Ft=function(){function t(e,n,r){p(this,t),this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return y(t,[{key:"register",value:function(t,e){var n=[],r=st(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]=r}},{key:"_buildPlayer",value:function(t,e,n){var r=t.element,i=m(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[t],s=new Map;if(a?(n=yt(this._driver,e,a,"ng-enter","ng-leave",{},{},i,Pt,o)).forEach(function(t){var e=k(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,h.a)})});var u=d(n.map(function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return r.destroy(t)}),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}},{key:"listen",value:function(t,e,n,r){var i=_(e,"","","");return g(this._getPlayer(t),n,i,r),function(){}}},{key:"command",value:function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])}}]),t}(),Lt=[],Vt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Mt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ut=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";p(this,t),this.namespaceId=n;var r,i=e&&e.hasOwnProperty("value");if(this.value=null!=(r=i?e.value:e)?r:null,i){var o=U(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return y(t,[{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}}},{key:"params",get:function(){return this.options.params}}]),t}(),Ht=new Ut("void"),zt=function(){function t(e,n,r){p(this,t),this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Qt(n,this._hostClassName)}return y(t,[{key:"listen",value:function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var a=k(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var u=k(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Qt(t,"ng-trigger"),Qt(t,"ng-trigger-"+e),u[e]=Ht),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete u[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new qt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Qt(t,"ng-trigger"),Qt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],c=new Ut(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[e]=c,u||(u=Ht),"void"===c.value||u.value!==c.value){var l=k(this._engine.playersByElement,t,[]);l.forEach(function(t){t.namespaceId==r.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(u.value,c.value,t,c.params),f=!1;if(!h){if(!i)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:c,player:a,isFallbackTransition:f}),f||(Qt(t,"ng-animate-queued"),a.onStart(function(){Zt(t,"ng-animate-queued")})),a.onDone(function(){var e=r.players.indexOf(a);e>=0&&r.players.splice(e,1);var n=r._engine.playersByElement.get(t);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}}),this.players.push(a),l.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Qt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,n,r){if(Wt(e)){var i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}},{key:"markElementAsRemoved",value:function(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,r,i){return Wt(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}}},{key:"_buildInstruction",value:function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return d(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=Vt,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;j--)this._namespaceList[j].drainQueuedTransitions(e).forEach(function(t){var e=t.player,r=t.element;if(T.push(e),n.collectedEnterElements.length){var a=r.__ng_removed;if(a&&a.setForMove)return void e.destroy()}var h=!v||!n.driver.containsElement(v,r),f=E.get(r),d=y.get(r),p=n._buildInstruction(t,i,d,f,h);if(p.errors&&p.errors.length)A.push(p);else{if(h)return e.onStart(function(){return W(r,p.fromStyles)}),e.onDestroy(function(){return q(r,p.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return W(r,p.fromStyles)}),e.onDestroy(function(){return q(r,p.toStyles)}),void o.push(e);p.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(r,p.timelines),s.push({instruction:p,player:e,element:r}),p.queriedElements.forEach(function(t){return k(u,t,[]).push(e)}),p.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=c.get(e);r||c.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),p.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(A.length){var I=[];A.forEach(function(t){I.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return I.push("- ".concat(t,"\n"))})}),T.forEach(function(t){return t.destroy()}),this.reportError(I)}var R=new Map,N=new Map;s.forEach(function(t){var e=t.element;i.has(e)&&(N.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,R))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){k(R,e,[]).push(t),t.destroy()})});var D=b.filter(function(t){return Yt(t,c,l)}),P=new Map;Gt(P,this.driver,w,l,h.a).forEach(function(t){Yt(t,c,l)&&D.push(t)});var F=new Map;m.forEach(function(t,e){Gt(F,n.driver,new Set(t),c,h.l)}),D.forEach(function(t){var e=P.get(t),n=F.get(t);P.set(t,Object.assign(Object.assign({},e),n))});var L=[],V=[],M={};s.forEach(function(t){var e=t.element,r=t.player,s=t.instruction;if(i.has(e)){if(f.has(e))return r.onDestroy(function(){return q(e,s.toStyles)}),r.disabled=!0,r.overrideTotalTime(s.totalTime),void o.push(r);var u=M;if(N.size>1){for(var c=e,l=[];c=c.parentNode;){var h=N.get(c);if(h){u=h;break}l.push(c)}l.forEach(function(t){return N.set(t,u)})}var v=n._buildAnimation(r.namespaceId,s,R,a,F,P);if(r.setRealPlayer(v),u===M)L.push(r);else{var p=n.playersByElement.get(u);p&&p.length&&(r.parentPlayer=d(p)),o.push(r)}}else W(e,s.fromStyles),r.onDestroy(function(){return q(e,s.toStyles)}),V.push(r),f.has(e)&&o.push(r)}),V.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var n=d(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var U=0;U0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new h.d(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t}}]),t}(),qt=function(){function t(e,n,r){p(this,t),this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new h.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return y(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return g(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){k(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Wt(t){return t&&1===t.nodeType}function Jt(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Gt(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(Jt(t))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=Mt,a.push(r))}),t.set(r,o)});var s=0;return n.forEach(function(t){return Jt(t,o[s++])}),a}function Kt(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),i=new Map;function o(t){if(!t)return 1;var e=i.get(t);if(e)return e;var a=t.parentNode;return e=n.has(a)?a:r.has(a)?1:o(a),i.set(t,e),e}return e.forEach(function(t){var e=o(t);1!==e&&n.get(e).push(t)}),n}function Qt(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Zt(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Xt(t,e,n){d(n).onDone(function(){return t.processLeaveNode(e)})}function $t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function ee(t,e){var n=null,r=null;return Array.isArray(e)&&e.length?(n=re(e[0]),e.length>1&&(r=re(e[e.length-1]))):e&&(n=re(e)),n||r?new ne(t,n,r):null}var ne=function(){var t=function(){function t(e,n,r){p(this,t),this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;var i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}return y(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function re(t){for(var e=null,n=Object.keys(t),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ce(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,n=he(t,"").split(","),(r=ue(n,e))>=0&&(n.splice(r,1),le(t,"",n.join(","))))}}]),t}();function ae(t,e,n){le(t,"PlayState",n,se(t,e))}function se(t,e){var n=he(t,"");return n.indexOf(",")>0?ue(n.split(","),e):ue([n],e)}function ue(t,e){for(var n=0;n=0)return n;return-1}function ce(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function le(t,e,n,r){var i="animation"+e;if(null!=r){var o=t.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}t.style[i]=n}function he(t,e){return t.style["animation"+e]||""}var fe=function(){function t(e,n,r,i,o,a,s,u){p(this,t),this.element=e,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=i+o,this._buildStyler()}return y(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new oe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:nt(t.element,r))})}this.currentSnapshot=e}}]),t}(),de=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).element=t,i._startingStyles={},i.__initialized=!1,i._styles=N(r),i}return y(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),i(v(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),i(v(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,i(v(n.prototype),"destroy",this).call(this))}}]),n}(h.d),ve=function(){function t(){p(this,t),this._count=0,this._head=document.querySelector("head")}return y(t,[{key:"validateStyleProperty",value:function(t){return A(t)}},{key:"matchesElement",value:function(t,e){return j(t,e)}},{key:"containsElement",value:function(t,e){return I(t,e)}},{key:"query",value:function(t,e,n){return R(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map(function(t){return N(t)});var r="@keyframes ".concat(e," {\n"),i="";n.forEach(function(t){i=" ";var e=parseFloat(t.offset);r+="".concat(i).concat(100*e,"% {\n"),i+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(e,": ").concat(n,";\n"))}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.textContent=r,o}},{key:"animate",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(t){return t instanceof fe}),s={};Y(n,r)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=tt(t,e,s));if(0==n)return new de(t,u);var c="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(l);var h=ee(t,e),f=new fe(t,e,c,n,r,i,u,h);return f.onDestroy(function(){var t;(t=l).parentNode.removeChild(t)}),f}}]),t}(),pe=function(){function t(e,n,r,i){p(this,t),this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:nt(t.element,n))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),me=function(){function t(){p(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ye().toString()),this._cssKeyframesDriver=new ve}return y(t,[{key:"validateStyleProperty",value:function(t){return A(t)}},{key:"matchesElement",value:function(t,e){return j(t,e)}},{key:"containsElement",value:function(t,e){return I(t,e)}},{key:"query",value:function(t,e,n){return R(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var u={},c=o.filter(function(t){return t instanceof pe});Y(n,r)&&c.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var l=ee(t,e=tt(t,e=e.map(function(t){return H(t,!1)}),u));return new pe(t,e,s,l)}}]),t}();function ye(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ge,be=a("ofXK"),_e=((ge=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this))._nextAnimationId=0,i._renderer=t.createRenderer(r.body,{id:"0",encapsulation:s.Q.None,styles:[],data:{animation:[]}}),i}return y(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Object(h.f)(t):t;return Se(this._renderer,null,e,"register",[n]),new ke(e,this._renderer)}}]),n}(h.b)).\u0275fac=function(t){return new(t||ge)(s.Sb(s.F),s.Sb(be.d))},ge.\u0275prov=s.Fb({token:ge,factory:ge.\u0275fac}),ge),ke=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this))._id=t,i._renderer=r,i}return y(n,[{key:"create",value:function(t,e){return new we(this._id,t,e||{},this._renderer)}}]),n}(h.c),we=function(){function t(e,n,r,i){p(this,t),this.id=e,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return y(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,r){this.delegate.setStyle(t,e,n,r)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}},{key:"data",get:function(){return this.delegate.data}}]),t}(),Ae=function(t){u(r,t);var e=l(r);function r(t,n,i,o){var a;return p(this,r),(a=e.call(this,n,i,o)).factory=t,a.namespaceId=n,a}return y(r,[{key:"setProperty",value:function(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)}},{key:"listen",value:function(t,e,r){var i,o,a=this;if("@"==e.charAt(0)){var s,u=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),c=e.substr(1),l="";return"@"!=c.charAt(0)&&(o=(i=c).indexOf("."),c=(s=n([i.substring(0,o),i.substr(o+1)],2))[0],l=s[1]),this.engine.listen(this.namespaceId,u,c,l,function(t){a.factory.scheduleListenerCallback(t._data||-1,r,t)})}return this.delegate.listen(t,e,r)}}]),r}(Te),je=((Oe=function(t){u(n,t);var e=l(n);function n(t,r,i){return p(this,n),e.call(this,t.body,r,i)}return n}(te)).\u0275fac=function(t){return new(t||Oe)(s.Sb(be.d),s.Sb(F),s.Sb(Et))},Oe.\u0275prov=s.Fb({token:Oe,factory:Oe.\u0275fac}),Oe),Ie=new s.q("AnimationModuleType"),Re=[{provide:F,useFactory:function(){return"function"==typeof ye()?new me:new ve}},{provide:Ie,useValue:"BrowserAnimations"},{provide:h.b,useClass:_e},{provide:Et,useFactory:function(){return new xt}},{provide:te,useClass:je},{provide:s.F,useFactory:function(t,e,n){return new xe(t,e,n)},deps:[c.d,te,s.z]}],Ne=((Ee=function t(){p(this,t)}).\u0275mod=s.Hb({type:Ee}),Ee.\u0275inj=s.Gb({factory:function(t){return new(t||Ee)},providers:Re,imports:[c.a]}),Ee)},RJIb:function(t,e,r){"use strict";r.d(e,"a",function(){return T});var i,o=r("tk/3"),a=r("2Vo4"),s=r("XNiG"),u=r("itXk"),c=r("z6cu"),l=r("LRne"),h=r("NJ9Y"),f=r("5+tZ"),d=r("IzEk"),v=r("lJxs"),m=r("nYR2"),g=r("vkgz"),b=r("CYhE"),_=r("Q8NU"),k=function(){function t(){p(this,t)}return y(t,null,[{key:"put",value:function(t,e){localStorage.setItem(t,JSON.stringify(e))}},{key:"get",value:function(t){var e=localStorage.getItem(t);if(!e)return null;try{return JSON.parse(e)}catch(n){return console.warn("Cannot parse ".concat(t," as JSON"),n),e}}},{key:"remove",value:function(t){localStorage.removeItem(t)}}]),t}(),w=r("JkW8"),S=r("d8a0"),C=r("3/4O"),O=r("s2Hm"),E=r("og18"),x=r("fXoL"),T=((i=function(){function t(e,n,r,i,o){p(this,t),this.http=e,this.options=n,this.passwordFlowOptions=r,this.authorizationCodeFlowOptions=i,this.clientCredentialsFlowOptions=o,this.accessToken=new a.a(_.a.get(t.ACCESS_TOKEN_KEY)),this.refreshToken=new a.a(k.get(t.REFRESH_TOKEN_KEY)),this.accessTokenPending=null,this.accessToken$=this.accessToken.asObservable(),this.refreshToken$=this.refreshToken.asObservable()}return y(t,[{key:"ngOnDestroy",value:function(){this.accessTokenPending&&this.accessTokenPending.complete(),this.accessToken.complete(),this.refreshToken.complete()}},{key:"setAccessToken",value:function(e){_.a.put(t.ACCESS_TOKEN_KEY,e),this.accessToken.next(e)}},{key:"setRefreshToken",value:function(e){k.put(t.REFRESH_TOKEN_KEY,e),this.refreshToken.next(e)}},{key:"setTokens",value:function(t,e){this.setAccessToken(t),this.setRefreshToken(e)}},{key:"getAccessToken",value:function(){return this.accessToken.getValue()}},{key:"getRefreshToken",value:function(){return this.refreshToken.getValue()}},{key:"getAuthenticationFlowType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAccessToken(),e=w.a.getTokenClientId(t);return e?this.passwordFlowOptions.clientId===e?S.b.PASSWORD:this.authorizationCodeFlowOptions.clientId===e?S.b.AUTHORIZATION_CODE:this.clientCredentialsFlowOptions.clientId===e?S.b.CLIENT_CREDENTIALS:null:null}},{key:"hasValidAccessToken",value:function(t){var e=this.getAccessToken();return e&&!w.a.isTokenExpired(e,t)}},{key:"hasValidRefreshToken",value:function(t){var e=this.getRefreshToken();return e&&!w.a.isTokenExpired(e,t)}},{key:"getValidAccessToken",value:function(){var t=this;return this.accessTokenPending&&!this.accessTokenPending.isStopped?this.accessTokenPending.pipe(Object(h.a)(),Object(f.a)(function(){return t.accessToken$.pipe(Object(d.a)(1))})):(this.accessTokenPending=new s.a,Object(u.b)([this.accessToken$,this.refreshToken$]).pipe(Object(f.a)(function(e){var r=n(e,2),i=r[0],o=r[1];return i||o?i?w.a.isTokenExpired(i)?t.getAuthenticationFlowType(i)===S.b.CLIENT_CREDENTIALS?t.authenticateWithClientCredentials().pipe(Object(v.a)(function(t){return t.accessToken})):o?w.a.isTokenExpired(o)?Object(c.a)({message:"Refresh token expired",details:"Cannot obtain new access token"}):t.authenticateWithRefreshToken(o).pipe(Object(v.a)(function(t){return t.accessToken})):Object(c.a)({message:"Access token expired",details:"No refresh token to obtain new access token"}):Object(l.a)(i):w.a.isTokenExpired(o)?Object(c.a)({message:"Access token is missing",details:"Refresh token expired - cannot obtain new access token"}):t.authenticateWithRefreshToken(o).pipe(Object(v.a)(function(t){return t.accessToken})):Object(c.a)({message:"Authentication token is missing"})}),Object(d.a)(1),Object(m.a)(function(){t.accessTokenPending.next(),t.accessTokenPending.complete()})))}},{key:"authenticateWithPassword",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new o.e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new o.d;return r=(r||new o.e).set("username",t).set("password",e).set("grant_type","password"),i=(i||new o.d).set("Content-Type","application/x-www-form-urlencoded"),this.passwordFlowOptions.useHttpBasicAuth&&(i=i.set("Authorization","Basic "+btoa("".concat(this.passwordFlowOptions.clientId,":").concat(this.passwordFlowOptions.clientSecret)))),this.http.post(this.passwordFlowOptions.tokenUrl,r,{headers:i}).pipe(Object(v.a)(function(t){return n.transform(t)}),Object(g.a)(function(t){return n.setTokens(t.accessToken||null,t.refreshToken||null)}))}},{key:"authenticateWithRefreshToken",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new o.e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new o.d;if(!t)return Object(c.a)({message:"Refresh token must not be empty"});n=(n||new o.e).set("grant_type","refresh_token").set("refresh_token",t),r=(r||new o.d).set("Content-Type","application/x-www-form-urlencoded");var i=null,a=null,s=null,u=null;switch(this.getAuthenticationFlowType(t)){case S.b.PASSWORD:i=this.passwordFlowOptions.tokenUrl,a=this.passwordFlowOptions.clientId,s=this.passwordFlowOptions.clientSecret,u=this.passwordFlowOptions.useHttpBasicAuth;break;case S.b.AUTHORIZATION_CODE:i=this.authorizationCodeFlowOptions.tokenUrl,a=this.authorizationCodeFlowOptions.clientId,s=this.authorizationCodeFlowOptions.clientSecret,u=this.authorizationCodeFlowOptions.useHttpBasicAuth;break;case S.b.CLIENT_CREDENTIALS:i=this.clientCredentialsFlowOptions.tokenUrl,a=this.clientCredentialsFlowOptions.clientId,s=this.clientCredentialsFlowOptions.clientSecret,u=this.clientCredentialsFlowOptions.useHttpBasicAuth;break;default:return Object(c.a)({message:"Refresh token authentication is not supported"})}return i?(s&&u&&(r=r.set("Authorization","Basic "+btoa("".concat(a,":").concat(s)))),this.http.post(i,n,{headers:r}).pipe(Object(v.a)(function(t){return e.transform(t)}),Object(g.a)(function(t){return e.setTokens(t.accessToken||null,t.refreshToken||null)}))):Object(c.a)({message:"Refresh token not supported"})}},{key:"authenticateWithAuthorizationCode",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new o.e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new o.d;return n=(n||new o.e).set("grant_type","authorization_code").set("code",t),r=(r||new o.d).set("Content-Type","application/x-www-form-urlencoded"),this.authorizationCodeFlowOptions.useHttpBasicAuth?r=r.set("Authorization","Basic "+btoa("".concat(this.authorizationCodeFlowOptions.clientId,":").concat(this.authorizationCodeFlowOptions.clientSecret))):(n=n.set("client_id",this.authorizationCodeFlowOptions.clientId),this.authorizationCodeFlowOptions.clientSecret&&(n=n.set("client_secret",this.authorizationCodeFlowOptions.clientSecret))),this.http.post(this.authorizationCodeFlowOptions.tokenUrl,n,{headers:r}).pipe(Object(v.a)(function(t){return e.transform(t)}),Object(g.a)(function(t){return e.setTokens(t.accessToken||null,t.refreshToken||null)}))}},{key:"authenticateWithClientCredentials",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o.e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new o.d;return e=(e||new o.e).set("grant_type","client_credentials"),n=(n||new o.d).set("Content-Type","application/x-www-form-urlencoded"),this.clientCredentialsFlowOptions.useHttpBasicAuth&&(n=n.set("Authorization","Basic "+btoa("".concat(this.clientCredentialsFlowOptions.clientId,":").concat(this.clientCredentialsFlowOptions.clientSecret)))),this.http.post(this.clientCredentialsFlowOptions.tokenUrl,e,{headers:n}).pipe(Object(v.a)(function(e){return t.transform(e)}),Object(g.a)(function(e){return t.setTokens(e.accessToken||null,e.refreshToken||null)}))}},{key:"clear",value:function(){this.accessToken.next(null),_.a.remove(t.ACCESS_TOKEN_KEY),this.refreshToken.next(null),k.remove(t.REFRESH_TOKEN_KEY)}},{key:"transform",value:function(t){return this.options.mapper(t)}}]),t}()).ACCESS_TOKEN_KEY="access_token",i.REFRESH_TOKEN_KEY="refresh_token",i.\u0275fac=function(t){return new(t||i)(x.Sb(o.b),x.Sb(b.a),x.Sb(O.a),x.Sb(E.a),x.Sb(C.a))},i.\u0275prov=x.Fb({token:i,factory:i.\u0275fac}),i)},RWdr:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("tk/3"),i=n("RJIb"),o=n("fXoL"),a=function(){var t=function(){function t(e){p(this,t),this.tokens=e}return y(t,[{key:"authenticate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new r.e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new r.d;return this.tokens.authenticateWithPassword(t,e,n,i)}},{key:"clear",value:function(){this.tokens.clear()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(i.a))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}()},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("ngJS"),i=n("NJ4a"),o=n("Lhse"),a=n("kJWO"),s=n("I55L"),u=n("c2HN"),c=n("XoHu"),l=function(t){if(t&&"function"==typeof t[a.a])return l=t,function(t){var e=l[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(r.a)(t);if(Object(u.a)(t))return n=t,function(t){return n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(i){return t.error(i),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t};var e,n,l,h=Object(c.a)(t)?"an invalid object":"'".concat(t,"'");throw new TypeError("You provided ".concat(h," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",function(){return r})},VRyK:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("HDdC"),i=n("z+Ro"),o=n("bHdf"),a=n("yCtX");function s(){for(var t=arguments.length,e=new Array(t),n=0;n1&&"number"==typeof e[e.length-1]&&(s=e.pop())):"number"==typeof c&&(s=e.pop()),null===u&&1===e.length&&e[0]instanceof r.a?e[0]:Object(o.a)(s)(Object(a.a)(e,u))}},"VWR/":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("5mAv"),i=n("Q8NU"),o=function(){function t(){p(this,t)}return y(t,null,[{key:"createNonce",value:function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",e=45,n="",i="undefined"==typeof self?null:self.crypto||self.msCrypto;if(i){var o=new Uint8Array(e);i.getRandomValues(o),o=o.map(function(e){return t.charCodeAt(e%t.length)}),n=String.fromCharCode.apply(null,o)}else for(;00&&void 0!==arguments[0]?arguments[0]:c;return function(e){return e.lift(new a(t))}}var a=function(){function t(e){p(this,t),this.errorFactory=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.errorFactory))}}]),t}(),s=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).errorFactory=r,i.hasValue=!1,i}return y(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(i.a);function c(){return new r.a}},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return f}),n.d(e,"a",function(){return d});var r=n("HDdC"),o=n("7o/Q"),a=n("quSY"),s=n("9ppp"),c=n("Ylt2"),h=n("2QA8"),f=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this,t)).destination=t,r}return n}(o.a),d=function(){var t=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return y(n,[{key:h.a,value:function(){return new f(this)}},{key:"lift",value:function(t){var e=new m(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.subject||{provide:r.b,useClass:r.a},e.subjectRoles||{provide:i.b,useClass:i.a}]}}},{key:"forChild",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)}}),t}()},Zy1z:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("7o/Q");function i(){return function(t){return t.lift(new o)}}var o=function(){function t(){p(this,t)}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t))}}]),t}(),a=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this,t)).hasPrev=!1,r}return y(n,[{key:"_next",value:function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}]),n}(r.a)},bHdf:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("5+tZ"),i=n("SpAZ");function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.a)(i.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("5+tZ");function i(t,e){return Object(r.a)(t,e,1)}},bTqV:function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return m});var r=n("FKr1"),i=n("R1ws"),a=n("fXoL"),s=n("u47x"),c=["mat-button",""],h=["*"],f=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],d=Object(r.r)(Object(r.t)(Object(r.s)(function t(e){p(this,t),this._elementRef=e}))),v=function(){var t=function(t){u(n,t);var e=l(n);function n(t,r,i){var a;p(this,n),(a=e.call(this,t))._focusMonitor=r,a._animationMode=i,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var s,u=o(f);try{for(u.s();!(s=u.n()).done;){var c=s.value;a._hasHostAttributes(c)&&a._getHostElement().classList.add(c)}}catch(l){u.e(l)}finally{u.f()}return t.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return y(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),t,e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t}(),m=function(){var t=function t(){p(this,t)};return t.\u0275mod=a.Hb({type:t}),t.\u0275inj=a.Gb({factory:function(e){return new(e||t)},imports:[[r.n,r.e],r.e]}),t}()},c2HN:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return r})},cH1L:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return a});var r=n("fXoL"),i=n("ofXK"),o=new r.q("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(r.U)(i.d)}}),a=function(){var t=function(){function t(e){if(p(this,t),this.value="ltr",this.change=new r.n,e){var n=e.documentElement?e.documentElement.dir:null,i=(e.body?e.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return y(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Sb(o,8))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(o,8))},token:t,providedIn:"root"}),t}(),s=function(){var t=function t(){p(this,t)};return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)}}),t}()},cp0P:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("HDdC"),o=n("DH7j"),a=n("lJxs"),s=n("XoHu"),u=n("Cfvw");function c(){for(var t=arguments.length,e=new Array(t),n=0;n2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?i(v(n.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return i(v(n.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),n}(n("3N8a").a),o=new(function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r=r)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,o.call(a)):o.call(a)}var je=function t(e,n,r){p(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Ie(t,e,n){for(var r=Pt(t),i=0;ie){a=o-1;break}}}for(;o>16,r=e;n>0;)r=r[15],n--;return r}var Me=!0;function Ue(t){var e=Me;return Me=t,e}var He=0;function ze(t,e){var n=qe(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Be(r.data,t),Be(e,null),Be(r.blueprint,null));var i=We(t,e),o=t.injectorIndex;if(Fe(i))for(var a=Le(i),s=Ve(i,e),u=s[1].data,c=0;c<8;c++)e[o+c]=s[a+c]|u[a+c];return e[o+8]=i,o}function Be(t,e){t.push(0,0,0,0,0,0,0,0,e)}function qe(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function We(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,r=null,i=e;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Je(t,e,n){!function(t,e,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(rt)&&(r=n[rt]),null==r&&(r=n[rt]=He++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:V.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(rt)?t[rt]:void 0;return"number"==typeof e?e>=0?255&e:Xe:e}(n);if("function"==typeof o){if(!ve(e,t,r))return r&V.Host?Ge(i,n,r):Ke(e,n,r,i);try{var a=o();if(null!=a||r&V.Optional)return a;Et(n)}finally{be()}}else if("number"==typeof o){var s=null,u=qe(t,e),c=-1,l=r&V.Host?e[16][6]:null;for((-1===u||r&V.SkipSelf)&&(-1!==(c=-1===u?We(t,e):e[u+8])&&nn(r,!1)?(s=e[1],u=Le(c),e=Ve(c,e)):u=-1);-1!==u;){var h=e[1];if(en(o,u,h.data)){var f=$e(u,e,n,s,r,l);if(f!==Ze)return f}-1!==(c=e[u+8])&&nn(r,e[1].data[u+8]===l)&&en(o,u,e)?(s=h,u=Le(c),e=Ve(c,e)):u=-1}}}return Ke(e,n,r,i)}var Ze={};function Xe(){return new rn(te(),Xt())}function $e(t,e,n,r,i,o){var a=e[1],s=a.data[t+8],u=Ye(s,a,n,null==r?bt(s)&&Me:r!=a&&0!=(3&s.type),i&V.Host&&o===s);return null!==u?tn(e,a,u,s):Ze}function Ye(t,e,n,r,i){for(var o=t.providerIndexes,a=e.data,s=1048575&o,u=t.directiveStart,c=o>>20,l=i?s+c:t.directiveEnd,h=r?s:s+c;h=u&&f.type===n)return h}if(i){var d=a[u];if(d&&kt(d)&&d.type===n)return u}return null}function tn(t,e,n,r){var i=t[n],o=e.data;if(i instanceof je){var a=i;a.resolving&&function(t,e){throw new St("200","Circular dependency in DI detected for "+t)}(Ot(o[n]));var s=Ue(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?M(a.injectImpl):null;ve(t,r,V.Default);try{i=t[n]=a.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var s=At(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,o[n],e)}finally{null!==u&&M(u),Ue(s),a.resolving=!1,be()}}return i}function en(t,e,n){var r=64&t,i=32&t;return!!((128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e])&1<=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 mn(t,e){for(var n=[],r=0;r=0)return t[1|n]}function gn(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var o=r+(i-r>>1),a=t[o<<1];if(e===a)return o<<1;a>e?i=o:r=o+1}return~(i<<1)}(t,e)}var bn=un("Inject",function(t){return{token:t}}),_n=un("Optional"),kn=un("Self"),wn=un("SkipSelf"),Sn={},Cn=/\n/gm,On=_({provide:String,useValue:_}),En=void 0;function xn(t){var e=En;return En=t,e}function Tn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.Default;if(void 0===En)throw new Error("inject() must be called from an injection context");return null===En?U(t,void 0,e):En.get(t,e&V.Optional?null:void 0,e)}function An(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.Default;return(N||Tn)(E(t),e)}var jn,In=An;function Rn(t){for(var e=[],n=0;n"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();ar.hasOwnProperty(e)&&!nr.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(vr(t))}},{key:"checkClobberedElement",value:function(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}}]),t}(),fr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dr=/([^\#-~ |!])/g;function vr(t){return t.replace(/&/g,"&").replace(fr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(dr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function pr(t,e){var n=null;try{er=er||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(Nn(""),"text/html")}catch(t){return!1}}()?new Kn:new Qn(t)}(t);var r=e?String(e):"";n=er.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=er.getInertBodyElement(r)}while(r!==o);return(new hr).sanitizeChildren(mr(n)||n)}finally{if(n)for(var a=mr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function mr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var yr=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 gr(t){var e,n=(e=Xt())&&e[12];return n?n.sanitize(yr.URL,t)||"":Hn(t,"URL")?Un(t):$n(Ct(t))}function br(t){return t.ngDebugContext}function _r(t){return t.ngOriginalError}function kr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&(t[r-1][4]=i[4]);var a=pn(t,10+e);Qr(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Fr(t,e){if(!(256&e[2])){var n=e[11];Pt(n)&&n.destroyNode&&Qr(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Lr(t[1],t);for(;e;){var n=null;if(mt(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)mt(e)&&Lr(e[1],e),e=e[3];null===e&&(e=t),mt(e)&&Lr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Lr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var r=0;r=0?r[i=c]():r[i=-c].unsubscribe(),o+=2}else{var l=r[i=n[o+1]];n[o].call(l)}if(null!==r)for(var h=i+1;ho?"":i[l+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==Yr(f,c,0)||2&r&&c!==h){if(ii(r))return!1;a=!0}}}}else{if(!a&&!ii(r)&&!ii(u))return!1;if(a&&ii(u))continue;a=!1,r=u|1&r}}return ii(r)||a}function ii(t){return 0==(1&t)}function oi(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||ii(a)||(e+=ui(o,i),i=""),r=a,o=o||!ii(r);n++}return""!==i&&(e+=ui(o,i)),e}var li={};function hi(t){fi($t(),Xt(),ke()+t,oe())}function fi(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&Oe(e,i,n)}else{var o=t.preOrderHooks;null!==o&&Ee(e,o,0,n)}we(n)}function di(t,e){return t<<17|e<<2}function vi(t){return t>>17&32767}function pi(t){return 2|t}function mi(t){return(131068&t)>>2}function yi(t,e){return-131069&t|e<<2}function gi(t){return 1|t}function bi(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;r20&&fi(t,e,20,oe()),n(r,i)}finally{we(o)}}function xi(t,e,n){if(gt(e))for(var r=e.directiveEnd,i=e.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:Mt,r=e.localNames;if(null!==r)for(var i=e.index+1,o=0;o0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(r,i,a)}}function Li(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Vi(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Mi(t,e,n){if(n){if(e.exportAs)for(var r=0;r0&&Gi(n)}}function Gi(t){for(var e=Ar(t);null!==e;e=jr(e))for(var n=10;n0&&Gi(r)}var o=t[1].components;if(null!==o)for(var a=0;a0&&Gi(s)}}function Ki(t,e){var n=zt(e,t),r=n[1];!function(t,e){for(var n=e.length;n1&&void 0!==arguments[1]?arguments[1]:Sn;if(e===Sn){var n=new Error("NullInjectorError: No provider for ".concat(w(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),co=new cn("Set Injector scope."),lo={},ho={},fo=[],vo=void 0;function po(){return void 0===vo&&(vo=new uo),vo}function mo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new yo(t,n,e||po(),r)}var yo=function(){function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p(this,t),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&dn(n,function(t){return i.processProvider(t,e,n)}),dn([e],function(t){return i.processInjectorType(t,[],a)}),this.records.set(so,_o(void 0,this));var s=this.records.get(co);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:w(e))}return y(t,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V.Default;this.assertNotDestroyed();var r,i=xn(this);try{if(!(n&V.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof cn)&&j(t);o=a&&this.injectableDefInScope(a)?_o(go(t),lo):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&V.Self?po():this.parent).get(t,e=n&V.Optional&&e===Sn?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(w(t)),i)throw s;return function(t,e,n,r){var i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var i=w(e);if(Array.isArray(e))i=e.map(w).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):w(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(t.replace(Cn,"\n "))}("\n"+t.message,i,"R3InjectorError",r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{xn(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(w(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var r=this;if(!(t=E(t)))return!1;var i=R(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=R(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{dn(i.imports,function(t){r.processInjectorType(t,e,n)&&(void 0===u&&(u=[]),u.push(t))})}finally{}if(void 0!==u)for(var c=function(t){var e=u[t],n=e.ngModule,i=e.providers;dn(i,function(t){return r.processProvider(t,n,i||fo)})},l=0;l0){var n=mn(e,"?");throw new Error("Can't resolve all parameters for ".concat(w(t),": (").concat(n.join(", "),")."))}var r=function(t){var e=t&&(t[D]||t[F]);if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(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 "').concat(n,'" class.')),e}return null}(t);return null!==r?function(){return r.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function bo(t,n,i){var o,a=void 0;if(wo(t)){var s=E(t);return wt(s)||go(s)}if(ko(t))a=function(){return E(t.useValue)};else if((o=t)&&o.useFactory)a=function(){return t.useFactory.apply(t,r(Rn(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))a=function(){return An(E(t.useExisting))};else{var u=E(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return wt(u)||go(u);a=function(){return e(u,r(Rn(t.deps)))}}return a}function _o(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function ko(t){return null!==t&&"object"==typeof t&&On in t}function wo(t){return"function"==typeof t}var So=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=mo(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)},Co=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?So(t,e,""):So(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=Sn,t.NULL=new uo,t.\u0275prov=T({token:t,providedIn:"any",factory:function(){return An(so)}}),t.__NG_ELEMENT_ID__=-1,t}();function Oo(t,e){Ce(Bt(t)[1],te())}function Eo(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,r=[t];e;){var i=void 0;if(kt(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);var o=t;o.inputs=xo(t.inputs),o.declaredInputs=xo(t.declaredInputs),o.outputs=xo(t.outputs);var a=i.hostBindings;a&&jo(t,a);var s=i.viewQuery,u=i.contentQueries;if(s&&To(t,s),u&&Ao(t,u),k(t.inputs,i.inputs),k(t.declaredInputs,i.declaredInputs),k(t.outputs,i.outputs),kt(i)&&i.data.animation){var c=t.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var l=i.features;if(l)for(var h=0;h=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=De(i.hostAttrs,n=De(n,i.hostAttrs))}}(r)}function xo(t){return t===Q?{}:t===Z?[]:t}function To(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function Ao(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function jo(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}var Io=null;function Ro(){if(!Io){var t=K.Symbol;if(t&&t.iterator)Io=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:V.Default,n=Xt();return null===n?An(t,e):Qe(te(),n,E(t),e)}function Bo(t,e,n){var r=Xt();return Lo(r,ue(),e)&&Di($t(),Se(),r,t,e,r[11],n,!1),Bo}function qo(t,e,n,r,i){var o=i?"class":"style";oo(t,n,e.inputs[o],o,r)}function Wo(t,e,n,r){var i=Xt(),o=$t(),a=20+t,s=i[11],u=i[a]=Nr(s,e,Qt.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,n,r,i,o,a){var s=e.consts,u=ki(e,t,2,i,Jt(s,o));return Pi(e,n,u,Jt(s,a)),null!==u.attrs&&ao(u,u.attrs,!1),null!==u.mergedAttrs&&ao(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(a,o,i,0,e,n,r):o.data[a];ne(c,!0);var l=c.mergedAttrs;null!==l&&Ie(s,u,l);var h=c.classes;null!==h&&$r(s,u,h);var f=c.styles;null!==f&&Xr(s,u,f),64!=(64&c.flags)&&Wr(o,i,u,c),0===Qt.lFrame.elementDepthCount&&Sr(u,i),Qt.lFrame.elementDepthCount++,_t(c)&&(Ti(o,i,c),xi(o,c,i)),null!==r&&Ai(i,c)}function Jo(){var t=te();re()?ie():ne(t=t.parent,!1);var e=t;Qt.lFrame.elementDepthCount--;var n=$t();n.firstCreatePass&&(Ce(n,t),gt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&qo(n,e,Xt(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&qo(n,e,Xt(),e.stylesWithoutHost,!1)}function Go(t,e,n,r){Wo(t,e,n,r),Jo()}function Ko(t,e,n){var r=Xt(),i=$t(),o=t+20,a=i.firstCreatePass?function(t,e,n,r,i){var o=e.consts,a=Jt(o,r),s=ki(e,t,8,"ng-container",a);return null!==a&&ao(s,a,!0),Pi(e,n,s,Jt(o,i)),null!==e.queries&&e.queries.elementStart(e,s),s}(o,i,r,e,n):i.data[o];ne(a,!0);var s=r[o]=r[11].createComment("");Wr(i,r,s,a),Sr(s,r),_t(a)&&(Ti(i,r,a),xi(i,a,r)),null!=n&&Ai(r,a)}function Qo(){var t=te(),e=$t();re()?ie():ne(t=t.parent,!1),e.firstCreatePass&&(Ce(e,t),gt(t)&&e.queries.elementEnd(t))}function Zo(){return Xt()}function Xo(t){return!!t&&"function"==typeof t.then}function $o(t){return!!t&&"function"==typeof t.subscribe}function Yo(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Xt(),o=$t(),a=te();return ea(o,i,i[11],a,t,e,n,r),Yo}function ta(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=te(),o=Xt(),a=$t();return ea(a,o,ro(le(a.data),i,o),i,t,e,n,r),ta}function ea(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=_t(r),c=t.firstCreatePass&&no(t),l=eo(e),h=!0;if(3&r.type){var f=Mt(r,e),d=s?s(f):Q,v=d.target||f,p=l.length,m=s?function(t){return s(Lt(t[r.index])).target}:r.index;if(Pt(n)){var y=null;if(!s&&u&&(y=function(t,e,n,r){var i=t.cleanup;if(null!=i)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(t,e,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1;else{o=ra(r,e,o,!1);var g=n.listen(d.name||v,i,o);l.push(o,g),c&&c.push(i,m,p,p+1)}}else o=ra(r,e,o,!0),v.addEventListener(i,o,a),l.push(o),c&&c.push(i,m,p,a)}else o=ra(r,e,o,!1);var b,_=r.outputs;if(h&&null!==_&&(b=_[i])){var k=b.length;if(k)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(Qt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Qt.lFrame.contextLView))[8]}(t)}function oa(t,e){for(var n=null,r=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=Xt(),i=$t(),o=ki(i,20+t,16,null,n||null);null===o.projection&&(o.projection=e),ie(),64!=(64&o.flags)&&function(t,e,n){Zr(e[11],0,e,n,Vr(t,n,e),Br(n.parent||e[6],n,e))}(i,r,o)}function ua(t,e,n){return ca(t,"",e,"",n),ua}function ca(t,e,n,r,i){var o=Xt(),a=Mo(o,e,n,r);return a!==li&&Di($t(),Se(),o,t,a,o[11],i,!1),ca}var la=[];function ha(t,e,n,r,i){for(var o=t[n+1],a=null===e,s=r?vi(o):mi(o),u=!1;0!==s&&(!1===u||a);){var c=t[s+1];fa(t[s],e)&&(u=!0,t[s+1]=r?gi(c):pi(c)),s=r?vi(c):mi(c)}u&&(t[n+1]=r?pi(o):gi(o))}function fa(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&gn(t,e)>=0}function da(t,e,n){return pa(t,e,n,!1),da}function va(t,e){return pa(t,e,null,!0),va}function pa(t,e,n,r){var i,o,a=Xt(),s=$t(),u=(i=Qt.lFrame,o=i.bindingIndex,i.bindingIndex=i.bindingIndex+2,o);s.firstUpdatePass&&function(t,e,n,r){var i=t.data;if(null===i[n+1]){var o=i[ke()],a=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(o,r)&&null===e&&!a&&(e=!1),e=function(t,e,n,r){var i=le(t),o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=ya(n=ma(null,t,e,n,r),e.attrs,r),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==i)if(n=ma(i,t,e,n,r),null===o){var s=function(t,e,n){var r=n?e.classBindings:e.styleBindings;if(0!==mi(r))return t[vi(r)]}(t,e,r);void 0!==s&&Array.isArray(s)&&function(t,e,n,r){t[vi(n?e.classBindings:e.styleBindings)]=r}(t,e,r,s=ya(s=ma(null,t,e,s[1],r),e.attrs,r))}else o=function(t,e,n){for(var r=void 0,i=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(l=!0)}else c=n;if(i)if(0!==u){var f=vi(t[s+1]);t[r+1]=di(f,s),0!==f&&(t[f+1]=yi(t[f+1],r)),t[s+1]=131071&t[s+1]|r<<17}else t[r+1]=di(s,0),0!==s&&(t[s+1]=yi(t[s+1],r)),s=r;else t[r+1]=di(u,0),0===s?s=r:t[u+1]=yi(t[u+1],r),u=r;l&&(t[r+1]=pi(t[r+1])),ha(t,c,r,!0),ha(t,c,r,!1),function(t,e,n,r,i){var o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&gn(o,e)>=0&&(n[r+1]=gi(n[r+1]))}(e,c,t,r,o),a=di(s,u),o?e.classBindings=a:e.styleBindings=a}(i,o,e,n,a,r)}}(s,t,u,r),e!==li&&Lo(a,u,e)&&function(t,e,n,r,i,o,a,s){if(3&e.type){var u=t.data,c=u[s+1];ba(1==(1&c)?ga(u,e,n,i,mi(c),a):void 0)||(ba(o)||2==(2&c)&&(o=ga(u,null,n,i,s,a)),function(t,e,n,r,i){var o=Pt(t);if(e)i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{var a=-1===r.indexOf("-")?void 0:Er.DashCase;if(null==i)o?t.removeStyle(n,r,a):n.style.removeProperty(r);else{var s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),a|=Er.Important),o?t.setStyle(n,r,i,a):n.style.setProperty(r,i,s?"important":"")}}}(r,a,Vt(ke(),n),i,o))}}(s,s.data[ke()],a,a[11],t,a[u+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=w(Un(t)))),t}(e,n),r,u)}function ma(t,e,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s=0?r[1|a]=o:function(t,e,n,r){var i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(r,a=~a,i,o))}return void 0===t?null:t}function ga(t,e,n,r,i,o){for(var a=null===e,s=void 0;i>0;){var u=t[i],c=Array.isArray(u),l=c?u[1]:u,h=null===l,f=n[i+1];f===li&&(f=h?la:void 0);var d=h?yn(f,r):l===r?f:void 0;if(c&&!ba(d)&&(d=yn(u,r)),ba(d)&&(s=d,a))return s;var v=t[i+1];i=a?vi(v):mi(v)}if(null!==e){var p=o?e.residualClasses:e.residualStyles;null!=p&&(s=yn(p,r))}return s}function ba(t){return void 0!==t}function _a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Xt(),r=$t(),i=t+20,o=r.firstCreatePass?ki(r,i,1,e,null):r.data[i],a=n[i]=function(t,e){return Pt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Wr(r,n,a,o),ne(o,!1)}function ka(t){return wa("",t,""),ka}function wa(t,e,n){var r=Xt(),i=Mo(r,t,e,n);return i!==li&&function(t,e,n){var r=Vt(e,t);!function(t,e,n){Pt(t)?t.setValue(e,n):e.textContent=n}(t[11],r,n)}(r,ke(),i),wa}function Sa(t,e,n){var r=Xt();return Lo(r,ue(),e)&&Di($t(),Se(),r,t,e,r[11],n,!0),Sa}function Ca(t,e,n){var r=Xt();if(Lo(r,ue(),e)){var i=$t(),o=Se();Di(i,o,r,t,e,ro(le(i.data),o,r),n,!0)}return Ca}var Oa=void 0,Ea=["en",[["a","p"],["AM","PM"],Oa],[["AM","PM"],Oa,Oa],[["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"]],Oa,[["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"]],Oa,[["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}",Oa,"{1} 'at' {0}",Oa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],xa={};function Ta(t,e,n){"string"!=typeof e&&(n=e,e=t[Na.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),xa[e]=t,n&&(xa[e][Na.ExtraData]=n)}function Aa(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=Ra(e);if(n)return n;var r=e.split("-")[0];if(n=Ra(r))return n;if("en"===r)return Ea;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function ja(t){return Aa(t)[Na.CurrencyCode]||null}function Ia(t){return Aa(t)[Na.PluralCase]}function Ra(t){return t in xa||(xa[t]=K.ng&&K.ng.common&&K.ng.common.locales&&K.ng.common.locales[t]),xa[t]}var Na=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}({});function Da(t){var e;null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function Pa(t,e,n,r,i){if(t=E(t),Array.isArray(t))for(var o=0;o>20;if(wo(t)||!t.multi){var v=new je(c,i,zo),p=Va(u,e,i?h:h+d,f);-1===p?(Je(ze(l,s),a,u),Fa(a,t,e.length),e.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(v),s.push(v)):(n[p]=v,s[p]=v)}else{var m=Va(u,e,h+d,f),y=Va(u,e,h,h+d),g=m>=0&&n[m],b=y>=0&&n[y];if(i&&!b||!i&&!g){Je(ze(l,s),a,u);var _=function(t,e,n,r,i){var o=new je(t,n,zo);return o.multi=[],o.index=e,o.componentProviders=0,La(o,i,r&&!n),o}(i?Ua:Ma,n.length,i,r,c);!i&&b&&(n[y].providerFactory=_),Fa(a,t,e.length,0),e.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(_),s.push(_)}else Fa(a,t,m>-1?m:y,La(n[i?y:m],c,!i&&r));!i&&r&&b&&n[y].componentProviders++}}}function Fa(t,e,n,r){var i=wo(e);if(i||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function La(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Va(t,e,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(t,e,n){var r=$t();if(r.firstCreatePass){var i=kt(t);Pa(n,r.data,r.blueprint,i,!0),Pa(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}}var Ba=function t(){p(this,t)},qa=function(){function t(){p(this,t)}return y(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(w(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),Wa=function(){var t=function t(){p(this,t)};return t.NULL=new qa,t}();function Ja(){}function Ga(t,e){return new Qa(Mt(t,e))}var Ka=function(){return Ga(te(),Xt())},Qa=function(){var t=function t(e){p(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Ka,t}(),Za=function t(){p(this,t)},Xa=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=function(){return $a()},t}(),$a=function(){var t=Xt(),e=zt(te().index,t);return function(t){return t[11]}(mt(e)?e:t)},Ya=function(){var t=function t(){p(this,t)};return t.\u0275prov=T({token:t,providedIn:"root",factory:function(){return null}}),t}(),ts=function t(e){p(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},es=new ts("11.0.5"),ns=function(){function t(){p(this,t)}return y(t,[{key:"supports",value:function(t){return Do(t)}},{key:"create",value:function(t){return new is(t)}}]),t}(),rs=function(t,e){return e},is=function(){function t(e){p(this,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=e||rs}return y(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=e[n.index];if(null!==a&&i.push(Lt(a)),yt(a))for(var s=10;s-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Fr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Ri(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){Zi(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Xi(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){ae(!0);try{Xi(t,e,n)}finally{ae(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,Qr(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}},{key:"rootNodes",get:function(){var t=this._lView,e=t[1];return vs(e,t,e.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),t}(),ms=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this,t))._view=t,r}return y(n,[{key:"detectChanges",value:function(){$i(this._view)}},{key:"checkNoChanges",value:function(){!function(t){ae(!0);try{$i(t)}finally{ae(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(ps),ys=bs,gs=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=ys,t.__ChangeDetectorRef__=!0,t}();function bs(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,e,n){if(!n&&bt(t)){var r=zt(t.index,e);return new ps(r,r)}return 47&t.type?new ps(e[16],e):null}(te(),Xt(),t)}var _s=[new cs],ks=new fs([new ns]),ws=new ds(_s),Ss=function(){return Es(te(),Xt())},Cs=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=Ss,t}(),Os=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this))._declarationLView=t,o._declarationTContainer=r,o.elementRef=i,o}return y(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=_i(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Si(e,n,t),new ps(n)}}]),n}(Cs);function Es(t,e){return 4&t.type?new Os(e,t,Ga(t,e)):null}var xs=function t(){p(this,t)},Ts=function t(){p(this,t)},As=function(){return Ds(te(),Xt())},js=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=As,t}(),Is=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this))._lContainer=t,o._hostTNode=r,o._hostLView=i,o}return y(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=Rs(this._lContainer);return null!==e&&e[t]||null}},{key:"createEmbeddedView",value:function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r}},{key:"createComponent",value:function(t,e,n,r,i){var o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){var a=o.get(xs,null);a&&(i=a)}var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var r=t._lView,i=r[1];if(yt(r[3])){var o=this.indexOf(t);if(-1!==o)this.detach(o);else{var a=r[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(t))}}var u=this._adjustIndex(e),c=this._lContainer;!function(t,e,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"element",get:function(){return Ga(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new rn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=We(this._hostTNode,this._hostLView);if(Fe(t)){var e=Ve(t,this._hostLView),n=Le(t);return new rn(e[1].data[n+8],e)}return new rn(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(js);function Rs(t){return t[8]}function Ns(t){return t[8]||(t[8]=[])}function Ds(t,e){var n,r=e[t.index];if(yt(r))n=r;else{var i;if(8&t.type)i=Lt(r);else{var o=e[11];i=o.createComment("");var a=Mt(t,e);Mr(o,zr(o,a),i,function(t,e){return Pt(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=n=Wi(r,e,i,t),Qi(e,n)}return new Is(n,t,e)}var Ps={},Fs=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this)).ngModule=t,r}return y(n,[{key:"resolveComponentFactory",value:function(t){var e=vt(t);return new Ms(e,this.ngModule)}}]),n}(Wa);function Ls(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Vs=new cn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Cr}}),Ms=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).componentDef=t,i.ngModule=r,i.componentType=t.type,i.selector=t.selectors.map(ci).join(","),i.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],i.isBoundToModule=!!r,i}return y(n,[{key:"create",value:function(t,e,n,r){var i,o,a=(r=r||this.ngModule)?function(t,e){return{get:function(n,r,i){var o=t.get(n,Ps,i);return o!==Ps||r===Ps?o:e.get(n,r,i)}}}(t,r.injector):t,s=a.get(Za,Ft),u=a.get(Ya,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(Pt(t))return t.selectRootElement(e,n===B.ShadowDom);var r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(c,n,this.componentDef.encapsulation):Nr(s.createRenderer(null,this.componentDef),l,function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Cr,clean:to,playerHandler:null,flags:0},v=Ii(0,null,null,1,0,null,null,null,null,null),p=_i(null,v,d,f,null,null,s,c,u,a);pe(p);try{var m=function(t,e,n,r,i,o){var a=n[1];n[20]=t;var s=ki(a,20,2,"#host",null),u=s.mergedAttrs=e.hostAttrs;null!==u&&(ao(s,u,!0),null!==t&&(Ie(i,t,u),null!==s.classes&&$r(i,t,s.classes),null!==s.styles&&Xr(i,t,s.styles)));var c=r.createRenderer(t,e),l=_i(n,ji(e),null,e.onPush?64:16,n[20],s,r,c,null,null);return a.firstCreatePass&&(Je(ze(s,n),a,e.type),Vi(a,s),Ui(s,n.length,1)),Qi(n,l),n[20]=l}(h,this.componentDef,p,s,c);if(h)if(n)Ie(c,h,["ng-version",es.full]);else{var y=function(t){for(var e=[],n=[],r=1,i=2;r0&&$r(c,h,b.join(" "))}if(o=Ut(v,20),void 0!==e)for(var _=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Co.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V.Default;return t===Co||t===xs||t===so?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(xs),Bs=function(t){u(n,t);var e=l(n);function n(t){var r,i,a;return p(this,n),(r=e.call(this)).moduleType=t,null!==pt(t)&&(i=t,a=new Set,function t(e){var n=pt(e,!0),r=n.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(w(e)," vs ").concat(w(e.name)))}(r,Hs.get(r),e),Hs.set(r,e));var i,s=o(Or(n.imports));try{for(s.s();!(i=s.n()).done;){var u=i.value;a.has(u)||(a.add(u),t(u))}}catch(c){s.e(c)}finally{s.f()}}(i)),r}return y(n,[{key:"create",value:function(t){return new zs(this.moduleType,t)}}]),n}(Ts);function qs(t,e,n){var r=se()+t,i=Xt();return i[r]===li?Fo(i,r,n?e.call(n):e()):function(t,e){return t[e]}(i,r)}function Ws(t,e,n,r){return Ks(Xt(),se(),t,e,n,r)}function Js(t,e,n,r,i){return Qs(Xt(),se(),t,e,n,r,i)}function Gs(t,e){var n=t[e];return n===li?void 0:n}function Ks(t,e,n,r,i,o){var a=e+n;return Lo(t,a,i)?Fo(t,a+1,o?r.call(o,i):r(i)):Gs(t,a+1)}function Qs(t,e,n,r,i,o,a){var s=e+n;return function(t,e,n,r){var i=Lo(t,e,n);return Lo(t,e+1,r)||i}(t,s,i,o)?Fo(t,s+2,a?r.call(a,i,o):r(i,o)):Gs(t,s+2)}function Zs(t,e){var n,r=$t(),i=t+20;r.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var r=e[n];if(t===r.name)return r}throw new St("302","The pipe '".concat(t,"' could not be found!"))}(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=wt(n.type)),a=M(zo);try{var s=Ue(!1),u=o();return Ue(s),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(r,Xt(),i,u),u}finally{M(a)}}function Xs(t,e,n){var r=t+20,i=Xt(),o=Ht(i,r);return tu(i,Ys(i,r)?Ks(i,se(),e,o.transform,n,o):o.transform(n))}function $s(t,e,n,r){var i=t+20,o=Xt(),a=Ht(o,i);return tu(o,Ys(o,i)?Qs(o,se(),e,a.transform,n,r,a):a.transform(n,r))}function Ys(t,e){return t[1].data[e].pure}function tu(t,e){return No.isWrapped(e)&&(e=No.unwrap(e),t[Qt.lFrame.bindingIndex]=li),e}var eu=function(t){u(n,t);var e=l(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p(this,n),(t=e.call(this)).__isAsync=r,t}return y(n,[{key:"emit",value:function(t){i(v(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,r){var o,a=function(t){return null},s=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(a=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},e&&(a=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=i(v(n.prototype),"subscribe",this).call(this,o,a,s);return t instanceof d.a&&t.add(u),u}}]),n}(h.a);function nu(){return this._results[Ro()]()}var ru=function(){function t(){p(this,t),this.dirty=!0,this._results=[],this.changes=new eu,this.length=0;var e=Ro(),n=t.prototype;n[e]||(n[e]=nu)}return y(t,[{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t){this._results=fn(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),t}(),iu=function(){function t(e){p(this,t),this.queryList=e,this.matches=null}return y(t,[{key:"clone",value:function(){return new t(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),t}(),ou=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,t),this.queries=e}return y(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;p(this,t),this.predicate=e,this.descendants=n,this.isStatic=r,this.read=i},su=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,t),this.queries=e}return y(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;p(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return y(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(a[s/2]);else{for(var c=o[s+1],l=e[-u],h=10;h0&&void 0!==arguments[0]?arguments[0]:V.Default,e=bs(!0);if(null!=e||t&V.Optional)return e;Et("ChangeDetectorRef")}var Ou=new cn("Application Initializer"),Eu=function(){var t=function(){function t(e){var n=this;p(this,t),this.appInits=e,this.resolve=Ja,this.reject=Ja,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,e){n.resolve=t,n.reject=e})}return y(t,[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(An(Ju))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}(),tc=function(){var t=function(){function t(){p(this,t),this._applications=new Map,rc.addToWindow(this)}return y(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return rc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function ec(t){rc=t}var nc,rc=new(function(){function t(){p(this,t)}return y(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),ic=!0,oc=!1;function ac(){return oc=!0,ic}function sc(){if(oc)throw new Error("Cannot enable prod mode after platform setup.");ic=!1}var uc=new cn("AllowMultipleToken"),cc=function t(e,n){p(this,t),this.name=e,this.token=n};function lc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+e,i=new cn(r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=hc();if(!o||o.injector.get(uc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0},{provide:co,useValue:"platform"});!function(t){if(nc&&!nc.destroyed&&!nc.injector.get(uc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");nc=t.get(fc);var e=t.get(ju,null);e&&e.forEach(function(t){return t()})}(Co.create({providers:a,name:r}))}return function(t){var e=hc();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}(i)}}function hc(){return nc&&!nc.destroyed?nc:null}var fc=function(){var t=function(){function t(e){p(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return y(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,r,i=this,o=(n=e?e.ngZone:void 0,r=e&&e.ngZoneEventCoalescing||!1,"noop"===n?new $u:("zone.js"===n?void 0:n)||new Ju({enableLongStackTrace:ac(),shouldCoalesceEventChangeDetection:r})),a=[{provide:Ju,useValue:o}];return o.run(function(){var e=Co.create({providers:a,parent:i.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(wr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){r.handleError(t)}});n.onDestroy(function(){pc(i._modules,n),t.unsubscribe()})}),function(t,e,r){try{var o=((a=n.injector.get(Eu)).runInitializers(),a.donePromise.then(function(){return Da(n.injector.get(Du,"en-US")||"en-US"),i._moduleDoBootstrap(n),n}));return Xo(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(r,o)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=dc({},n);return function(t,e,n){var r=new Bs(n);return Promise.resolve(r)}(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,r)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(vc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(w(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)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(An(Co))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function dc(t,e){return Array.isArray(e)?e.reduce(dc,t):Object.assign(Object.assign({},t),e)}var vc=function(){var t=function(){function t(e,n,r,i,o,a){var s=this;p(this,t),this._zone=e,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new m.a(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),c=new m.a(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){Ju.assertNotInAngularZone(),Wu(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Ju.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(g.a)(u,c.pipe(Object(b.a)()))}return y(t,[{key:"bootstrap",value:function(t,e){var n,r=this;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.");n=t instanceof Ba?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(xs),o=n.create(Co.NULL,[],e||n.selector,i),a=o.location.nativeElement,s=o.injector.get(Yu,null),u=s&&o.injector.get(tc);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){r.detachView(o.hostView),pc(r.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),ac()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=o(this._views);try{for(n.s();!(e=n.n()).done;){e.value.detectChanges()}}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;pc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ru,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(An(Ju),An(Nu),An(Co),An(wr),An(Wa),An(Eu))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function pc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var mc=function t(){p(this,t)},yc=function t(){p(this,t)},gc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},bc=function(){var t=function(){function t(e,n){p(this,t),this._compiler=e,this._config=n||gc}return y(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,r=n(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),c("crnd")(i).then(function(t){return t[o]}).then(function(t){return _c(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=n(t.split("#"),2),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),c("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return _c(t,r,i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(An(Bu),An(yc,8))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function _c(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var kc=function(t){return null},wc=lc(null,"core",[{provide:Iu,useValue:"unknown"},{provide:fc,deps:[Co]},{provide:tc,deps:[]},{provide:Nu,deps:[]}]),Sc=[{provide:vc,useClass:vc,deps:[Ju,Nu,Co,wr,Wa,Eu]},{provide:Vs,deps:[Ju],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Eu,useClass:Eu,deps:[[new _n,Ou]]},{provide:Bu,useClass:Bu,deps:[]},Tu,{provide:fs,useFactory:function(){return ks},deps:[]},{provide:ds,useFactory:function(){return ws},deps:[]},{provide:Du,useFactory:function(t){return Da(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new bn(Du),new _n,new wn]]},{provide:Pu,useValue:"USD"}],Cc=function(){var t=function t(e){p(this,t)};return t.\u0275mod=ct({type:t}),t.\u0275inj=A({factory:function(e){return new(e||t)(An(vc))},providers:Sc}),t}()},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("2fFW"),i=n("NJ4a"),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},hCJx:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return c}),n.d(e,"c",function(){return h});var r=n("2Vo4"),i=n("lJxs"),o=n("fXoL"),a=n("P3kg"),s=function(){function t(){p(this,t)}return y(t,[{key:"hasRoleAsync",value:function(t){var e=this;return this.roles$.pipe(Object(i.a)(function(n){return e._hasRole(t,n)}))}},{key:"hasAnyRoleAsync",value:function(t){var e=this;return this.roles$.pipe(Object(i.a)(function(n){return e._hasAnyRole(t,n)}))}},{key:"hasRolesAsync",value:function(t){var e=this;return this.roles$.pipe(Object(i.a)(function(n){return e._hasRoles(t,n)}))}},{key:"hasRole",value:function(t){return this._hasRole(t)}},{key:"hasAnyRole",value:function(t){return this._hasAnyRole(t)}},{key:"hasRoles",value:function(t){return this._hasRoles(t)}},{key:"_hasRole",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getRoles();return!(!e||!t)&&e.indexOf(t)>=0}},{key:"_hasAnyRole",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getRoles();return!(!e||!t)&&e.filter(function(e){return t.indexOf(e)>=0}).length>0}},{key:"_hasRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getRoles();return!(!e||!t)&&e.filter(function(e){return t.indexOf(e)>=0}).length===t.length}}]),t}(),c=function(){var t=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this)).subject=t,r.roles$=r.subject.authorities$,r}return y(n,[{key:"getRoles",value:function(){return this.subject.getAuthorities()}}]),n}(s);return t.\u0275fac=function(e){return new(e||t)(o.Sb(a.b))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),h=function(){var t=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.call(this)).roles=new r.a([]),t.roles$=t.roles.asObservable(),t}return y(n,[{key:"ngOnDestroy",value:function(){this.roles.complete()}},{key:"getRoles",value:function(){return this.roles.getValue()}},{key:"update",value:function(t){this.roles.next(t)}}]),n}(s);return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}()},iVJa:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("d8a0"),i=function(t){u(n,t);var e=l(n);function n(t){var i;return p(this,n),(i=e.call(this,r.b.IMPLICIT,t)).loginUrl=t&&t.loginUrl||null,i.responseType=t&&t.responseType||"token",i.preventClearHashAfterLogin=t&&t.preventClearHashAfterLogin||!1,i}return n}(r.a)},itXk:function(t,e,n){"use strict";n.d(e,"b",function(){return m}),n.d(e,"a",function(){return g});var r=n("z+Ro"),i=n("DH7j"),o=n("7o/Q"),a=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"notifyNext",value:function(t,e,n,r,i){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(o.a),s=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this)).parent=t,o.outerValue=r,o.outerIndex=i,o.index=0,o}return y(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(o.a),c=n("SeVD"),h=n("HDdC");function f(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new s(t,n,r);if(!i.closed)return e instanceof h.a?e.subscribe(i):Object(c.a)(e)(i)}var d=n("yCtX"),v={};function m(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1])||arguments[1],r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},a.ob.getAllAngularTestabilities=function(){return t.getAllTestabilities()},a.ob.getAllAngularRootElements=function(){return t.getAllRootElements()},a.ob.frameworkStabilizers||(a.ob.frameworkStabilizers=[]),a.ob.frameworkStabilizers.push(function(t){var e=a.ob.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?Object(o.u)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){Object(a.X)(new t)}}]),t}(),m=new a.q("EventManagerPlugins"),g=function(){var t=function(){function t(e,n){var r=this;p(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=r}),this._plugins=e.slice().reverse()}return y(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&N.hasOwnProperty(e)&&(e=N[e]))}return R[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),I.forEach(function(r){r!=n&&(0,D[r])(t)&&(e+=r+".")}),e+=n}},{key:"eventCallback",value:function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(b);return t.\u0275fac=function(e){return new(e||t)(a.Sb(o.d))},t.\u0275prov=a.Fb({token:t,factory:t.\u0275fac}),t}(),F=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(a.Fb)({factory:function(){return Object(a.Sb)(V)},token:t,providedIn:"root"}),t}();function L(t){return new V(t.get(o.d))}var V=function(){var t=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this))._doc=t,r}return y(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case a.I.NONE:return e;case a.I.HTML:return Object(a.db)(e,"HTML")?Object(a.vb)(e):Object(a.bb)(this._doc,String(e));case a.I.STYLE:return Object(a.db)(e,"Style")?Object(a.vb)(e):e;case a.I.SCRIPT:if(Object(a.db)(e,"Script"))return Object(a.vb)(e);throw new Error("unsafe value used in a script context");case a.I.URL:return Object(a.nb)(e),Object(a.db)(e,"URL")?Object(a.vb)(e):Object(a.cb)(String(e));case a.I.RESOURCE_URL:if(Object(a.db)(e,"ResourceURL"))return Object(a.vb)(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 ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return Object(a.eb)(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return Object(a.hb)(t)}},{key:"bypassSecurityTrustScript",value:function(t){return Object(a.gb)(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return Object(a.ib)(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return Object(a.fb)(t)}}]),n}(F);return t.\u0275fac=function(e){return new(e||t)(a.Sb(o.d))},t.\u0275prov=Object(a.Fb)({factory:function(){return L(Object(a.Sb)(a.o))},token:t,providedIn:"root"}),t}(),M=[{provide:a.B,useValue:o.t},{provide:a.C,useValue:function(){s.makeCurrent(),d.init()},multi:!0},{provide:o.d,useFactory:function(){return Object(a.tb)(document),document},deps:[]}],U=Object(a.R)(a.W,"browser",M),H=[[],{provide:a.Z,useValue:"root"},{provide:a.m,useFactory:function(){return new a.m},deps:[]},{provide:m,useClass:j,multi:!0,deps:[o.d,a.z,a.B]},{provide:m,useClass:P,multi:!0,deps:[o.d]},[],{provide:E,useClass:E,deps:[g,k,a.c]},{provide:a.F,useExisting:E},{provide:_,useExisting:k},{provide:k,useClass:k,deps:[o.d]},{provide:a.M,useClass:a.M,deps:[a.z]},{provide:g,useClass:g,deps:[m,a.z]},[]],z=function(){var t=function(){function t(e){if(p(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return y(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:a.c,useValue:e.appId},{provide:h,useExisting:a.c},f]}}}]),t}();return t.\u0275mod=a.Hb({type:t}),t.\u0275inj=a.Gb({factory:function(e){return new(e||t)(a.Sb(t,12))},providers:H,imports:[o.c,a.f]}),t}();"undefined"!=typeof window&&window},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},kiQV:function(t){t.exports=JSON.parse('{"name":"ngx-security","version":"11.0.0","scripts":{"ng":"ng","start":"ng serve","build":"ng build --prod --output-path ./docs --base-href /ngx-security/","test":"ng test","lint":"ng lint","e2e":"ng e2e","build:core":"ng build core --prod","build:roles":"ng build roles --prod","build:permissions":"ng build permissions --prod","build:auth":"ng build auth --prod","publish:core":"npm publish ./dist/core --access public","publish:roles":"npm publish ./dist/roles --access public","publish:permissions":"npm publish ./dist/permissions --access public","publish:auth":"npm publish ./dist/auth --access public","build:lib":"npm run build:core && npm run build:roles && npm run build:permissions && npm run build:auth","update:docs":"npm run build && git add -A docs/ && git commit -m \'Update docs app\'","release":"ngitflow release start && npm run update:docs && ngitflow release finish","release:major":"ngitflow release start major && npm run update:docs && ngitflow release finish"},"private":true,"dependencies":{"@angular/animations":"^11.0.5","@angular/cdk":"^11.0.3","@angular/common":"^11.0.5","@angular/compiler":"^11.0.5","@angular/core":"^11.0.5","@angular/forms":"^11.0.5","@angular/material":"^11.0.3","@angular/platform-browser":"^11.0.5","@angular/platform-browser-dynamic":"^11.0.5","@angular/router":"^11.0.5","core-js":"^3.8.1","highlight.js":"^10.4.1","material-design-icons":"^3.0.1","ngx-highlightjs":"^4.1.3","rxjs":"^6.6.3","shiro-trie":"^0.4.9","tslib":"^2.0.0","zone.js":"^0.10.3"},"devDependencies":{"@angular-devkit/build-angular":"^0.1100.5","@angular-devkit/core":"^11.0.5","@angular/cli":"^11.0.5","@angular/compiler-cli":"^11.0.5","@angular/language-service":"^11.0.5","@types/jasmine":"~3.6.0","@types/jasminewd2":"^2.0.8","@types/node":"^14.14.14","codelyzer":"^6.0.0","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"~5.1.0","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","ng-packagr":"^11.0.3","ngitflow":"^2.0.0","protractor":"~7.0.0","ts-node":"~9.0.0","tslint":"^6.1.3","typescript":"^4.0.5"}}')},lJxs:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("7o/Q");function i(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 o(t,e))}}var o=function(){function t(e,n){p(this,t),this.project=e,this.thisArg=n}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))}}]),t}(),a=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t)).project=r,o.count=0,o.thisArg=i||f(o),o}return y(n,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(r.a)},n6bG:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",function(){return r})},nLfN:function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return f}),n.d(e,"c",function(){return b}),n.d(e,"d",function(){return g}),n.d(e,"e",function(){return v}),n.d(e,"f",function(){return m}),n.d(e,"g",function(){return y});var r,i=n("fXoL"),o=n("ofXK");try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_){r=!1}var a,s,u,c,l,h=function(){var t=function t(e){p(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(o.r)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!r)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.B))},t.\u0275prov=Object(i.Fb)({factory:function(){return new t(Object(i.Sb)(i.B))},token:t,providedIn:"root"}),t}(),f=function(){var t=function t(){p(this,t)};return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)}}),t}(),d=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function v(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(d);var t=document.createElement("input");return a=new Set(d.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function m(t){return function(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return s=!0}}))}finally{s=s||!1}return s}()?t:!!t.capture}function y(){if(null==c)if("object"==typeof document&&document||(c=!1),"scrollBehavior"in document.documentElement.style)c=!0;else{var t=Element.prototype.scrollTo;c=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return c}function g(){if("object"!=typeof document||!document)return 0;if(null==u){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",t.appendChild(n),document.body.appendChild(t),u=0,0===t.scrollLeft&&(t.scrollLeft=1,u=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return u}function b(t){if(function(){if(null==l){var t="undefined"!=typeof document?document.head:null;l=!(!t||!t.createShadowRoot&&!t.attachShadow)}return l}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},nYR2:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("7o/Q"),i=n("quSY");function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(e){p(this,t),this.callback=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.callback))}}]),t}(),s=function(t){u(n,t);var e=l(n);function n(t,r){var o;return p(this,n),(o=e.call(this,t)).add(new i.a(r)),o}return n}(r.a)},ngFo:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("tk/3"),i=n("HDdC"),o=n("RJIb"),a=n("og18"),s=n("xDj2"),u=n("Q8NU"),c=n("VWR/"),l=n("fXoL"),h=function(){var t=function(){function t(e,n){p(this,t),this.tokens=e,this.options=n}return y(t,[{key:"initialize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new i.a(function(n){if(t.tokens.hasValidAccessToken())return n.next({message:"Access is still valid"}),void n.complete();var r=s.a.getCodePartsFromUrl(window.location.search),i=r.code,o=r.state,a=r.error;if(!t.options.preventClearHashAfterLogin){var c=location.href.replace(/[&?]code=[^&$]*/,"").replace(/[&?]scope=[^&$]*/,"").replace(/[&?]state=[^&$]*/,"").replace(/[&?]session_state=[^&$]*/,"");history.replaceState(null,window.name,c)}if(!a)return i||o||!e?void(o?o===u.a.get("nonce")?i?t.getTokenFromCode(i).subscribe(function(){n.next({message:"Tokens saved"}),n.complete()},n.error):n.error({message:"Code is missing"}):n.error({message:"Nonce is not valid"}):n.error({message:"Nonce is missing"})):(n.next({message:"No code and authenticate automatically is set to true - you will be redirected"}),n.complete(),void t.authenticate());n.error({message:a})})}},{key:"authenticate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.location.href,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new r.e;document.location.href=this.loginUrl(t,e,n)}},{key:"loginUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new r.e,i=c.a.createAndSaveNonce();return n=(n||new r.e).set("client_id",this.options.clientId).set("state",i).set("response_type",this.options.responseType).set("redirect_uri",t),this.options.scope&&(n=n.set("scope",this.options.scope)),this.options.resource&&(n=n.set("resource",this.options.resource)),e&&(n=n.set("prompt","none")),"".concat(this.options.loginUrl,"?").concat(n.toString())}},{key:"clear",value:function(){this.tokens.clear()}},{key:"getTokenFromCode",value:function(t){var e=new r.e;if(!this.options.disablePKCE){var n=u.a.get("PKCI_verifier");n?e=e.set("code_verifier",n):console.warn("No PKCI verifier found in storage!")}return this.tokens.authenticateWithAuthorizationCode(t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Sb(o.a),l.Sb(a.a))},t.\u0275prov=l.Fb({token:t,factory:t.\u0275fac}),t}()},ngJS:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return function(e){for(var n=0,r=t.length;n0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+C(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+C(r));this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+C(r));this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(O);return t.\u0275fac=function(e){return new(e||t)(i.Sb(v),i.Sb(x,8))},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t}(),A=function(){var t=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this))._platformLocation=t,i._baseHref="",null!=r&&(i._baseHref=r),i}return y(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=w(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+C(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+C(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(O);return t.\u0275fac=function(e){return new(e||t)(i.Sb(v),i.Sb(x,8))},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t}(),j=function(){var t=function(){function t(e,n){var r=this;p(this,t),this._subject=new i.n,this._urlChangeListeners=[],this._platformStrategy=e;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=S(R(o)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})})}return y(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+C(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,R(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+C(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+C(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(O),i.Sb(v))},t.normalizeQueryParams=C,t.joinWithSlash=w,t.stripTrailingSlash=S,t.\u0275prov=Object(i.Fb)({factory:I,token:t,providedIn:"root"}),t}();function I(){return new j(Object(i.Sb)(O),Object(i.Sb)(v))}function R(t){return t.replace(/\/index.html$/,"")}var N=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=i.mb,P=function t(){p(this,t)},F=function(){var t=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this)).locale=t,r}return y(n,[{key:"getPluralCategory",value:function(t,e){switch(D(e||this.locale)(t)){case N.Zero:return"zero";case N.One:return"one";case N.Two:return"two";case N.Few:return"few";case N.Many:return"many";default:return"other"}}}]),n}(P);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.u))},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t}();function L(t,e){e=encodeURIComponent(e);var r,i=o(t.split(";"));try{for(i.s();!(r=i.n()).done;){var a=r.value,s=a.indexOf("="),u=n(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),c=u[0],l=u[1];if(c.trim()===e)return decodeURIComponent(l)}}catch(h){i.e(h)}finally{i.f()}return null}var V=function(){var t=function(){function t(e,n,r,i){p(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return y(t,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(i.ub)(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})}},{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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(i.pb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.s),i.Jb(i.t),i.Jb(i.l),i.Jb(i.E))},t.\u0275dir=i.Eb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),M=function(){function t(e,n,r,i){p(this,t),this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}return y(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),U=function(){var t=function(){function t(e,n,r){p(this,t),this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return y(t,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new M(null,e._ngForOf,-1,-1),null===i?void 0:i),a=new H(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=e._viewContainer.get(r);e._viewContainer.move(s,i);var u=new H(t,s);n.push(u)}});for(var r=0;r=0})),t}return y(n,[{key:"ngOnDestroy",value:function(){this.subject.complete()}},{key:"getSubject",value:function(){return this.subject.getValue()}},{key:"setSubject",value:function(t){this.subject.next(t)}}]),n}(c);return t.\u0275fac=function(e){return f(e||t)},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),f=o.Qb(h)},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r,i,o=n("DH7j"),a=n("XoHu"),s=n("n6bG"),u=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(t,e){return"".concat(e+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),c=((i=function(){function t(e){p(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return y(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._ctorUnsubscribe,i=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var h=0;h0){var r=t.slice(0,e),i=r.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var r=e[t],i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(t,i))})}:this.headers=new Map}return y(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,r(n)),this.headers.set(e,i);break;case"d":var o=t.value;if(o){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),t}(),b=function(){function t(){p(this,t)}return y(t,[{key:"encodeKey",value:function(t){return _(t)}},{key:"encodeValue",value:function(t){return _(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function _(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,"/")}var k=function(){function t(){var e,r,i,o=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(p(this,t),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new b,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=a.fromString,r=this.encoder,i=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=n(-1==e?[r.decodeKey(t),""]:[r.decodeKey(t.slice(0,e)),r.decodeValue(t.slice(e+1))],2),a=o[0],s=o[1],u=i.get(a)||[];u.push(s),i.set(a,u)}),i)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(t){var e=a.fromObject[t];o.map.set(t,Array.isArray(e)?e:[e])})):this.map=null}return y(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),t}();function w(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function S(t){return"undefined"!=typeof Blob&&t instanceof Blob}function C(t){return"undefined"!=typeof FormData&&t instanceof FormData}var O=function(){function t(e,n,r,i){var o;if(p(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new g),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},u)),e.setParams&&(c=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},c)),new t(n,r,o,{params:c,headers:u,reportProgress:s,responseType:i,withCredentials:a})}}]),t}(),E=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}({}),x=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";p(this,t),this.headers=e.headers||new g,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},T=function(t){u(n,t);var e=l(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,n),(t=e.call(this,r)).type=E.ResponseHeader,t}return y(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(x),A=function(t){u(n,t);var e=l(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,n),(t=e.call(this,r)).type=E.Response,t.body=void 0!==r.body?r.body:null,t}return y(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(x),j=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),r.error=t.error||null,r}return n}(x);function I(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var R=function(){var t=function(){function t(e){p(this,t),this.handler=e}return y(t,[{key:"request",value:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof O)n=t;else{var o=void 0;o=i.headers instanceof g?i.headers:new g(i.headers);var s=void 0;i.params&&(s=i.params instanceof k?i.params:new k({fromObject:i.params})),n=new O(t,e,void 0!==i.body?i.body:null,{headers:o,params:s,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var u=Object(a.a)(n).pipe(Object(c.a)(function(t){return r.handler.handle(t)}));if(t instanceof O||"events"===i.observe)return u;var l=u.pipe(Object(h.a)(function(t){return t instanceof A}));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(Object(f.a)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Object(f.a)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Object(f.a)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(Object(f.a)(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(i.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new k).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,I(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,I(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,I(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(v))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),N=function(){function t(e,n){p(this,t),this.next=e,this.interceptor=n}return y(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),D=new o.q("HTTP_INTERCEPTORS"),P=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),F=/^\)\]\}',?\n/,L=function t(){p(this,t)},V=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),M=function(){var t=function(){function t(e){p(this,t),this.xhrFactory=e}return y(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new g(r.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}(r)||t.url;return s=new T({headers:i,status:e,statusText:n,url:o})},c=function(){var e=u(),i=e.headers,o=e.status,a=e.statusText,s=e.url,c=null;204!==o&&(c=void 0===r.response?r.responseText:r.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof c){var h=c;c=c.replace(F,"");try{c=""!==c?JSON.parse(c):null}catch(f){c=h,l&&(l=!1,c={error:f,text:c})}}l?(n.next(new A({body:c,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new j({error:c,headers:i,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=u().url,i=new j({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},h=!1,f=function(e){h||(n.next(u()),h=!0);var i={type:E.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:E.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",c),r.addEventListener("error",l),t.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:E.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",c),t.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(L))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),U=new o.q("XSRF_COOKIE_NAME"),H=new o.q("XSRF_HEADER_NAME"),z=function t(){p(this,t)},B=function(){var t=function(){function t(e,n,r){p(this,t),this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return y(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(d.v)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(d.d),o.Sb(o.B),o.Sb(U))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),q=function(){var t=function(){function t(e,n){p(this,t),this.tokenService=e,this.headerName=n}return y(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(z),o.Sb(H))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),W=function(){var t=function(){function t(e,n){p(this,t),this.backend=e,this.injector=n,this.chain=null}return y(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(D,[]);this.chain=e.reduceRight(function(t,e){return new N(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(m),o.Sb(o.r))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),J=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:q,useClass:P}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:U,useValue:e.cookieName}:[],e.headerName?{provide:H,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},providers:[q,{provide:D,useExisting:q,multi:!0},{provide:z,useClass:B},{provide:U,useValue:"XSRF-TOKEN"},{provide:H,useValue:"X-XSRF-TOKEN"}]}),t}(),G=function(){var t=function t(){p(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},providers:[R,{provide:v,useClass:W},M,{provide:m,useExisting:M},V,{provide:L,useExisting:V}],imports:[[J.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}()},tyNb:function(t,e,i){"use strict";i.d(e,"a",function(){return Kt}),i.d(e,"b",function(){return W}),i.d(e,"c",function(){return yn}),i.d(e,"d",function(){return gn}),i.d(e,"e",function(){return On}),i.d(e,"f",function(){return Ln}),i.d(e,"g",function(){return En});var a=i("ofXK"),s=i("fXoL"),c=i("LRne"),h=i("Cfvw"),d=i("2Vo4"),v=i("itXk"),m=i("HDdC"),g=i("sVev"),b=i("NXyV"),_=i("EY2u"),k=i("XNiG"),w=i("lJxs"),S=i("0EUg"),C=i("NJ9Y"),O=i("eIep"),E=i("IzEk"),x=i("JX91"),T=i("7o/Q"),A=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,t),this.accumulator=e,this.seed=n,this.hasSeed=r}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new j(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),j=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return y(n,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),n}(T.a),I=i("pLZG"),R=i("JIr8"),N=i("bOdf"),D=i("xbPD"),P=i("XDbj"),F=i("SpAZ");function L(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(I.a)(function(e,n){return t(e,n,r)}):F.a,Object(E.a)(1),n?Object(D.a)(e):Object(P.a)(function(){return new g.a}))}}var V=i("5+tZ"),M=i("vkgz"),U=i("BFxc"),H=i("nYR2"),z=i("bHdf"),B=function t(e,n){p(this,t),this.id=e,this.url=n},q=function(t){u(n,t);var e=l(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return p(this,n),(i=e.call(this,t,r)).navigationTrigger=o,i.restoredState=a,i}return y(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(B),W=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o}return y(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(B),J=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).reason=i,o}return y(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(B),G=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).error=i,o}return y(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(B),K=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(B),Q=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(B),Z=function(t){u(n,t);var e=l(n);function n(t,r,i,o,a){var s;return p(this,n),(s=e.call(this,t,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return y(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(B),X=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(B),$=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(B),Y=function(){function t(e){p(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),tt=function(){function t(e){p(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),et=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),nt=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),rt=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),it=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),ot=function(){function t(e,n,r){p(this,t),this.routerEvent=e,this.position=n,this.anchor=r}return y(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),at=function(){function t(e){p(this,t),this.params=e||{}}return y(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function st(t){return new at(t)}function ut(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ct(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function vt(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function pt(t){return Object(s.qb)(t)?t:Object(s.rb)(t)?Object(h.a)(Promise.resolve(t)):Object(c.a)(t)}function mt(t,e,n){return n?function(t,e){return lt(t,e)}(t.queryParams,e.queryParams)&&yt(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return ht(t[n],e[n])})}(t.queryParams,e.queryParams)&>(t.root,e.root)}function yt(t,e){if(!St(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!yt(t.children[n],e.children[n]))return!1}return!0}function gt(t,e){return bt(t,e,e.segments)}function bt(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(var r in e.children){if(!t.children[r])return!1;if(!gt(t.children[r],e.children[r]))return!1}return!0}var i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!St(t.segments,i)&&!!t.children.primary&&bt(t.children.primary,e,o)}var _t=function(){function t(e,n,r){p(this,t),this.root=e,this.queryParams=n,this.fragment=r}return y(t,[{key:"toString",value:function(){return xt.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}}]),t}(),kt=function(){function t(e,n){var r=this;p(this,t),this.segments=e,this.children=n,this.parent=null,vt(n,function(t,e){return t.parent=r})}return y(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Tt(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),wt=function(){function t(e,n){p(this,t),this.path=e,this.parameters=n}return y(t,[{key:"toString",value:function(){return Pt(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=st(this.parameters)),this._parameterMap}}]),t}();function St(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Ct(t,e){var n=[];return vt(t.children,function(t,r){"primary"===r&&(n=n.concat(e(t,r)))}),vt(t.children,function(t,r){"primary"!==r&&(n=n.concat(e(t,r)))}),n}var Ot=function t(){p(this,t)},Et=function(){function t(){p(this,t)}return y(t,[{key:"parse",value:function(t){var e=new Ut(t);return new _t(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){return"".concat("/"+At(t.root,!0)).concat((e=t.queryParams,n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(It(t),"=").concat(It(e))}).join("&"):"".concat(It(t),"=").concat(It(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"");var e,n}}]),t}(),xt=new Et;function Tt(t){return t.segments.map(function(t){return Pt(t)}).join("/")}function At(t,e){if(!t.hasChildren())return Tt(t);if(e){var n=t.children.primary?At(t.children.primary,!1):"",r=[];return vt(t.children,function(t,e){"primary"!==e&&r.push("".concat(e,":").concat(At(t,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=Ct(t,function(e,n){return"primary"===n?[At(t.children.primary,!1)]:["".concat(n,":").concat(At(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Tt(t),"/").concat(i[0]):"".concat(Tt(t),"/(").concat(i.join("//"),")")}function jt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function It(t){return jt(t).replace(/%3B/gi,";")}function Rt(t){return jt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nt(t){return decodeURIComponent(t)}function Dt(t){return Nt(t.replace(/\+/g,"%20"))}function Pt(t){return"".concat(Rt(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(Rt(t),"=").concat(Rt(e[t]))}).join("")));var e}var Ft=/^[^\/()?;=#]+/;function Lt(t){var e=t.match(Ft);return e?e[0]:""}var Vt=/^[^=?&#]+/,Mt=/^[^?&#]+/,Ut=function(){function t(e){p(this,t),this.url=e,this.remaining=e}return y(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new kt([],{}):new kt([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new kt(t,e)),n}},{key:"parseSegment",value:function(){var t=Lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new wt(Nt(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Lt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Lt(this.remaining);r&&(n=r,this.capture(n))}t[Nt(e)]=Nt(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Vt);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(Mt);return e?e[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=Dt(e),o=Dt(n);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(o)}else t[i]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Lt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");var o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new kt([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Ht=function(){function t(e){p(this,t),this._root=e}return y(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=zt(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=zt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Bt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return Bt(t,this._root).map(function(t){return t.value})}},{key:"root",get:function(){return this._root.value}}]),t}();function zt(t,e){if(t===e.value)return e;var n,r=o(e.children);try{for(r.s();!(n=r.n()).done;){var i=zt(t,n.value);if(i)return i}}catch(a){r.e(a)}finally{r.f()}return null}function Bt(t,e){if(t===e.value)return[e];var n,r=o(e.children);try{for(r.s();!(n=r.n()).done;){var i=Bt(t,n.value);if(i.length)return i.unshift(e),i}}catch(a){r.e(a)}finally{r.f()}return[]}var qt=function(){function t(e,n){p(this,t),this.value=e,this.children=n}return y(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Wt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Jt=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).snapshot=r,$t(f(i),t),i}return y(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Ht);function Gt(t,e){var n=function(t,e){var n=new Zt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Xt("",new qt(n,[]))}(t,e),r=new d.a([new wt("",{})]),i=new d.a({}),o=new d.a({}),a=new d.a({}),s=new d.a(""),u=new Kt(r,i,a,s,o,"primary",e,n.root);return u.snapshot=n.root,new Jt(new qt(u,[]),n)}var Kt=function(){function t(e,n,r,i,o,a,s,u){p(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return y(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(w.a)(function(t){return st(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(w.a)(function(t){return st(t)}))),this._queryParamMap}}]),t}();function Qt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(t){return t.reduce(function(t,e){return{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(r))}var Zt=function(){function t(e,n,r,i,o,a,s,u,c,l,h){p(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}return y(t,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(t){return t.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=st(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}}]),t}(),Xt=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,r)).url=t,$t(f(i),r),i}return y(n,[{key:"toString",value:function(){return Yt(this._root)}}]),n}(Ht);function $t(t,e){e.value._routerState=t,e.children.forEach(function(e){return $t(t,e)})}function Yt(t){var e=t.children.length>0?" { ".concat(t.children.map(Yt).join(", ")," } "):"";return"".concat(t.value).concat(e)}function te(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,lt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),lt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&ie(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(oe);if(i&&i!==dt(r))throw new Error("{outlets:{}} has to be the last command")}return y(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),ce=function t(e,n,r){p(this,t),this.segmentGroup=e,this.processChildren=n,this.index=r};function le(t,e,n){if(t||(t=new kt([],{})),0===t.segments.length&&t.hasChildren())return he(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=t.segments[i],s=n[r];if(oe(s))break;var u=""+s,c=r0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!pe(u,c,a))return o;r+=2}else{if(!pe(u,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2&&(n=!0),function(r){return r.lift(new A(t,e,n))}}(function(t,e){var n=!1;return e.reduce(function(t,r,i){if(t!==ke)return t;if(r===ke&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||_e(r))return r}return t},t)},ke),Object(I.a)(function(t){return t!==ke}),Object(w.a)(function(t){return _e(t)?t:!0===t}),Object(E.a)(1))})}var Se,Ce=((Se=function t(){p(this,t)}).\u0275fac=function(t){return new(t||Se)},Se.\u0275cmp=s.Db({type:Se,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Kb(0,"router-outlet")},directives:function(){return[En]},encapsulation:2}),Se);function Oe(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0?new kt([],{primary:t}):t;return new _t(r,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(w.a)(function(t){return new kt([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)}},{key:"expandChildren",value:function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Object(c.a)({});var o=[],a=[],s={};return vt(n,function(n,i){var u,c,l=(u=i,c=n,r.expandSegmentGroup(t,e,c,u)).pipe(Object(w.a)(function(t){return s[i]=t}));"primary"===i?o.push(l):a.push(l)}),c.a.apply(null,o.concat(a)).pipe(Object(S.a)(),Object(C.a)(),Object(w.a)(function(){return s}))}(n.children)}},{key:"expandSegment",value:function(t,e,r,i,o,a){var s=this,u=function(t){return t.reduce(function(t,e){var n=Ae(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(r);u.has(o)||u.set(o,[]);var l=Array.from(u.entries()).map(function(r){var u=n(r,2),l=u[0],f=function(n){return Object(h.a)(n).pipe(Object(N.a)(function(r){return s.expandSegmentAgainstRoute(t,e,n,r,i,o,a).pipe(Object(R.a)(function(t){if(t instanceof je)return Object(c.a)(null);throw t}))}),L(function(t){return null!==t}),Object(R.a)(function(t){if(t instanceof g.a||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,i,o))return Object(c.a)(new kt([],{}));throw new je(e)}throw t}))}(u[1]);return l===o?f:f.pipe(Object(w.a)(function(){return null}),Object(R.a)(function(){return Object(c.a)(null)}))});return Object(h.a)(l).pipe(function(t){return t.lift(new v.a(void 0))},L(),Object(w.a)(function(t){return t.find(function(t){return null!==t})}))}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,r,i,o,a){return Ae(r)!==o&&""!==r.path?Re(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Re(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ne(o):this.lineralizeSegments(n,o).pipe(Object(V.a)(function(n){var o=new kt(n,{});return i.expandSegment(t,o,e,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){var a=this,s=Fe(e,r,i),u=s.matched,c=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!u)return Re(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?Ne(f):this.lineralizeSegments(r,f).pipe(Object(V.a)(function(r){return a.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(w.a)(function(t){return n._loadedConfig=t,new kt(r,{})})):Object(c.a)(new kt(r,{}));var a=Fe(e,n,r),s=a.matched,u=a.consumedSegments,l=a.lastChild;if(!s)return Re(e);var h=r.slice(l);return this.getChildConfig(t,n,r).pipe(Object(V.a)(function(t){var n=t.module,r=t.routes,a=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(function(n){return Ve(t,e,n)&&"primary"!==Ae(n)})}(t,n,r)?{segmentGroup:Le(new kt(e,function(t,e){var n={};n.primary=e;var r,i=o(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;""===a.path&&"primary"!==Ae(a)&&(n[Ae(a)]=new kt([],{}))}}catch(s){i.e(s)}finally{i.f()}return n}(r,new kt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(function(n){return Ve(t,e,n)})}(t,n,r)?{segmentGroup:Le(new kt(t.segments,function(t,e,n,r){var i,a={},s=o(n);try{for(s.s();!(i=s.n()).done;){var u=i.value;Ve(t,e,u)&&!r[Ae(u)]&&(a[Ae(u)]=new kt([],{}))}}catch(c){s.e(c)}finally{s.f()}return Object.assign(Object.assign({},r),a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,h,r),s=a.segmentGroup,l=a.slicedSegments;return 0===l.length&&s.hasChildren()?i.expandChildren(n,r,s).pipe(Object(w.a)(function(t){return new kt(u,t)})):0===r.length&&0===l.length?Object(c.a)(new kt(u,{})):i.expandSegment(n,s,r,l,"primary",!0).pipe(Object(w.a)(function(t){return new kt(u.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var r=this;return e.children?Object(c.a)(new ge(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(c.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(V.a)(function(n){return n?r.configLoader.load(t.injector,e).pipe(Object(w.a)(function(t){return e._loadedConfig=t,t})):function(t){return new m.a(function(e){return e.error(ut("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):Object(c.a)(new ge([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var r=this,i=e.canLoad;if(!i||0===i.length)return Object(c.a)(!0);var o=i.map(function(r){var i,o=t.get(r);if(function(t){return t&&be(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!be(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return pt(i)});return Object(c.a)(o).pipe(we(),Object(M.a)(function(t){if(_e(t)){var e=ut('Redirecting to "'.concat(r.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),Object(w.a)(function(t){return!0===t}))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(c.a)(n);if(r.numberOfChildren>1||!r.children.primary)return De(t.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new _t(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return vt(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return vt(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new kt(o,a)}},{key:"createSegments",value:function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})}},{key:"findPosParam",value:function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return r}},{key:"findOrReturn",value:function(t,e){var n,r=0,i=o(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===t.path)return e.splice(r),a;r++}}catch(s){i.e(s)}finally{i.f()}return t}}]),t}();function Fe(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||ct)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Le(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new kt(t.segments.concat(e.segments),e.children)}return t}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}var Me=function t(e){p(this,t),this.path=e,this.route=this.path[this.path.length-1]},Ue=function t(e,n){p(this,t),this.component=e,this.route=n};function He(t,e,n){var r=t._root;return Be(r,e?e._root:null,n,[r.value])}function ze(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Be(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=Wt(e);return t.children.forEach(function(t){!function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=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)||!lt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ee(t,e)||!lt(t.queryParams,e.queryParams);case"paramsChange":default:return!ee(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Me(r)):(o.data=a.data,o._resolvedData=a._resolvedData),Be(t,e,o.component?s?s.children:null:n,r,i),u&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Ue(s.outlet.component,a))}else a&&qe(e,s,i),i.canActivateChecks.push(new Me(r)),Be(t,null,o.component?s?s.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),vt(o,function(t,e){return qe(t,n.getContext(e),i)}),i}function qe(t,e,n){var r=Wt(t),i=t.value;vt(r,function(t,r){qe(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Ue(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}function We(t,e){return null!==t&&e&&e(new rt(t)),Object(c.a)(!0)}function Je(t,e){return null!==t&&e&&e(new et(t)),Object(c.a)(!0)}function Ge(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(c.a)(!0);var i=r.map(function(r){return Object(b.a)(function(){var i,o=ze(r,e,n);if(function(t){return t&&be(t.canActivate)}(o))i=pt(o.canActivate(e,t));else{if(!be(o))throw new Error("Invalid CanActivate guard");i=pt(o(e,t))}return i.pipe(L())})});return Object(c.a)(i).pipe(we())}function Ke(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Object(b.a)(function(){var i=e.guards.map(function(i){var o,a=ze(i,e.node,n);if(function(t){return t&&be(t.canActivateChild)}(a))o=pt(a.canActivateChild(r,t));else{if(!be(a))throw new Error("Invalid CanActivateChild guard");o=pt(a(r,t))}return o.pipe(L())});return Object(c.a)(i).pipe(we())})});return Object(c.a)(i).pipe(we())}var Qe=function t(){p(this,t)},Ze=function(){function t(e,n,r,i,o,a){p(this,t),this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return y(t,[{key:"recognize",value:function(){try{var t=Ye(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Zt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new qt(n,e),i=new Xt(this.url,r);return this.inheritParamsAndData(i._root),Object(c.a)(i)}catch(o){return new m.a(function(t){return t.error(o)})}}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,r=Qt(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){var n,r=this,i=Ct(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[t.value.outlet]=t.value}),i.sort(function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}),i}},{key:"processSegment",value:function(t,e,n,r){var i,a=o(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(u){if(!(u instanceof Qe))throw u}}}catch(c){a.e(c)}finally{a.f()}if(this.noLeftoversInUrl(e,n,r))return[];throw new Qe}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"processSegmentAgainstRoute",value:function(t,e,n,r){if(t.redirectTo)throw new Qe;if((t.outlet||"primary")!==r)throw new Qe;var i,o=[],a=[];if("**"===t.path){var s=n.length>0?dt(n).parameters:{};i=new Zt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,en(t),r,t.component,t,Xe(e),$e(e)+n.length,nn(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Qe;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||ct)(n,t,e);if(!r)throw new Qe;var i={};vt(r.posParams,function(t,e){i[e]=t.path});var o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=u.consumedSegments,a=n.slice(u.lastChild),i=new Zt(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,en(t),r,t.component,t,Xe(e),$e(e)+o.length,nn(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=Ye(e,o,a,c,this.relativeLinkResolution),h=l.segmentGroup,f=l.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new qt(i,d)]}if(0===c.length&&0===f.length)return[new qt(i,[])];var v=this.processSegment(c,h,f,"primary");return[new qt(i,v)]}}]),t}();function Xe(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function $e(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Ye(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some(function(n){return tn(t,e,n)&&"primary"!==Ae(n)})}(t,n,r)){var a=new kt(e,function(t,e,n,r){var i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;var a,s=o(n);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(""===u.path&&"primary"!==Ae(u)){var c=new kt([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,i[Ae(u)]=c}}}catch(l){s.e(l)}finally{s.f()}return i}(t,e,r,new kt(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(function(n){return tn(t,e,n)})}(t,n,r)){var s=new kt(t.segments,function(t,e,n,r,i,a){var s,u={},c=o(r);try{for(c.s();!(s=c.n()).done;){var l=s.value;if(tn(t,n,l)&&!i[Ae(l)]){var h=new kt([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===a?t.segments.length:e.length,u[Ae(l)]=h}}}catch(f){c.e(f)}finally{c.f()}return Object.assign(Object.assign({},i),u)}(t,e,n,r,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var u=new kt(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function tn(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function en(t){return t.data||{}}function nn(t){return t.resolve||{}}function rn(t){return function(e){return e.pipe(Object(O.a)(function(e){var n=t(e);return n?Object(h.a)(n).pipe(Object(w.a)(function(){return e})):Object(h.a)([e])}))}}var on=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return n}(function(){function t(){p(this,t)}return y(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),an=new s.q("ROUTES"),sn=function(){function t(e,n,r,i){p(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return y(t,[{key:"load",value:function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(w.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new ge(ft(i.injector.get(an)).map(Te),i)}))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Object(h.a)(this.loader.load(t)):pt(t()).pipe(Object(V.a)(function(t){return t instanceof s.v?Object(c.a)(t):Object(h.a)(e.compiler.compileModuleAsync(t))}))}}]),t}(),un=function t(){p(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new cn,this.attachRef=null},cn=function(){function t(){p(this,t),this.contexts=new Map}return y(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new un,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),ln=function(){function t(){p(this,t)}return y(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function hn(t){throw t}function fn(t,e,n){return e.parse("/")}function dn(t,e){return Object(c.a)(null)}var vn,pn,mn,yn=((mn=function(){function t(e,n,r,i,o,a,u,c){var l=this;p(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k.a,this.errorHandler=hn,this.malformedUriErrorHandler=fn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:dn,afterPreactivation:dn},this.urlHandlingStrategy=new ln,this.routeReuseStrategy=new on,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(s.x),this.console=o.get(s.Y);var h=o.get(s.z);this.isNgZoneEnabled=h instanceof s.z,this.resetConfig(c),this.currentUrlTree=new _t(new kt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new sn(a,u,function(t){return l.triggerEvent(new Y(t))},function(t){return l.triggerEvent(new tt(t))}),this.routerState=Gt(this.currentUrlTree,this.rootComponentType),this.transitions=new d.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()}return y(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Object(I.a)(function(t){return 0!==t.id}),Object(w.a)(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Object(O.a)(function(t){var r,i,o,a=!1,s=!1;return Object(c.a)(t).pipe(Object(M.a)(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(O.a)(function(t){var r,i,o,a,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(c.a)(t).pipe(Object(O.a)(function(t){var r=e.transitions.getValue();return n.next(new q(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?_.a:[t]}),Object(O.a)(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,i=e.configLoader,o=e.urlSerializer,a=e.config,function(t){return t.pipe(Object(O.a)(function(t){return function(t,e,n,r,i){return new Pe(t,e,n,r,i).apply()}(r,i,o,t.extractedUrl,a).pipe(Object(w.a)(function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})}))}))}),Object(M.a)(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,r,i,o){return function(r){return r.pipe(Object(V.a)(function(r){return function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Ze(t,e,n,r,i,o).recognize()}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),i,o).pipe(Object(w.a)(function(t){return Object.assign(Object.assign({},r),{targetSnapshot:t})}));var a}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Object(M.a)(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),Object(M.a)(function(t){var r=new K(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.id,l=t.extractedUrl,h=t.source,f=t.restoredState,d=t.extras,v=new q(u,e.serializeUrl(l),h,f);n.next(v);var p=Gt(l,e.rootComponentType).snapshot;return Object(c.a)(Object.assign(Object.assign({},t),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),_.a}),rn(function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Object(M.a)(function(t){var n=new Q(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Object(w.a)(function(t){return Object.assign(Object.assign({},t),{guards:He(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function(t,e){return function(n){return n.pipe(Object(V.a)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Object(c.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(h.a)(t).pipe(Object(V.a)(function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(c.a)(!0);var a=o.map(function(o){var a,s=ze(o,e,i);if(function(t){return t&&be(t.canDeactivate)}(s))a=pt(s.canDeactivate(t,e,n,r));else{if(!be(s))throw new Error("Invalid CanDeactivate guard");a=pt(s(t,e,n,r))}return a.pipe(L())});return Object(c.a)(a).pipe(we())}(t.component,t.route,n,e,r)}),L(function(t){return!0!==t},!0))}(s,r,i,t).pipe(Object(V.a)(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Object(h.a)(e).pipe(Object(N.a)(function(e){return Object(h.a)([Je(e.route.parent,r),We(e.route,r),Ke(t,e.path,n),Ge(t,e.route,n)]).pipe(Object(S.a)(),L(function(t){return!0!==t},!0))}),L(function(t){return!0!==t},!0))}(r,a,t,e):Object(c.a)(n)}),Object(w.a)(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),Object(M.a)(function(t){if(_e(t.guardsResult)){var n=ut('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}}),Object(M.a)(function(t){var n=new Z(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),Object(I.a)(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new J(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),rn(function(t){if(t.guards.canActivateChecks.length)return Object(c.a)(t).pipe(Object(M.a)(function(t){var n=new X(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Object(O.a)(function(t){var r,i,o=!1;return Object(c.a)(t).pipe((r=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(Object(V.a)(function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return Object(c.a)(t);var o=0;return Object(h.a)(n).pipe(Object(N.a)(function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Object(c.a)({});var o={};return Object(h.a)(i).pipe(Object(V.a)(function(i){return function(t,e,n,r){var i=ze(t,e,r);return pt(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(Object(M.a)(function(t){o[i]=t}))}),Object(U.a)(1),Object(V.a)(function(){return Object.keys(o).length===i.length?Object(c.a)(o):_.a}))}(t._resolve,t,e,r).pipe(Object(w.a)(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Qt(t,n).resolve),null}))}(t.route,e,r,i)}),Object(M.a)(function(){return o++}),Object(U.a)(1),Object(V.a)(function(e){return o===n.length?Object(c.a)(t):_.a}))}))}),Object(M.a)({next:function(){return o=!0},complete:function(){if(!o){var r=new J(t.id,e.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),t.resolve(!1)}}}))}),Object(M.a)(function(t){var n=new $(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}),rn(function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Object(w.a)(function(t){var n=function(t,e,n){var r=ne(t,e._root,n?n._root:void 0);return new Jt(r,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:n})}),Object(M.a)(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),(r=e.rootContexts,i=e.routeReuseStrategy,o=function(t){return e.triggerEvent(t)},Object(w.a)(function(t){return new me(i,t.targetRouterState,t.currentRouterState,o).activate(r),t})),Object(M.a)({next:function(){a=!0},complete:function(){a=!0}}),Object(H.a)(function(){if(!a&&!s){e.resetUrlToCurrentUrlTree();var r=new J(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId));n.next(r),t.resolve(!1)}e.currentNavigation=null}),Object(R.a)(function(r){if(s=!0,(u=r)&&u.ngNavigationCancelingError){var i=_e(r.url);i||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new J(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(o),i?setTimeout(function(){var n=e.urlHandlingStrategy.merge(r.url,e.rawUrlTree);return e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new G(t.id,e.serializeUrl(t.extractedUrl),r);n.next(a);try{t.resolve(e.errorHandler(r))}catch(c){t.reject(c)}}var u;return _.a}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(i,e,r,o)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(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}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var 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))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Oe(t),this.config=t.map(Te),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,o=e.fragment,a=e.queryParamsHandling,s=e.preserveFragment,u=n||this.routerState.root,c=s?this.currentUrlTree.fragment:o,l=null;switch(a){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,n,i,o){if(0===n.length)return ae(e.root,e.root,e,i,o);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ue(!0,0,t);var e=0,n=!1,i=t.reduce(function(t,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return vt(i.outlets,function(t,e){a[e]="string"==typeof t?t.split("/"):t}),[].concat(r(t),[{outlets:a}])}if(i.segmentPath)return[].concat(r(t),[i.segmentPath])}return"string"!=typeof i?[].concat(r(t),[i]):0===o?(i.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[].concat(r(t),[i])},[]);return new ue(n,e,i)}(n);if(a.toRoot())return ae(e.root,new kt([],{}),e,i,o);var s=function(t,e,n){if(t.isAbsolute)return new ce(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new ce(r,r===e.root,0)}var i=ie(t.commands[0])?0:1;return function(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new ce(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(a,e,t),u=s.processChildren?he(s.segmentGroup,s.index,a.commands):le(s.segmentGroup,s.index,a.commands);return ae(s.segmentGroup,u,e,i,o)}(u,this.currentUrlTree,t,l,c)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=_e(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};p(this,t),this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return y(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof q?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof W&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof ot&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new ot(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||Sn)(s.Sb(yn),s.Sb(a.q),s.Sb(void 0))},Sn.\u0275prov=s.Fb({token:Sn,factory:Sn.\u0275fac}),Sn),Rn=new s.q("ROUTER_CONFIGURATION"),Nn=new s.q("ROUTER_FORROOT_GUARD"),Dn=[a.h,{provide:Ot,useClass:Et},{provide:yn,useFactory:function(t,e,n,r,i,o,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,h=new yn(null,t,e,n,r,i,o,ft(s));if(c&&(h.urlHandlingStrategy=c),l&&(h.routeReuseStrategy=l),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)}(u,h),u.enableTracing){var f=Object(a.u)();h.events.subscribe(function(t){f.logGroup("Router Event: "+t.constructor.name),f.log(t.toString()),f.log(t),f.logGroupEnd()})}return h},deps:[Ot,cn,a.h,s.r,s.w,s.i,an,Rn,[function(){return function t(){p(this,t)}}(),new s.A],[function(){return function t(){p(this,t)}}(),new s.A]]},cn,{provide:Kt,useFactory:function(t){return t.routerState.root},deps:[yn]},{provide:s.w,useClass:s.K},jn,An,function(){function t(){p(this,t)}return y(t,[{key:"preload",value:function(t,e){return e().pipe(Object(R.a)(function(){return Object(c.a)(null)}))}}]),t}(),{provide:Rn,useValue:{enableTracing:!1}}];function Pn(){return new s.y("Router",yn)}var Fn,Ln=((Fn=function(){function t(e,n){p(this,t)}return y(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Dn,Hn(e),{provide:Nn,useFactory:Un,deps:[[yn,new s.A,new s.J]]},{provide:Rn,useValue:n||{}},{provide:a.i,useFactory:Mn,deps:[a.p,[new s.p(a.a),new s.A],Rn]},{provide:In,useFactory:Vn,deps:[yn,a.q,Rn]},{provide:Tn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:An},{provide:s.y,multi:!0,useFactory:Pn},[Bn,{provide:s.d,multi:!0,useFactory:qn,deps:[Bn]},{provide:Jn,useFactory:Wn,deps:[Bn]},{provide:s.b,multi:!0,useExisting:Jn}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Hn(e)]}}}]),t}()).\u0275mod=s.Hb({type:Fn}),Fn.\u0275inj=s.Gb({factory:function(t){return new(t||Fn)(s.Sb(Nn,8),s.Sb(yn,8))}}),Fn);function Vn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new In(t,e,n)}function Mn(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new a.e(t,e):new a.o(t,e)}function Un(t){return"guarded"}function Hn(t){return[{provide:s.a,multi:!0,useValue:t},{provide:an,multi:!0,useValue:t}]}var zn,Bn=((zn=function(){function t(e){p(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new k.a}return y(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(a.g,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(yn),i=t.injector.get(Rn);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return t.initNavigation?Object(c.a)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Rn),n=this.injector.get(jn),r=this.injector.get(In),i=this.injector.get(yn),o=this.injector.get(s.g);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),t}()).\u0275fac=function(t){return new(t||zn)(s.Sb(s.r))},zn.\u0275prov=s.Fb({token:zn,factory:zn.\u0275fac}),zn);function qn(t){return t.appInitializer.bind(t)}function Wn(t){return t.bootstrapListener.bind(t)}var Jn=new s.q("Router Initializer")},u47x:function(t,e,n){"use strict";n.d(e,"a",function(){return V}),n.d(e,"b",function(){return C}),n.d(e,"c",function(){return F}),n.d(e,"d",function(){return O}),n.d(e,"e",function(){return D}),n.d(e,"f",function(){return j}),n.d(e,"g",function(){return L}),n.d(e,"h",function(){return I});var r=n("ofXK"),o=n("fXoL"),a=n("nLfN"),s=n("XNiG"),c=n("quSY"),h=n("LRne"),f=n("FtGj"),d=n("vkgz"),m=n("Kj3r"),g=n("pLZG"),b=n("lJxs"),_=n("IzEk"),k=n("8LU1"),w=n("GU7r"),S=function(){function t(e){var n=this;p(this,t),this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new s.a,this._typeaheadSubscription=c.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new s.a,this.change=new s.a,e instanceof o.D&&e.changes.subscribe(function(t){if(n._activeItem){var e=t.toArray().indexOf(n._activeItem);e>-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}})}return y(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(d.a)(function(e){return t._pressedLetters.push(e)}),Object(m.a)(e),Object(g.a)(function(){return t._pressedLetters.length>0}),Object(b.a)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._getItemsArray(),r=1;r0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1});switch(n){case f.m:return void this.tabOut.next();case f.d:if(this._vertical&&r){this.setNextItemActive();break}return;case f.n:if(this._vertical&&r){this.setPreviousItemActive();break}return;case f.k:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case f.i:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case f.h:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case f.e:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Object(f.q)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=f.a&&n<=f.o||n>=f.p&&n<=f.j)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof o.D?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),C=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),i(v(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(S),O=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments))._origin="program",t}return y(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){i(v(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(S),E=function(){var t=function(){function t(e){p(this,t),this._platform=e}return y(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(e){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){if(-1===T(n))return!1;if(!this.isVisible(n))return!1}var r=t.nodeName.toLowerCase(),i=T(t);return t.hasAttribute("contenteditable")?-1!==i:"iframe"!==r&&"object"!==r&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==i:"video"===r?-1!==i&&(null!==i||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||x(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(a.a))},t.\u0275prov=Object(o.Fb)({factory:function(){return new t(Object(o.Sb)(a.a))},token:t,providedIn:"root"}),t}();function x(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function T(t){if(!x(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var A=function(){function t(e,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];p(this,t),this._element=e,this._checker=n,this._ngZone=r,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return y(t,[{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], [cdkFocusRegion").concat(t,"], [cdk-focus-").concat(t,"]")),n=0;n=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(_.a)(1)).subscribe(t)}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}}]),t}(),j=function(){var t=function(){function t(e,n,r){p(this,t),this._checker=e,this._ngZone=n,this._document=r}return y(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new A(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(E),o.Sb(o.z),o.Sb(r.d))},t.\u0275prov=Object(o.Fb)({factory:function(){return new t(Object(o.Sb)(E),Object(o.Sb)(o.z),Object(o.Sb)(r.d))},token:t,providedIn:"root"}),t}();function I(t){return 0===t.buttons}"undefined"!=typeof Element&∈var R=new o.q("cdk-focus-monitor-default-options"),N=Object(a.f)({passive:!0,capture:!0}),D=function(){var t=function(){function t(e,n,r,i){var o=this;p(this,t),this._ngZone=e,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(t){if(!o._lastTouchTarget){var e=I(t)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=function(t){null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=P(t),o._touchTimeoutId=setTimeout(function(){return o._lastTouchTarget=null},650)},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout(function(){return o._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(t){for(var e=P(t),n="focus"===t.type?o._onFocus:o._onBlur,r=e;r;r=r.parentElement)n.call(o,t,r)},this._document=r,this._detectionMode=(null==i?void 0:i.detectionMode)||0}return y(t,[{key:"monitor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(k.d)(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(h.a)(null);var r=Object(a.c)(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject;var o={checkChildren:e,subject:new s.a,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(t){var e=Object(k.d)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var r=Object(k.d)(t);r===this._getDocument().activeElement&&this._elementInfo.has(r)?this._originChanged(r,e,this._elementInfo.get(r)):(this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout(function(){return e._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(t){var e=P(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);n&&(n.checkChildren||e===P(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,N),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,N)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,N),t.addEventListener("mousedown",e._documentMousedownListener,N),t.addEventListener("touchstart",e._documentTouchstartListener,N),n.addEventListener("focus",e._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,N),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,N),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var r=this._getDocument(),i=this._getWindow();r.removeEventListener("keydown",this._documentKeydownListener,N),r.removeEventListener("mousedown",this._documentMousedownListener,N),r.removeEventListener("touchstart",this._documentTouchstartListener,N),i.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(o.z),o.Sb(a.a),o.Sb(r.d,8),o.Sb(R,8))},t.\u0275prov=Object(o.Fb)({factory:function(){return new t(Object(o.Sb)(o.z),Object(o.Sb)(a.a),Object(o.Sb)(r.d,8),Object(o.Sb)(R,8))},token:t,providedIn:"root"}),t}();function P(t){return t.composedPath?t.composedPath()[0]:t.target}var F=function(){var t=function(){function t(e,n){p(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new o.n}return y(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l),o.Jb(D))},t.\u0275dir=o.Eb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),L=function(){var t=function(){function t(e,n){p(this,t),this._platform=e,this._document=n}return y(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(a.a),o.Sb(r.d))},t.\u0275prov=Object(o.Fb)({factory:function(){return new t(Object(o.Sb)(a.a),Object(o.Sb)(r.d))},token:t,providedIn:"root"}),t}(),V=function(){var t=function t(e){p(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)(o.Sb(L))},imports:[[a.b,w.c]]}),t}()},vkgz:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("7o/Q");function i(){}var o=n("n6bG");function a(t,e,n){return function(r){return r.lift(new s(t,e,n))}}var s=function(){function t(e,n,r){p(this,t),this.nextOrObserver=e,this.error=n,this.complete=r}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),c=function(t){u(n,t);var e=l(n);function n(t,r,a,s){var u;return p(this,n),(u=e.call(this,t))._tapNext=i,u._tapError=i,u._tapComplete=i,u._tapError=a||i,u._tapComplete=s||i,Object(o.a)(r)?(u._context=f(u),u._tapNext=r):r&&(u._context=r,u._tapNext=r.next||i,u._tapError=r.error||i,u._tapComplete=r.complete||i),u}return y(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(r.a)},vxfF:function(t,e,n){"use strict";n.d(e,"a",function(){return w}),n.d(e,"b",function(){return C}),n.d(e,"c",function(){return k}),n.d(e,"d",function(){return O}),n.d(e,"e",function(){return S}),n("8LU1");var r=n("fXoL"),i=n("XNiG"),o=n("LRne"),a=n("HDdC"),s=n("xgIS");n("eNwd"),n("3N8a"),n("IjjT"),n("quSY"),n("7+OI"),n("/uUt");var u=n("3UWI"),c=n("pLZG"),l=n("1G5W");n("JX91"),n("Zy1z"),n("eIep"),n("7o/Q"),n("WMd4"),n("9ppp"),n("Ylt2");var h=n("nLfN"),f=n("ofXK"),d=n("cH1L");n("0EQZ");var v,m,g,b,_,k=((_=function(){function t(e,n,r){p(this,t),this._ngZone=e,this._platform=n,this._scrolled=new i.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}return y(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return e._scrolled.next(t)}))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new a.a(function(n){t._globalSubscription||t._addGlobalListener();var r=e>0?t._scrolled.pipe(Object(u.a)(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){r.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Object(o.a)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(c.a)(function(t){return!t||n.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach(function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var e=t._getWindow();return Object(s.a)(e.document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}()).\u0275fac=function(t){return new(t||_)(r.Sb(r.z),r.Sb(h.a),r.Sb(f.d,8))},_.\u0275prov=Object(r.Fb)({factory:function(){return new _(Object(r.Sb)(r.z),Object(r.Sb)(h.a),Object(r.Sb)(f.d,8))},token:_,providedIn:"root"}),_),w=((b=function(){function t(e,n,r,o){var u=this;p(this,t),this.elementRef=e,this.scrollDispatcher=n,this.ngZone=r,this.dir=o,this._destroyed=new i.a,this._elementScrolled=new a.a(function(t){return u.ngZone.runOutsideAngular(function(){return Object(s.a)(u.elementRef.nativeElement,"scroll").pipe(Object(l.a)(u._destroyed)).subscribe(t)})})}return y(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(h.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(h.d)()?t.left=t.right:1==Object(h.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;Object(h.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Object(h.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Object(h.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}()).\u0275fac=function(t){return new(t||b)(r.Jb(r.l),r.Jb(k),r.Jb(r.z),r.Jb(d.b,8))},b.\u0275dir=r.Eb({type:b,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),b),S=((g=function(){function t(e,n,r){var o=this;p(this,t),this._platform=e,this._change=new i.a,this._changeListener=function(t){o._change.next(t)},this._document=r,n.runOutsideAngular(function(){if(e.isBrowser){var t=o._getWindow();t.addEventListener("resize",o._changeListener),t.addEventListener("orientationchange",o._changeListener)}o.change().subscribe(function(){return o._updateViewportSize()})})}return y(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),n=t.documentElement,r=n.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-r.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(Object(u.a)(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}()).\u0275fac=function(t){return new(t||g)(r.Sb(h.a),r.Sb(r.z),r.Sb(f.d,8))},g.\u0275prov=Object(r.Fb)({factory:function(){return new g(Object(r.Sb)(h.a),Object(r.Sb)(r.z),Object(r.Sb)(f.d,8))},token:g,providedIn:"root"}),g),C=((m=function t(){p(this,t)}).\u0275mod=r.Hb({type:m}),m.\u0275inj=r.Gb({factory:function(t){return new(t||m)}}),m),O=((v=function t(){p(this,t)}).\u0275mod=r.Hb({type:v}),v.\u0275inj=r.Gb({factory:function(t){return new(t||v)},imports:[[d.a,h.b,C],d.a,C]}),v)},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return k});var r=n("XNiG"),o=n("HDdC"),a=n("7o/Q"),s=n("quSY");function c(){return function(t){return t.lift(new f(t))}}var h,f=function(){function t(e){p(this,t),this.connectable=e}return y(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var r=new d(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),t}(),d=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).connectable=r,i}return y(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(a.a),m=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).source=t,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return y(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new b(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t}},{key:"refCount",value:function(){return c()(this)}}]),n}(o.a),g={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(h=m.prototype)._subscribe},_isComplete:{value:h._isComplete,writable:!0},getSubject:{value:h.getSubject},connect:{value:h.connect},refCount:{value:h.refCount}},b=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).connectable=r,i}return y(n,[{key:"_error",value:function(t){this._unsubscribe(),i(v(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),i(v(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(r.b);function _(){return new r.a}function k(){return function(t){return c()((e=_,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,g);return r.source=t,r.subjectFactory=n,r})(t));var e}}},xDj2:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){p(this,t)}return y(t,null,[{key:"getHashFragmentParams",value:function(e){var n=e||window.location.hash;if(0!==(n=decodeURIComponent(n)).indexOf("#"))return{};var r=n.indexOf("?");return n=n.substr(r>-1?r+1:1),t.parseQueryString(n)}},{key:"parseQueryString",value:function(t){var e,n,r,i,o,a,s,u={};if(null===t)return u;e=t.split("&");for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new o(t))}}var o=function(){function t(e){p(this,t),this.defaultValue=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.defaultValue))}}]),t}(),a=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).defaultValue=r,i.isEmpty=!0,i}return y(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(r.a)},xgIS:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("HDdC"),o=n("DH7j"),a=n("n6bG"),s=n("lJxs");function u(t,e,n,l){return Object(a.a)(n)&&(l=n,n=void 0),l?u(t,e,n).pipe(Object(s.a)(function(t){return Object(o.a)(t)?l.apply(void 0,r(t)):l(t)})):new i.a(function(r){c(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}function c(t,e,n,r,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,n,i),o=function(){return a.removeEventListener(e,n,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,n),o=function(){return s.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var u=t;t.addListener(e,n),o=function(){return u.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),k),P=i.Qb(D),F=((O=function t(){p(this,t)}).\u0275fac=function(t){return new(t||O)},O.\u0275dir=i.Eb({type:O,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),O),L=((C=function t(){p(this,t)}).\u0275fac=function(t){return new(t||C)},C.\u0275dir=i.Eb({type:C,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),C),V=((S=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;p(this,n),(a=e.call(this))._element=t,a._isInteractiveList=!1,a._destroyed=new d.a,a._disabled=!1,a._isInteractiveList=!!(i||o&&"action-list"===o._getListType()),a._list=i||o;var s=a._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe(Object(v.a)(a._destroyed)).subscribe(function(){r.markForCheck()}),a}return y(n,[{key:"ngAfterContentInit",value:function(){Object(h.w)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=Object(f.b)(t)}}]),n}(I)).\u0275fac=function(t){return new(t||S)(i.Jb(i.l),i.Jb(i.h),i.Jb(N,8),i.Jb(R,8))},S.\u0275cmp=i.Db({type:S,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var r;1&t&&(i.Cb(n,F,!0),i.Cb(n,L,!0),i.Cb(n,h.f,!0)),2&t&&(i.ic(r=i.Wb())&&(e._avatar=r.first),i.ic(r=i.Wb())&&(e._icon=r.first),i.ic(r=i.Wb())&&(e._lines=r))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&i.Bb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.wb],ngContentSelectors:A,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(i.cc(T),i.Ob(0,"div",0),i.Kb(1,"div",1),i.bc(2),i.Ob(3,"div",2),i.bc(4,1),i.Nb(),i.bc(5,2),i.Nb()),2&t&&(i.zb(1),i.dc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[h.m],encapsulation:2,changeDetection:0}),S),M=((w=function t(){p(this,t)}).\u0275mod=i.Hb({type:w}),w.\u0275inj=i.Gb({factory:function(t){return new(t||w)},imports:[[h.g,h.n,h.e,h.l,a.c],h.g,h.e,h.l,E]}),w),U=r("nLfN"),H=r("vxfF"),z=r("xgIS"),B=r("VRyK"),q=r("pLZG"),W=r("lJxs"),J=r("7o/Q");function G(t){return function(e){return e.lift(new K(t))}}var K=function(){function t(e){p(this,t),this.value=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new Q(t,this.value))}}]),t}(),Q=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).value=r,i}return y(n,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),n}(J.a),Z=r("/uUt"),X=r("IzEk"),$=r("Kj3r"),Y=r("R0Ic"),tt=r("cH1L"),et=["*"];function nt(t,e){if(1&t){var n=i.Pb();i.Ob(0,"div",2),i.Vb("click",function(){return i.kc(n),i.Xb()._onBackdropClicked()}),i.Nb()}if(2&t){var r=i.Xb();i.Bb("mat-drawer-shown",r._isShowingBackdrop())}}function rt(t,e){1&t&&(i.Ob(0,"mat-drawer-content"),i.bc(1,2),i.Nb())}var it=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ot=["mat-drawer","mat-drawer-content","*"];function at(t,e){if(1&t){var n=i.Pb();i.Ob(0,"div",2),i.Vb("click",function(){return i.kc(n),i.Xb()._onBackdropClicked()}),i.Nb()}if(2&t){var r=i.Xb();i.Bb("mat-drawer-shown",r._isShowingBackdrop())}}function st(t,e){1&t&&(i.Ob(0,"mat-sidenav-content",3),i.bc(1,2),i.Nb())}var ut,ct,lt,ht,ft,dt,vt,pt,mt,yt,gt,bt=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_t=["mat-sidenav","mat-sidenav-content","*"],kt=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",wt={transformDrawer:Object(Y.j)("transform",[Object(Y.g)("open, open-instant",Object(Y.h)({transform:"none",visibility:"visible"})),Object(Y.g)("void",Object(Y.h)({"box-shadow":"none",visibility:"hidden"})),Object(Y.i)("void => open-instant",Object(Y.e)("0ms")),Object(Y.i)("void <=> open, open-instant => void",Object(Y.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},St=new i.q("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Ct=new i.q("MAT_DRAWER_CONTAINER"),Ot=((ft=function(t){u(n,t);var e=l(n);function n(t,r,i,o,a){var s;return p(this,n),(s=e.call(this,i,o,a))._changeDetectorRef=t,s._container=r,s}return y(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})}}]),n}(H.a)).\u0275fac=function(t){return new(t||ft)(i.Jb(i.h),i.Jb(Object(i.T)(function(){return xt})),i.Jb(i.l),i.Jb(H.c),i.Jb(i.z))},ft.\u0275cmp=i.Db({type:ft,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&i.pc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[i.wb],ngContentSelectors:et,decls:1,vars:0,template:function(t,e){1&t&&(i.cc(),i.bc(0))},encapsulation:2,changeDetection:0}),ft),Et=((ht=function(){function t(e,n,r,o,a,s,u){var c=this;p(this,t),this._elementRef=e,this._focusTrapFactory=n,this._focusMonitor=r,this._platform=o,this._ngZone=a,this._doc=s,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new d.a,this._animationEnd=new d.a,this._animationState="void",this.openedChange=new i.n(!0),this._openedStream=this.openedChange.pipe(Object(q.a)(function(t){return t}),Object(W.a)(function(){})),this.openedStart=this._animationStarted.pipe(Object(q.a)(function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")}),G(void 0)),this._closedStream=this.openedChange.pipe(Object(q.a)(function(t){return!t}),Object(W.a)(function(){})),this.closedStart=this._animationStarted.pipe(Object(q.a)(function(t){return t.fromState!==t.toState&&"void"===t.toState}),G(void 0)),this._destroyed=new d.a,this.onPositionChanged=new i.n,this._modeChanged=new d.a,this.openedChange.subscribe(function(t){t?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus()}),this._ngZone.runOutsideAngular(function(){Object(z.a)(c._elementRef.nativeElement,"keydown").pipe(Object(q.a)(function(t){return t.keyCode===b.g&&!c.disableClose&&!Object(b.q)(t)}),Object(v.a)(c._destroyed)).subscribe(function(t){return c._ngZone.run(function(){c.close(),t.stopPropagation(),t.preventDefault()})})}),this._animationEnd.pipe(Object(Z.a)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&c.openedChange.emit(c._opened)})}return y(t,[{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var t,e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,e=arguments.length>1?arguments[1]:void 0;return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}},{key:"_setOpen",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=r):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(t){n.openedChange.pipe(Object(X.a)(1)).subscribe(function(e){return t(e?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}},{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=Object(f.b)(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=Object(f.b)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle(Object(f.b)(t))}}]),t}()).\u0275fac=function(t){return new(t||ht)(i.Jb(i.l),i.Jb(g.f),i.Jb(g.e),i.Jb(U.a),i.Jb(i.z),i.Jb(a.d,8),i.Jb(Ct,8))},ht.\u0275cmp=i.Db({type:ht,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&i.qc("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(i.Ab("align",null),i.rc("@transform",e._animationState),i.Bb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:et,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(i.cc(),i.Ob(0,"div",0),i.bc(1),i.Nb())},encapsulation:2,data:{animation:[wt.transformDrawer]},changeDetection:0}),ht),xt=((lt=function(){function t(e,n,r,o,a){var s=this,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0;p(this,t),this._dir=e,this._element=n,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=c,this._drawers=new i.D,this.backdropClick=new i.n,this._destroyed=new d.a,this._doCheckSubject=new d.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.a,e&&e.change.pipe(Object(v.a)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe(Object(v.a)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=u}return y(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe(Object(m.a)(this._allDrawers),Object(v.a)(this._destroyed)).subscribe(function(e){t._drawers.reset(e.filter(function(e){return!e._container||e._container===t})),t._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(m.a)(null)).subscribe(function(){t._validateDrawers(),t._drawers.forEach(function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)}),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._doCheckSubject.pipe(Object($.a)(10),Object(v.a)(t._destroyed)).subscribe(function(){return t.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(t){return t.open()})}},{key:"close",value:function(){this._drawers.forEach(function(t){return t.close()})}},{key:"updateContentMargins",value:function(){var t=this,e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){var r=this._left._getWidth();e+=r,n-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var i=this._right._getWidth();n+=i,e-=i}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run(function(){return t._contentMarginChanges.next(t._contentMargins)}))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return t._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe(Object(q.a)(function(t){return t.fromState!==t.toState}),Object(v.a)(this._drawers.changes)).subscribe(function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(v.a)(this._drawers.changes)).subscribe(function(){return e._setContainerClass(t.opened)})}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe(Object(v.a)(this._drawers.changes)).subscribe(function(){e._ngZone.onMicrotaskEmpty.pipe(Object(X.a)(1)).subscribe(function(){e._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe(Object(v.a)(Object(B.a)(this._drawers.changes,this._destroyed))).subscribe(function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach(function(e){"end"==e.position?t._end=e:t._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var t=this;[this._start,this._end].filter(function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)}).forEach(function(t){return t._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=Object(f.b)(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:Object(f.b)(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),t}()).\u0275fac=function(t){return new(t||lt)(i.Jb(tt.b,8),i.Jb(i.l),i.Jb(i.z),i.Jb(i.h),i.Jb(H.e),i.Jb(St),i.Jb(o.a,8))},lt.\u0275cmp=i.Db({type:lt,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var r;1&t&&(i.Cb(n,Ot,!0),i.Cb(n,Et,!0)),2&t&&(i.ic(r=i.Wb())&&(e._content=r.first),i.ic(r=i.Wb())&&(e._allDrawers=r))},viewQuery:function(t,e){var n;1&t&&i.wc(Ot,!0),2&t&&i.ic(n=i.Wb())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&i.Bb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i.yb([{provide:Ct,useExisting:lt}])],ngContentSelectors:ot,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(i.cc(it),i.sc(0,nt,1,2,"div",0),i.bc(1),i.bc(2,1),i.sc(3,rt,2,0,"mat-drawer-content",1)),2&t&&(i.dc("ngIf",e.hasBackdrop),i.zb(3),i.dc("ngIf",!e._content))},directives:[a.l,Ot],styles:[kt],encapsulation:2,changeDetection:0}),lt),Tt=((ct=function(t){u(n,t);var e=l(n);function n(t,r,i,o,a){return p(this,n),e.call(this,t,r,i,o,a)}return n}(Ot)).\u0275fac=function(t){return new(t||ct)(i.Jb(i.h),i.Jb(Object(i.T)(function(){return It})),i.Jb(i.l),i.Jb(H.c),i.Jb(i.z))},ct.\u0275cmp=i.Db({type:ct,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&i.pc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[i.wb],ngContentSelectors:et,decls:1,vars:0,template:function(t,e){1&t&&(i.cc(),i.bc(0))},encapsulation:2,changeDetection:0}),ct),At=((ut=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return y(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=Object(f.b)(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=Object(f.e)(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=Object(f.e)(t)}}]),n}(Et)).\u0275fac=function(t){return jt(t||ut)},ut.\u0275cmp=i.Db({type:ut,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(i.Ab("align",null),i.pc("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),i.Bb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.wb],ngContentSelectors:et,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(i.cc(),i.Ob(0,"div",0),i.bc(1),i.Nb())},encapsulation:2,data:{animation:[wt.transformDrawer]},changeDetection:0}),ut),jt=i.Qb(At),It=((dt=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return n}(xt)).\u0275fac=function(t){return Rt(t||dt)},dt.\u0275cmp=i.Db({type:dt,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var r;1&t&&(i.Cb(n,Tt,!0),i.Cb(n,At,!0)),2&t&&(i.ic(r=i.Wb())&&(e._content=r.first),i.ic(r=i.Wb())&&(e._allDrawers=r))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&i.Bb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[i.yb([{provide:Ct,useExisting:dt}]),i.wb],ngContentSelectors:_t,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(i.cc(bt),i.sc(0,at,1,2,"div",0),i.bc(1),i.bc(2,1),i.sc(3,st,2,0,"mat-sidenav-content",1)),2&t&&(i.dc("ngIf",e.hasBackdrop),i.zb(3),i.dc("ngIf",!e._content))},directives:[a.l,Tt,H.a],styles:[kt],encapsulation:2,changeDetection:0}),dt),Rt=i.Qb(It),Nt=((vt=function t(){p(this,t)}).\u0275mod=i.Hb({type:vt}),vt.\u0275inj=i.Gb({factory:function(t){return new(t||vt)},imports:[[a.c,h.e,U.b,H.b],H.b,h.e]}),vt),Dt=["*",[["mat-toolbar-row"]]],Pt=["*","mat-toolbar-row"],Ft=Object(h.r)(function t(e){p(this,t),this._elementRef=e}),Lt=((yt=function t(){p(this,t)}).\u0275fac=function(t){return new(t||yt)},yt.\u0275dir=i.Eb({type:yt,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),yt),Vt=((mt=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t))._platform=r,o._document=i,o}return y(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(Ft)).\u0275fac=function(t){return new(t||mt)(i.Jb(i.l),i.Jb(U.a),i.Jb(a.d))},mt.\u0275cmp=i.Db({type:mt,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var r;1&t&&i.Cb(n,Lt,!0),2&t&&i.ic(r=i.Wb())&&(e._toolbarRows=r)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&i.Bb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.wb],ngContentSelectors:Pt,decls:2,vars:0,template:function(t,e){1&t&&(i.cc(Dt),i.bc(0),i.bc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),mt),Mt=((pt=function t(){p(this,t)}).\u0275mod=i.Hb({type:pt}),pt.\u0275inj=i.Gb({factory:function(t){return new(t||pt)},imports:[[h.e],h.e]}),pt),Ut=r("tk/3"),Ht=r("OtPg"),zt=r("9r3w"),Bt=r("ZDaG"),qt=r("OCPU"),Wt=r("P3kg"),Jt=r("5+tZ"),Gt=r("RJIb"),Kt=function t(e){p(this,t),this.whitelistedUrls=e&&e.whitelistedUrls||[]},Qt=((gt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Kt;p(this,t),this.tokens=e,this.options=n}return y(t,[{key:"intercept",value:function(t,e){return this.isWhitelistedUrl(t)?this.tokens.getValidAccessToken().pipe(Object(Jt.a)(function(n){return e.handle(t.clone({setHeaders:{Authorization:"Bearer "+n}}))})):e.handle(t)}},{key:"isWhitelistedUrl",value:function(t){var e=t.url;return this.options.whitelistedUrls.findIndex(function(t){return"string"==typeof t?t===e:t instanceof RegExp&&t.test(e)})>-1}}]),t}()).\u0275fac=function(t){return new(t||gt)(i.Sb(Gt.a),i.Sb(Kt))},gt.\u0275prov=i.Fb({token:gt,factory:gt.\u0275fac}),gt),Zt=r("CYhE"),Xt=r("s2Hm"),$t=r("iVJa"),Yt=r("og18"),te=r("3/4O"),ee=r("2Vo4"),ne=r("itXk"),re=r("Zy1z");function ie(t){return{principal:(t=t||{}).user_name||t.username||t.email||null,authorities:t.authorities||[],details:t}}var oe,ae,se=function t(e){p(this,t),this.mapper=e&&e.mapper||ie},ue=r("JkW8"),ce=r("d8a0"),le=((oe=function(t){u(r,t);var e=l(r);function r(t,n){var i;return p(this,r),(i=e.call(this)).tokensService=t,i.options=n,i.subject=new ee.a(null),i.subject$=i.subject.asObservable(),i.principal$=i.subject$.pipe(Object(W.a)(function(t){return t&&t.principal||null})),i.authorities$=i.subject$.pipe(Object(W.a)(function(t){return t&&t.authorities||[]})),i.details$=i.subject$.pipe(Object(W.a)(function(t){return t&&t.details||null})),i.displayName$=i.details$.pipe(Object(W.a)(function(t){return t&&t.displayName||null})),i.isAuthorized$=i.authorities$.pipe(Object(W.a)(function(t){return t.length>0})),i.changes$=i.subject$.pipe(Object(re.a)(),Object(q.a)(function(t){return t[0]!==t[1]&&(t[0]&&t[0].principal||null)!==(t[1]&&t[1].principal||null)}),Object(W.a)(function(t){return t[1]})),i.sub=i.tokensService.accessToken$.subscribe(function(t){i.decode(t)}),i}return y(r,[{key:"ngOnDestroy",value:function(){this.sub.unsubscribe(),this.subject.complete()}},{key:"setSubject",value:function(t){this.subject.next(t)}},{key:"getSubject",value:function(){return this.subject.getValue()}},{key:"getAuthorities",value:function(){var t=this.subject.getValue();return t&&t.authorities||[]}},{key:"updateDetails",value:function(t){var e=this.getSubject();e&&this.subject.next(Object.assign(Object.assign({},e),{details:t}))}},{key:"isAuthenticated",value:function(){var t=this;return Object(ne.b)([this.tokensService.accessToken$,this.tokensService.refreshToken$]).pipe(Object(X.a)(1),Object(W.a)(function(e){var r=n(e,2),i=r[0],o=r[1];return!(!i&&!o)&&(i?t.tokensService.getAuthenticationFlowType(i)===ce.b.CLIENT_CREDENTIALS||!ue.a.isTokenExpired(i)||o&&!ue.a.isTokenExpired(o):!ue.a.isTokenExpired(o))}))}},{key:"clear",value:function(){this.subject.next(null)}},{key:"decode",value:function(t){var e=ue.a.decodeToken(t);this.setSubject(this.options.mapper(e))}}]),r}(Wt.b)).\u0275fac=function(t){return new(t||oe)(i.Sb(Gt.a),i.Sb(se))},oe.\u0275prov=i.Fb({token:oe,factory:oe.\u0275fac}),oe),he=r("RWdr"),fe=r("Pv2G"),de=r("ngFo"),ve=((ae=function(){function t(e){p(this,t),this.tokens=e}return y(t,[{key:"authenticate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Ut.e,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Ut.d;return this.tokens.authenticateWithClientCredentials(t,e)}},{key:"clear",value:function(){this.tokens.clear()}}]),t}()).\u0275fac=function(t){return new(t||ae)(i.Sb(Gt.a))},ae.\u0275prov=i.Fb({token:ae,factory:ae.\u0275fac}),ae);function pe(t){return function(e){return new fe.a(e,new $t.a(t))}}function me(t){return function(e){return new de.a(e,new Yt.a(t))}}function ye(t){return function(e){return new le(e,new se(t))}}function ge(t){return function(e){return new Qt(e,new Kt(t))}}var be,_e,ke,we,Se=((be=function(){function t(){p(this,t)}return y(t,null,[{key:"forRoot",value:function(){var e,n,r,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[{provide:Gt.a,useFactory:(e=o.tokens,n=o.passwordFlow,r=o.authorizationCodeFlow,i=o.clientCredentialsFlow,function(t){return new Gt.a(t,new Zt.a(e),new Xt.a(n),new Yt.a(r),new te.a(i))}),deps:[Ut.b]},{provide:he.a,useFactory:function(t){return new he.a(t)},deps:[Gt.a]},{provide:fe.a,useFactory:pe(o.implicitFlow),deps:[Gt.a]},{provide:de.a,useFactory:me(o.authorizationCodeFlow),deps:[Gt.a]},{provide:ve,useFactory:function(t){return new ve(t)},deps:[Gt.a]},{provide:Wt.b,useFactory:ye(o.subject),deps:[Gt.a]},{provide:Ut.a,useFactory:ge(o.interceptor),deps:[Gt.a],multi:!0}]}}}]),t}()).\u0275mod=i.Hb({type:be}),be.\u0275inj=i.Gb({factory:function(t){return new(t||be)}}),be),Ce=r("tyNb"),Oe=[{path:"home",loadChildren:function(){return Promise.all([r.e(0),r.e(8)]).then(r.bind(null,"ct+p")).then(function(t){return t.HomeModule})},data:{title:"ngx-security",pageTitle:"Home",pageIcon:"home"}},{path:"core",loadChildren:function(){return Promise.all([r.e(0),r.e(7)]).then(r.bind(null,"pKmL")).then(function(t){return t.CoreModule})},data:{title:"ngx-security/core",pageTitle:"Core",pageIcon:"security"}},{path:"roles",loadChildren:function(){return Promise.all([r.e(0),r.e(10)]).then(r.bind(null,"ESCD")).then(function(t){return t.RolesModule})},data:{title:"ngx-security/roles",pageTitle:"Roles",pageIcon:"security"}},{path:"permissions",loadChildren:function(){return Promise.all([r.e(0),r.e(9)]).then(r.bind(null,"jl54")).then(function(t){return t.PermissionsModule})},data:{title:"ngx-security/permissions",pageTitle:"Permissions",pageIcon:"security"}},{path:"auth",loadChildren:function(){return Promise.all([r.e(0),r.e(6)]).then(r.bind(null,"Yj9t")).then(function(t){return t.AuthModule})},data:{title:"ngx-security/auth",pageTitle:"Auth",pageIcon:"security"}},{path:"",redirectTo:"/home",pathMatch:"full"}],Ee=((_e=function t(){p(this,t)}).\u0275mod=i.Hb({type:_e}),_e.\u0275inj=i.Gb({factory:function(t){return new(t||_e)},imports:[[Ce.f.forRoot(Oe)],Ce.f]}),_e),xe=r("kiQV").version,Te=((ke=function t(e,n){p(this,t),this.version=xe,this.pageInfo$=e.events.pipe(Object(q.a)(function(t){return t instanceof Ce.b}),Object(W.a)(function(){return n}),Object(W.a)(function(t){return t.firstChild||t}),Object(q.a)(function(t){return"primary"===t.outlet}),Object(Jt.a)(function(t){return t.data}),Object(W.a)(function(t){return t||{}}))}).\u0275fac=function(t){return new(t||ke)(i.Jb(Ce.c),i.Jb(Ce.a))},ke.\u0275cmp=i.Db({type:ke,selectors:[["app-root"]],decls:50,vars:10,consts:[["color","primary"],["mat-icon-button","",3,"click"],[1,"app-name"],["mode","side"],["nav",""],["routerLink","home","routerLinkActive","active",2,"border-left-color","#f5f5f5"],["matListIcon",""],["matLine",""],["routerLink","core","routerLinkActive","active",2,"border-left-color","#75ff03"],["routerLink","roles","routerLinkActive","active",2,"border-left-color","#feff00"],["routerLink","permissions","routerLinkActive","active",2,"border-left-color","#feff00"],["routerLink","auth","routerLinkActive","active",2,"border-left-color","#ff9100"],[2,"margin-left","8px"],[1,"page-container"]],template:function(t,e){if(1&t){var n=i.Pb();i.Ob(0,"mat-toolbar",0),i.Ob(1,"mat-toolbar-row"),i.Ob(2,"button",1),i.Vb("click",function(){return i.kc(n),i.jc(12).toggle()}),i.Ob(3,"mat-icon"),i.tc(4,"menu"),i.Nb(),i.Nb(),i.Ob(5,"h1",2),i.tc(6),i.Yb(7,"async"),i.Nb(),i.Ob(8,"span"),i.tc(9),i.Nb(),i.Nb(),i.Nb(),i.Ob(10,"mat-sidenav-container"),i.Ob(11,"mat-sidenav",3,4),i.Ob(13,"mat-nav-list"),i.Ob(14,"mat-list-item",5),i.Ob(15,"mat-icon",6),i.tc(16,"home"),i.Nb(),i.Ob(17,"h1",7),i.tc(18,"Home"),i.Nb(),i.Nb(),i.Ob(19,"mat-list-item",8),i.Ob(20,"mat-icon",6),i.tc(21,"security"),i.Nb(),i.Ob(22,"h1",7),i.tc(23,"Core"),i.Nb(),i.Nb(),i.Ob(24,"mat-list-item",9),i.Ob(25,"mat-icon",6),i.tc(26,"security"),i.Nb(),i.Ob(27,"h1",7),i.tc(28,"Roles"),i.Nb(),i.Nb(),i.Ob(29,"mat-list-item",10),i.Ob(30,"mat-icon",6),i.tc(31,"security"),i.Nb(),i.Ob(32,"h1",7),i.tc(33,"Permissions"),i.Nb(),i.Nb(),i.Ob(34,"mat-list-item",11),i.Ob(35,"mat-icon",6),i.tc(36,"security"),i.Nb(),i.Ob(37,"h1",7),i.tc(38,"Auth"),i.Nb(),i.Nb(),i.Nb(),i.Nb(),i.Ob(39,"mat-sidenav-content"),i.Ob(40,"mat-toolbar"),i.Ob(41,"mat-toolbar-row"),i.Ob(42,"mat-icon"),i.tc(43),i.Yb(44,"async"),i.Nb(),i.Ob(45,"h1",12),i.tc(46),i.Yb(47,"async"),i.Nb(),i.Nb(),i.Nb(),i.Ob(48,"div",13),i.Kb(49,"router-outlet"),i.Nb(),i.Nb(),i.Nb()}var r,o,a;2&t&&(i.zb(6),i.uc(null==(r=i.Zb(7,4,e.pageInfo$))?null:r.title),i.zb(3),i.uc(e.version),i.zb(34),i.uc(null==(o=i.Zb(44,6,e.pageInfo$))?null:o.pageIcon),i.zb(3),i.uc(null==(a=i.Zb(47,8,e.pageInfo$))?null:a.pageTitle))},directives:[Vt,Lt,s.a,c.a,It,At,D,V,Ce.d,Ce.e,L,h.f,Tt,Ce.g],pipes:[a.b],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:stretch;height:100%}[_nghost-%COMP%] h1.app-name[_ngcontent-%COMP%]{flex:1;margin-left:8px}[_nghost-%COMP%] mat-sidenav-container[_ngcontent-%COMP%]{flex:1 1 100%}[_nghost-%COMP%] .page-container[_ngcontent-%COMP%]{padding:1em;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] mat-list-item[_ngcontent-%COMP%]{border-left:3px solid}[_nghost-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(.active){border-left-color:transparent!important}"]}),ke),Ae=r("hCJx"),je=r("8Cu2"),Ie=((we=function t(){p(this,t)}).\u0275mod=i.Hb({type:we,bootstrap:[Te]}),we.\u0275inj=i.Gb({factory:function(t){return new(t||we)},providers:[{provide:a.i,useClass:a.e},{provide:Ht.a,useValue:{coreLibraryLoader:function(){return r.e(11).then(r.t.bind(null,"ECCn",7))},languages:{typescript:function(){return r.e(13).then(r.t.bind(null,"r0Rl",7))},scss:function(){return r.e(12).then(r.t.bind(null,"YROV",7))},xml:function(){return r.e(14).then(r.t.bind(null,"jctj",7))}}}}],imports:[[o.b,Ee,Ut.c,Mt,Nt,M,s.b,c.b,Ht.c,zt.a.forRoot(),Bt.a.forRoot({subjectRoles:{provide:Ae.b,useClass:Ae.c}}),qt.a.forRoot({subjectPermissions:{provide:je.b,useClass:je.c}}),Se.forRoot({passwordFlow:{tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret",useHttpBasicAuth:!0},implicitFlow:{loginUrl:"loginUrl",clientId:"clientId"},authorizationCodeFlow:{loginUrl:"loginUrl",tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret",useHttpBasicAuth:!0},clientCredentialsFlow:{tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret"},tokens:{mapper:function(t){return{accessToken:(t=t||{}).access_token||t.accessToken||null,refreshToken:t.refresh_token||t.refreshToken||null}}},subject:{mapper:function(t){return{principal:(t=t||{}).user_name||t.username||t.email||null,authorities:t.authorities||[],details:t}}},interceptor:{whitelistedUrls:[new RegExp(".*/my-api.*")]}})]]}),we),Re=r("jhN1");Object(i.S)(),Re.c().bootstrapModule(Ie).catch(function(t){return console.log(t)})},zx2A:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return c});var r=n("7o/Q"),i=n("HDdC"),o=n("SeVD"),a=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this)).parent=t,r}return y(n,[{key:"_next",value:function(t){this.parent.notifyNext(t)}},{key:"_error",value:function(t){this.parent.notifyError(t),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(r.a),s=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"notifyNext",value:function(t){this.destination.next(t)}},{key:"notifyError",value:function(t){this.destination.error(t)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(r.a);function c(t,e){if(!e.closed)return t instanceof i.a?t.subscribe(e):Object(o.a)(t)(e)}}},[[0,1]]])}(); \ No newline at end of file +!function(){function t(n){var r="function"==typeof Map?new Map:void 0;return(t=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,i)}function i(){return e(t,arguments,v(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),c(i,t)})(n)}function e(t,n,r){return(e=d()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&c(i,n.prototype),i}).apply(null,arguments)}function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||a(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]&&arguments[0],r=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];p(this,t),this._multiple=n,this._emitChanges=i,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new a.a,r&&r.length&&(n?r.forEach(function(t){return e._markSelected(t)}):this._markSelected(r[0]),this._selectedToEmit.length=0)}return y(t,[{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),n}(function(t){u(n,t);var e=l(n);function n(t,r){return p(this,n),e.call(this)}return y(n,[{key:"schedule",value:function(t){return this}}]),n}(n("quSY").a))},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",function(){return b}),n.d(e,"b",function(){return pt}),n.d(e,"c",function(){return Ct}),n.d(e,"d",function(){return Et}),n.d(e,"e",function(){return At}),n.d(e,"f",function(){return f}),n.d(e,"g",function(){return M}),n.d(e,"h",function(){return H}),n.d(e,"i",function(){return z}),n.d(e,"j",function(){return _t}),n.d(e,"k",function(){return jt}),n.d(e,"l",function(){return kt});var i=n("fXoL"),a=n("ofXK"),s=n("cp0P"),c=n("Cfvw"),h=n("lJxs"),f=new i.q("NgValueAccessor"),d={provide:f,useExisting:Object(i.T)(function(){return v}),multi:!0},v=function(){var t=function(){function t(e,n){p(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return y(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.E),i.Jb(i.l))},t.\u0275dir=i.Eb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&i.Vb("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[i.yb([d])]}),t}(),m={provide:f,useExisting:Object(i.T)(function(){return b}),multi:!0},g=new i.q("CompositionEventMode"),b=function(){var t=function(){function t(e,n,r){var i;p(this,t),this._renderer=e,this._elementRef=n,this._compositionMode=r,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=Object(a.u)()?Object(a.u)().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return y(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.E),i.Jb(i.l),i.Jb(g,8))},t.\u0275dir=i.Eb({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&&i.Vb("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:[i.yb([m])]}),t}();function _(t){return null==t||0===t.length}function k(t){return null!=t&&"number"==typeof t.length}var w=new i.q("NgValidators"),S=new i.q("NgAsyncValidators"),C=/^(?=.{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])?)*$/,O=function(){function t(){p(this,t)}return y(t,null,[{key:"min",value:function(t){return function(e){if(_(e.value)||_(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return _(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return _(t.value)||C.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){return _(e.value)||!k(e.value)?null:e.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}},{key:"pattern",value:function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(_(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r}},{key:"nullValidator",value:function(t){return null}},{key:"compose",value:function(t){if(!t)return null;var e=t.filter(E);return 0==e.length?null:function(t){return T(A(t,e))}}},{key:"composeAsync",value:function(t){if(!t)return null;var e=t.filter(E);return 0==e.length?null:function(t){var n=A(t,e).map(x);return Object(s.a)(n).pipe(Object(h.a)(T))}}}]),t}();function E(t){return null!=t}function x(t){var e=Object(i.rb)(t)?Object(c.a)(t):t;return Object(i.qb)(e),e}function T(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function A(t,e){return e.map(function(e){return e(t)})}function j(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function I(t){return null!=t?O.compose(j(t)):null}function R(t){return null!=t?O.composeAsync(j(t)):null}function N(t,e){return null===t?[e]:Array.isArray(t)?[].concat(r(t),[e]):[t,e]}function D(t){return t._rawValidators}function P(t){return t._rawAsyncValidators}var F=function(){var t=function(){function t(){p(this,t),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return y(t,[{key:"_setValidators",value:function(t){this._rawValidators=t||[],this._composedValidatorFn=I(this._rawValidators)}},{key:"_setAsyncValidators",value:function(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=R(this._rawAsyncValidators)}},{key:"_registerOnDestroy",value:function(t){this._onDestroyCallbacks.push(t)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(t){return t()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Eb({type:t}),t}(),L=function(){var t=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(F);return t.\u0275fac=function(e){return V(e||t)},t.\u0275dir=i.Eb({type:t,features:[i.wb]}),t}(),V=i.Qb(L),M=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return n}(F),U=function(){function t(e){p(this,t),this._cd=e}return y(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),H=function(){var t=function(t){u(n,t);var e=l(n);function n(t){return p(this,n),e.call(this,t)}return n}(U);return t.\u0275fac=function(e){return new(e||t)(i.Jb(M,2))},t.\u0275dir=i.Eb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Bb("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:[i.wb]}),t}(),z=function(){var t=function(t){u(n,t);var e=l(n);function n(t){return p(this,n),e.call(this,t)}return n}(U);return t.\u0275fac=function(e){return new(e||t)(i.Jb(L,2))},t.\u0275dir=i.Eb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Bb("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:[i.wb]}),t}(),B={provide:f,useExisting:Object(i.T)(function(){return q}),multi:!0},q=function(){var t=function(){function t(e,n){p(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return y(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.E),i.Jb(i.l))},t.\u0275dir=i.Eb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.Vb("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[i.yb([B])]}),t}(),W={provide:f,useExisting:Object(i.T)(function(){return G}),multi:!0},J=function(){var t=function(){function t(){p(this,t),this._accessors=[]}return y(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}},{key:"_isSameGroup",value:function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t}(),G=function(){var t=function(){function t(e,n,r,i){p(this,t),this._renderer=e,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return y(t,[{key:"ngOnInit",value:function(){this._control=this._injector.get(M),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}}},{key:"fireUncheck",value:function(t){this.writeValue(t)}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_checkName",value:function(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.E),i.Jb(i.l),i.Jb(J),i.Jb(i.r))},t.\u0275dir=i.Eb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&i.Vb("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.yb([W])]}),t}(),K={provide:f,useExisting:Object(i.T)(function(){return Q}),multi:!0},Q=function(){var t=function(){function t(e,n){p(this,t),this._renderer=e,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return y(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.E),i.Jb(i.l))},t.\u0275dir=i.Eb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.Vb("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[i.yb([K])]}),t}(),Z={provide:f,useExisting:Object(i.T)(function(){return X}),multi:!0},X=function(){var t=function(){function t(e,n){p(this,t),this._renderer=e,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Object.is}return y(t,[{key:"writeValue",value:function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),"".concat(t,": ").concat(e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)}},{key:"registerOnChange",value:function(t){var e=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o0&&t.setValidators(r.filter(function(t){return t!==e.validator}))}if(null!==e.asyncValidator){var i=P(t);Array.isArray(i)&&i.length>0&&t.setAsyncValidators(i.filter(function(t){return t!==e.asyncValidator}))}}if(n){var o=function(){};et(e._rawValidators,o),et(e._rawAsyncValidators,o)}}function it(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function ot(t,e){nt(t,e,!1)}var at=[v,Q,q,X,Y,G];function st(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ut(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function ct(t){return(dt(t)?t.validators:t)||null}function lt(t){return Array.isArray(t)?I(t):t||null}function ht(t,e){return(dt(e)?e.asyncValidators:t)||null}function ft(t){return Array.isArray(t)?R(t):t||null}function dt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var vt=function(){function t(e,n){p(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=lt(this._rawValidators),this._composedAsyncValidatorFn=ft(this._rawAsyncValidators)}return y(t,[{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=lt(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=ft(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(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(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild(function(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(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=x(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(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;var r=t;return e.forEach(function(t){r=r instanceof mt?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof yt&&r.at(t)||null}),r}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new i.n,this.statusChanges=new i.n}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){dt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}},{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}}]),t}(),pt=function(t){u(n,t);var e=l(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return p(this,n),(t=e.call(this,ct(i),ht(o,i)))._onChange=[],t._applyFormState(r),t._setUpdateStrategy(i),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!o}),t}return y(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){ut(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){ut(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(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}}]),n}(vt),mt=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,ct(r),ht(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return y(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){e._throwIfControlMissing(r),e.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(t).forEach(function(r){e.controls[r]&&e.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof pt?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(vt),yt=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,ct(r),ht(i,r))).controls=t,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!i}),o}return y(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}},{key:"removeAt",value:function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()}},{key:"setControl",value:function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,r){e._throwIfControlMissing(r),e.at(r).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.forEach(function(t,r){e.at(r)&&e.at(r).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof pt?t.value:t.getRawValue()})}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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)}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=o(this.controls);try{for(e.s();!(t=e.n()).done;){if(t.value.enabled)return!1}}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}(vt),gt={provide:L,useExisting:Object(i.T)(function(){return _t})},bt=Promise.resolve(null),_t=function(){var t=function(t){u(n,t);var e=l(n);function n(t,r){var o;return p(this,n),(o=e.call(this)).submitted=!1,o._directives=[],o.ngSubmit=new i.n,o.form=new mt({},I(t),R(r)),o}return y(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(t){var e=this;bt.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),tt(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;bt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),ut(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;bt.then(function(){var n=e._findContainer(t.path),r=new mt({});ot(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;bt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;bt.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,st(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(L);return t.\u0275fac=function(e){return new(e||t)(i.Jb(w,10),i.Jb(S,10))},t.\u0275dir=i.Eb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.Vb("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.yb([gt]),i.wb]}),t}(),kt=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Eb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),wt=new i.q("NgModelWithFormControlWarning"),St={provide:M,useExisting:Object(i.T)(function(){return Ct})},Ct=function(){var t=function(t){u(n,t);var e=l(n);function n(t,r,o,a){var s;return p(this,n),(s=e.call(this))._ngModelWarningConfig=a,s.update=new i.n,s._ngModelWarningSent=!1,s._setValidators(t),s._setAsyncValidators(r),s.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);var n=void 0,r=void 0,i=void 0;return e.forEach(function(t){var e;t.constructor===b?n=t:(e=t,at.some(function(t){return e.constructor===t})?r=t:i=t)}),i||r||n||null}(0,o),s}return y(n,[{key:"ngOnChanges",value:function(t){this._isControlChanged(t)&&(tt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_isControlChanged",value:function(t){return t.hasOwnProperty("form")}},{key:"isDisabled",set:function(t){}},{key:"path",get:function(){return[]}},{key:"control",get:function(){return this.form}}]),n}(M);return t.\u0275fac=function(e){return new(e||t)(i.Jb(w,10),i.Jb(S,10),i.Jb(f,10),i.Jb(wt,8))},t.\u0275dir=i.Eb({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[i.yb([St]),i.wb,i.xb]}),t._ngModelWarningSentOnce=!1,t}(),Ot={provide:L,useExisting:Object(i.T)(function(){return Et})},Et=function(){var t=function(t){u(n,t);var e=l(n);function n(t,r){var o;return p(this,n),(o=e.call(this)).validators=t,o.asyncValidators=r,o.submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new i.n,o._setValidators(t),o._setAsyncValidators(r),o}return y(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return tt(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){ut(this.directives,t)}},{key:"addFormGroup",value:function(t){var e=this.form.get(t.path);ot(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormGroup",value:function(t){}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){var e=this.form.get(t.path);ot(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"removeFormArray",value:function(t){}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,st(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(t){this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){var n=function(){};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),rt(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}(e.control||null,e),n&&tt(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_updateRegistrations",value:function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){nt(this.form,this,!1),this._oldForm&&rt(this._oldForm,this,!1)}},{key:"_checkFormPresent",value:function(){}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}}]),n}(L);return t.\u0275fac=function(e){return new(e||t)(i.Jb(w,10),i.Jb(S,10))},t.\u0275dir=i.Eb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.Vb("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.yb([Ot]),i.wb,i.xb]}),t}(),xt=function(){var t=function t(){p(this,t)};return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)}}),t}(),Tt=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"group",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._reduceControls(t),r=null,i=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new mt(n,{asyncValidators:i,updateOn:o,validators:r})}},{key:"control",value:function(t,e,n){return new pt(t,e,n)}},{key:"array",value:function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new yt(i,e,n)}},{key:"_reduceControls",value:function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n}},{key:"_createControl",value:function(t){return t instanceof pt||t instanceof mt||t instanceof yt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t}(),At=function(){var t=function t(){p(this,t)};return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)},providers:[J],imports:[xt]}),t}(),jt=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:wt,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)},providers:[Tt,J],imports:[xt]}),t}()},"3UWI":function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("D0XW"),i=n("zx2A"),o=function(){function t(e){p(this,t),this.durationSelector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.durationSelector))}}]),t}(),a=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).durationSelector=r,i.hasValue=!1,i}return y(n,[{key:"_next",value:function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e;try{e=(0,this.durationSelector)(t)}catch(r){return this.destination.error(r)}var n=Object(i.c)(e,new i.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(i.b),s=n("PqYM");function c(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a;return e=function(){return Object(s.a)(t,n)},function(t){return t.lift(new o(e))}}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){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 a});var r=n("lJxs"),i=n("Cfvw"),o=n("zx2A");function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(o){return o.pipe(a(function(n,o){return Object(i.a)(t(n,o)).pipe(Object(r.a)(function(t,r){return e(n,t,o,r)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new s(t,n))})}var s=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;p(this,t),this.project=e,this.concurrent=n}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.project,this.concurrent))}}]),t}(),c=function(t){u(n,t);var e=l(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return p(this,n),(i=e.call(this,t)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return y(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(o.b)},"5mAv":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){p(this,t)}return y(t,null,[{key:"decode",value:function(t){var e="";if((t=String(t).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0;r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?e+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return e}},{key:"decodeUnicode",value:function(e){return decodeURIComponent(Array.prototype.map.call(t.decode(e),function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}},{key:"urlDecode",value:function(e){var n=e.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("Illegal base64url string!")}return t.decodeUnicode(n)}},{key:"urlEncode",value:function(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}}]),t}()},"7+OI":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("HDdC");function i(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return d});var r=n("n6bG"),o=n("gRHU"),a=n("quSY"),s=n("2QA8"),c=n("2fFW"),h=n("NJ4a"),d=function(t){u(n,t);var e=l(n);function n(t,r,i){var a;switch(p(this,n),(a=e.call(this)).syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!t){a.destination=o.a;break}if("object"==typeof t){t instanceof n?(a.syncErrorThrowable=t.syncErrorThrowable,a.destination=t,t.add(f(a))):(a.syncErrorThrowable=!0,a.destination=new m(f(a),t));break}default:a.syncErrorThrowable=!0,a.destination=new m(f(a),t,r,i)}return a}return y(n,[{key:s.a,value:function(){return this}},{key:"next",value:function(t){this.isStopped||this._next(t)}},{key:"error",value:function(t){this.isStopped||(this.isStopped=!0,this._error(t))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,i(v(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(t){this.destination.next(t)}},{key:"_error",value:function(t){this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}],[{key:"create",value:function(t,e,r){var i=new n(t,e,r);return i.syncErrorThrowable=!1,i}}]),n}(a.a),m=function(t){u(n,t);var e=l(n);function n(t,i,a,s){var u,c;p(this,n),(u=e.call(this))._parentSubscriber=t;var l=f(u);return Object(r.a)(i)?c=i:i&&(c=i.next,a=i.error,s=i.complete,i!==o.a&&(l=Object.create(i),Object(r.a)(l.unsubscribe)&&u.add(l.unsubscribe.bind(l)),l.unsubscribe=u.unsubscribe.bind(f(u)))),u._context=l,u._next=c,u._error=a,u._complete=s,u}return y(n,[{key:"next",value:function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}},{key:"error",value:function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.a.useDeprecatedSynchronousErrorHandling;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(h.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(h.a)(t)}}}},{key:"complete",value:function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),c.a.useDeprecatedSynchronousErrorHandling)throw n;Object(h.a)(n)}}},{key:"__tryOrSetError",value:function(t,e,n){if(!c.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return c.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(h.a)(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}]),n}(d)},"8Cu2":function(t,e,n){"use strict";n.d(e,"b",function(){return h}),n.d(e,"a",function(){return f}),n.d(e,"c",function(){return d});var i=n("2Vo4"),o=n("lJxs"),a=n("ElX6"),s=n("fXoL"),c=n("P3kg"),h=function(){function t(){p(this,t),this.trie=Object(a.newTrie)()}return y(t,[{key:"apply",value:function(){var t;this.trie.reset(),(t=this.trie).add.apply(t,r(this.getPermissions()))}},{key:"isPermittedAsync",value:function(t){var e=this;return this.permissions$.pipe(Object(o.a)(function(){return e._isPermitted(t)}))}},{key:"isPermitted",value:function(t){return this._isPermitted(t)}},{key:"_isPermitted",value:function(t){return this.trie.check(t)}}]),t}(),f=function(){var t=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this)).subject=t,r.permissions$=r.subject.authorities$,r}return y(n,[{key:"getPermissions",value:function(){return this.subject.getAuthorities()}}]),n}(h);return t.\u0275fac=function(e){return new(e||t)(s.Sb(c.b))},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t}(),d=function(){var t=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.call(this)).permissions=new i.a([]),t.permissions$=t.permissions.asObservable(),t.apply(),t}return y(n,[{key:"ngOnDestroy",value:function(){this.permissions.complete()}},{key:"getPermissions",value:function(){return this.permissions.getValue()}},{key:"update",value:function(t){this.permissions.next(t)}}]),n}(h);return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Fb({token:t,factory:t.\u0275fac}),t}()},"8LU1":function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return i}),n.d(e,"c",function(){return u}),n.d(e,"d",function(){return c}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return l});var r=n("fXoL");function i(t){return null!=t&&""+t!="false"}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function s(t){return Array.isArray(t)?t:[t]}function u(t){return null==t?"":"string"==typeof t?t:t+"px"}function c(t){return t instanceof r.l?t.nativeElement:t}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=t){var r,i=Array.isArray(t)?t:(""+t).split(e),a=o(i);try{for(a.s();!(r=a.n()).done;){var s=r.value,u=(""+s).trim();u&&n.push(u)}}catch(c){a.e(c)}finally{a.f()}}return n}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},"9r3w":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("pfHM"),i=n("fXoL"),o=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.subject||{provide:r.d,useClass:r.a}]}}},{key:"forChild",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)},imports:[[]]}),t}()},BFxc:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");function a(t){return function(e){return 0===t?Object(o.b)():e.lift(new s(t))}}var s=function(){function t(e){if(p(this,t),this.total=e,this.total<0)throw new i.a}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.total))}}]),t}(),c=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).total=r,i.ring=new Array,i.count=0,i}return y(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i1?(u=u||e.slice(n+1),o[s[r]]=i(o[s[r]],u),n=e.length):(a=o,o=o[s[r]])}return u||a&&a.hasOwnProperty("*")||(o["*"]={}),t}function o(t,e){var n,r;for(r=t,(e.length<1||"*"!==e[e.length-1])&&e.push("*"),n=0;n0){var o={};return i.forEach(function(n){o[n]=u(t[n],e)}),i.filter(function(t){return o[t].length>0})}return i}if("$"===n){i=[],Object.keys(t).forEach(function(n){i=i.concat(a(t[n],[].concat(e)))});for(var s=r(i),c=s.length-1;c>=0;c--)"*"===s[c]&&s.splice(c,1);return s}return i=[],t.hasOwnProperty(n)&&(i=i.concat(a(t[n],e))),t.hasOwnProperty("*")&&(i=i.concat(a(t["*"],e))),i}function s(t){var e,n,i=[],o=t.split(":");for(e=0;e1&&void 0!==arguments[1]?arguments[1]:0;return function(t){u(r,t);var n=l(r);function r(){var t;p(this,r);for(var i=arguments.length,o=new Array(i),a=0;a2&&void 0!==arguments[2]?arguments[2]:"mat";t.changes.pipe(Object(d.a)(t)).subscribe(function(t){var r=t.length;D(e,n+"-2-line",!1),D(e,n+"-3-line",!1),D(e,n+"-multi-line",!1),2===r||3===r?D(e,"".concat(n,"-").concat(r,"-line"),!0):r>3&&D(e,n+"-multi-line",!0)})}function D(t,e,n){var r=t.nativeElement.classList;n?r.add(e):r.remove(e)}var P,F,L,V,M,U,H,z,B=((P=function t(){p(this,t)}).\u0275mod=r.Hb({type:P}),P.\u0275inj=r.Gb({factory:function(t){return new(t||P)},imports:[[S],S]}),P),q=function(){function t(e,n,r){p(this,t),this._renderer=e,this.element=n,this.config=r,this.state=3}return y(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),W={enterDuration:450,exitDuration:400},J=Object(f.f)({passive:!0}),G=["mousedown","touchstart"],K=["mouseup","mouseleave","touchend","touchcancel"],Q=function(){function t(e,n,r,i){p(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Object(c.d)(r))}return y(t,[{key:"fadeInRipple",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},W),r.animation);r.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);var a=r.radius||function(t,e,n){var r=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(r*r+i*i)}(t,e,i),s=t-i.left,u=e-i.top,c=o.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=s-a+"px",l.style.top=u-a+"px",l.style.height=2*a+"px",l.style.width=2*a+"px",null!=r.color&&(l.style.backgroundColor=r.color),l.style.transitionDuration=c+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";var h=new q(this,l,r);return h.state=0,this._activeRipples.add(h),r.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===n._mostRecentTransientRipple;h.state=1,r.persistent||t&&n._isPointerDown||h.fadeOut()},c),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,r=Object.assign(Object.assign({},W),t.config.animation);n.style.transitionDuration=r.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,n.parentNode.removeChild(n)},r.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=Object(c.d)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(G))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(K),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=Object(i.h)(t),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,J)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(G.forEach(function(e){t._triggerElement.removeEventListener(e,t,J)}),this._pointerUpEventsRegistered&&K.forEach(function(e){t._triggerElement.removeEventListener(e,t,J)}))}}]),t}(),Z=new r.q("mat-ripple-global-options"),X=((M=function(){function t(e,n,r,i,o){p(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Q(this,n,e,r)}return y(t,[{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}}]),t}()).\u0275fac=function(t){return new(t||M)(r.Jb(r.l),r.Jb(r.z),r.Jb(f.a),r.Jb(Z,8),r.Jb(v.a,8))},M.\u0275dir=r.Eb({type:M,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&r.Bb("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),M),$=((V=function t(){p(this,t)}).\u0275mod=r.Hb({type:V}),V.\u0275inj=r.Gb({factory:function(t){return new(t||V)},imports:[[S,f.b],S]}),V),Y=((L=function t(e){p(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1}).\u0275fac=function(t){return new(t||L)(r.Jb(v.a,8))},L.\u0275cmp=r.Db({type:L,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&r.Bb("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),L),tt=((F=function t(){p(this,t)}).\u0275mod=r.Hb({type:F}),F.\u0275inj=r.Gb({factory:function(t){return new(t||F)},imports:[[S]]}),F),et=C(function t(){p(this,t)}),nt=0,rt=((U=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments))._labelId="mat-optgroup-label-"+nt++,t}return n}(et)).\u0275fac=function(t){return it(t||U)},U.\u0275dir=r.Eb({type:U,inputs:{label:"label"},features:[r.wb]}),U),it=r.Qb(rt),ot=new r.q("MatOptgroup"),at=0,st=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];p(this,t),this.source=e,this.isUserInput=n},ut=new r.q("MAT_OPTION_PARENT_COMPONENT"),ct=((z=function(){function t(e,n,i,o){p(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=o,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+at++,this.onSelectionChange=new r.n,this._stateChanges=new h.a}return y(t,[{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==m.f&&t.keyCode!==m.l||Object(m.q)(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new st(this,t))}},{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=Object(c.b)(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}}]),t}()).\u0275fac=function(t){return new(t||z)(r.Jb(r.l),r.Jb(r.h),r.Jb(void 0),r.Jb(rt))},z.\u0275dir=r.Eb({type:z,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),z),lt=((H=function(t){u(n,t);var e=l(n);function n(t,r,i,o){return p(this,n),e.call(this,t,r,i,o)}return n}(ct)).\u0275fac=function(t){return new(t||H)(r.Jb(r.l),r.Jb(r.h),r.Jb(ut,8),r.Jb(ot,8))},H.\u0275cmp=r.Db({type:H,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&r.Vb("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(r.Rb("id",e.id),r.Ab("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),r.Bb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[r.wb],ngContentSelectors:_,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(r.cc(),r.sc(0,g,1,2,"mat-pseudo-checkbox",0),r.Ob(1,"span",1),r.bc(2),r.Nb(),r.Kb(3,"div",2)),2&t&&(r.dc("ngIf",e.multiple),r.zb(3),r.dc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[s.l,X,Y],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),H);function ht(t,e,n){if(n.length){for(var r=e.toArray(),i=n.toArray(),o=0,a=0;an+r?Math.max(0,t-r+e):n}var dt,vt=((dt=function t(){p(this,t)}).\u0275mod=r.Hb({type:dt}),dt.\u0275inj=r.Gb({factory:function(t){return new(t||dt)},imports:[[$,s.c,S,tt]]}),dt)},FtGj:function(t,e,n){"use strict";n.d(e,"a",function(){return y}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return v}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return u}),n.d(e,"f",function(){return o}),n.d(e,"g",function(){return a}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return l}),n.d(e,"j",function(){return m}),n.d(e,"k",function(){return f}),n.d(e,"l",function(){return s}),n.d(e,"m",function(){return i}),n.d(e,"n",function(){return h}),n.d(e,"o",function(){return g}),n.d(e,"p",function(){return p}),n.d(e,"q",function(){return b});var r=8,i=9,o=13,a=27,s=32,u=35,c=36,l=37,h=38,f=39,d=40,v=46,p=48,m=57,y=65,g=90;function b(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:t.now;p(this,t),this.SchedulerAction=e,this.now=n}return y(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),o=function(t){u(n,t);var e=l(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return p(this,n),(i=e.call(this,t,function(){return n.delegate&&n.delegate!==f(i)?n.delegate.now():o()})).actions=[],i.active=!1,i.scheduled=void 0,i}return y(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,r):i(v(n.prototype),"schedule",this).call(this,t,e,r)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var 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}}}}]),n}(r)},IzEk:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("7o/Q"),i=n("4I5i"),o=n("EY2u");function a(t){return function(e){return 0===t?Object(o.b)():e.lift(new s(t))}}var s=function(){function t(e){if(p(this,t),this.total=e,this.total<0)throw new i.a}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.total))}}]),t}(),c=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).total=r,i.count=0,i}return y(n,[{key:"_next",value:function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}]),n}(r.a)},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("zx2A");function o(t){return function(e){var n=new a(t),r=e.lift(n);return n.caught=r}}var a=function(){function t(e){p(this,t),this.selector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.selector,this.caught))}}]),t}(),s=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t)).selector=r,o.caught=i,o}return y(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void i(v(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new r.a(this);this.add(o);var a=Object(r.c)(e,o);a!==o&&this.add(a)}}}]),n}(r.b)},JX91:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("LRne"),i=n("0EUg");function o(){return Object(i.a)()(Object(r.a).apply(void 0,arguments))}var a=n("z+Ro");function s(){for(var t=arguments.length,e=new Array(t),n=0;n(new Date).valueOf()+1e3*n)}},{key:"getTokenClientId",value:function(e){var n=t.decodeToken(e);return n&&n.hasOwnProperty("client_id")?n.client_id:null}}]),t}()},Kj3r:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("7o/Q"),i=n("D0XW");function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;return function(n){return n.lift(new a(t,e))}}var a=function(){function t(e,n){p(this,t),this.dueTime=e,this.scheduler=n}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))}}]),t}(),s=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t)).dueTime=r,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return y(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(c,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(r.a);function c(t){t.debouncedNext()}},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("z+Ro"),i=n("yCtX"),o=n("jZKg");function a(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:t;return this._fontCssClassesByAlias.set(t,e),this}},{key:"classNameForFontAlias",value:function(t){return this._fontCssClassesByAlias.get(t)||t}},{key:"setDefaultFontSetClass",value:function(t){return this._defaultFontSetClass=t,this}},{key:"getDefaultFontSetClass",value:function(){return this._defaultFontSetClass}},{key:"getSvgIconFromUrl",value:function(t){var e=this,n=this._sanitizer.sanitize(i.I.RESOURCE_URL,t);if(!n)throw E(t);var r=this._cachedIconsByUrl.get(n);return r?Object(c.a)(j(r)):this._loadSvgIconFromConfig(new T(t,null)).pipe(Object(v.a)(function(t){return e._cachedIconsByUrl.set(n,t)}),Object(m.a)(function(t){return j(t)}))}},{key:"getNamedSvgIcon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=I(e,t),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):Object(h.a)(O(n))}},{key:"ngOnDestroy",value:function(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}},{key:"_getSvgFromConfig",value:function(t){return t.svgText?Object(c.a)(j(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(m.a)(function(t){return j(t)}))}},{key:"_getSvgFromIconSetConfigs",value:function(t,e){var n=this,r=this._extractIconWithNameFromAnySet(t,e);if(r)return Object(c.a)(r);var o=e.filter(function(t){return!t.svgText}).map(function(t){return n._loadSvgIconSetFromConfig(t).pipe(Object(g.a)(function(e){var r=n._sanitizer.sanitize(i.I.RESOURCE_URL,t.url);return n._errorHandler.handleError(new Error("Loading icon set URL: ".concat(r," failed: ").concat(e.message))),Object(c.a)(null)}))});return Object(f.a)(o).pipe(Object(m.a)(function(){var r=n._extractIconWithNameFromAnySet(t,e);if(!r)throw O(t);return r}))}},{key:"_extractIconWithNameFromAnySet",value:function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.svgText&&r.svgText.indexOf(t)>-1){var i=this._svgElementFromConfig(r),o=this._extractSvgIconFromSet(i,t,r.options);if(o)return o}}return null}},{key:"_loadSvgIconFromConfig",value:function(t){var e=this;return this._fetchIcon(t).pipe(Object(v.a)(function(e){return t.svgText=e}),Object(m.a)(function(){return e._svgElementFromConfig(t)}))}},{key:"_loadSvgIconSetFromConfig",value:function(t){return t.svgText?Object(c.a)(null):this._fetchIcon(t).pipe(Object(v.a)(function(e){return t.svgText=e}))}},{key:"_extractSvgIconFromSet",value:function(t,e,n){var r=t.querySelector('[id="'.concat(e,'"]'));if(!r)return null;var i=r.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);var o=this._svgElementFromString("");return o.appendChild(i),this._setSvgAttributes(o,n)}},{key:"_svgElementFromString",value:function(t){var e=this._document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error(" tag not found");return n}},{key:"_toSvgElement",value:function(t){for(var e=this._svgElementFromString(""),n=t.attributes,r=0;r=2;return function(c){return c.pipe(t?Object(i.a)(function(e,n){return t(e,n,c)}):u.a,Object(o.a)(1),n?Object(s.a)(e):Object(a.a)(function(){return new r.a}))}}},NXyV:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("HDdC"),i=n("Cfvw"),o=n("EY2u");function a(t){return new r.a(function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(i.a)(n):Object(o.b)()).subscribe(e)})}},OCPU:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("P3kg"),i=n("8Cu2"),o=n("fXoL"),a=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.subject||{provide:r.b,useClass:r.a},e.subjectPermissions||{provide:i.b,useClass:i.a}]}}},{key:"forChild",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)}}),t}()},OtPg:function(t,e,i){"use strict";i.d(e,"a",function(){return L}),i.d(e,"b",function(){return H}),i.d(e,"c",function(){return z});var o,a,s,c,h=i("fXoL"),f=i("2Vo4"),d=i("EY2u"),v=i("z6cu"),m=i("yCtX"),g=i("DH7j"),b=i("7o/Q"),_=i("Lhse"),k=i("zx2A"),w=function(){function t(e){p(this,t),this.resultSelector=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new S(t,this.resultSelector))}}]),t}(),S=function(t){u(n,t);var e=l(n);function n(t,r){var i;arguments.length>2&&void 0!==arguments[2]||Object.create(null);return p(this,n),(i=e.call(this,t)).resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return y(n,[{key:"_next",value:function(t){var e=this.iterators;Object(g.a)(t)?e.push(new O(t)):e.push("function"==typeof t[_.a]?new C(t[_.a]()):new E(this.destination,this,t))}},{key:"_complete",value:function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0!==e){this.active=e;for(var n=0;nthis.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),t}(),E=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t)).parent=r,o.observable=i,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return y(n,[{key:_.a,value:function(){return this}},{key:"next",value:function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(t){this.buffer.push(t),this.parent.checkIterators()}},{key:"subscribe",value:function(){return Object(k.c)(this.observable,new k.a(this))}}]),n}(k.b),x=i("Cfvw"),T=i("eNwd"),A=i("pLZG"),j=i("lJxs"),I=i("IzEk"),R=i("eIep"),N=i("vkgz"),D=i("JIr8"),P=i("ofXK"),F=i("jhN1"),L=new h.q("HIGHLIGHT_OPTIONS"),V=((o=function(){function t(e,n,r){var i=this;p(this,t),this._options=r,this._ready=new f.a(null),this.ready=this._ready.asObservable().pipe(Object(A.a)(function(t){return!!t}),Object(j.a)(function(t){return t}),Object(I.a)(1)),Object(P.r)(n)&&e.defaultView.hljs?this._ready.next(e.defaultView.hljs):this._loadLibrary().pipe(Object(R.a)(function(t){return i._options&&i._options.lineNumbersLoader?(e.defaultView.hljs=t,i.loadLineNumbers().pipe(Object(N.a)(function(){return i._ready.next(t)}))):(i._ready.next(t),d.a)}),Object(D.a)(function(t){return console.error("[HLJS] ",t),d.a})).subscribe()}return y(t,[{key:"_loadLibrary",value:function(){var t=this;if(this._options){if(this._options.fullLibraryLoader&&this._options.coreLibraryLoader)return Object(v.a)("The full library and the core library were imported, only one of them should be imported!");if(this._options.fullLibraryLoader&&this._options.languages)return Object(v.a)("The highlighting languages were imported they are not needed!");if(this._options.coreLibraryLoader&&!this._options.languages)return Object(v.a)("The highlighting languages were not imported!");if(!this._options.coreLibraryLoader&&this._options.languages)return Object(v.a)("The core library was not imported!");if(this._options.fullLibraryLoader)return this.loadFullLibrary();if(this._options.coreLibraryLoader&&this._options.languages&&Object.keys(this._options.languages).length)return this.loadCoreLibrary().pipe(Object(R.a)(function(e){return t._loadLanguages(e)}))}return Object(v.a)("Highlight.js library was not imported!")}},{key:"_loadLanguages",value:function(t){return(function(){for(var t=arguments.length,e=new Array(t),n=0;n=0})),t}return y(n,[{key:"ngOnDestroy",value:function(){this.subject.complete()}},{key:"getSubject",value:function(){return this.subject.getValue()}},{key:"setSubject",value:function(t){this.subject.next(t)}}]),n}(a);return t.\u0275fac=function(e){return c(e||t)},t.\u0275prov=r.Fb({token:t,factory:t.\u0275fac}),t}(),c=r.Qb(s)},PqYM:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("HDdC"),i=n("D0XW"),o=n("DH7j");function a(t){return!Object(o.a)(t)&&t-parseFloat(t)+1>=0}var s=n("z+Ro");function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=-1;return a(e)?o=Number(e)<1?1:Number(e):Object(s.a)(e)&&(n=e),Object(s.a)(n)||(n=i.a),new r.a(function(e){var r=a(t)?t:+t-n.now();return n.schedule(c,r,{index:0,period:o,subscriber:e})})}function c(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},Pv2G:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("tk/3"),i=n("HDdC"),o=n("RJIb"),a=n("iVJa"),s=n("xDj2"),u=n("Q8NU"),c=n("VWR/"),l=n("fXoL"),h=function(){var t=function(){function t(e,n){p(this,t),this.tokens=e,this.options=n}return y(t,[{key:"initialize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new i.a(function(n){if(t.tokens.hasValidAccessToken())return n.next({message:"Access token is still valid"}),void n.complete();var r=s.a.getHashFragmentParams(),i=r.access_token,o=r.state,a=r.error;if(!a)return i||o||!e?void(i?o?o===u.a.get("nonce")?(t.tokens.setAccessToken(i),n.next({message:"Access token saved"}),n.complete(),t.options.preventClearHashAfterLogin||(location.hash="")):n.error({message:"Nonce is not valid"}):n.error({message:"Nonce is missing"}):n.error({message:"No access token in URL"})):(n.next({message:"No access token and authenticate automatically is set to true - you will be redirected"}),n.complete(),void t.authenticate());n.error({message:a})})}},{key:"authenticate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.location.href,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new r.e;document.location.href=this.loginUrl(t,e,n)}},{key:"loginUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new r.e,i=c.a.createAndSaveNonce();return n=(n||new r.e).set("client_id",this.options.clientId).set("state",i).set("response_type",this.options.responseType).set("redirect_uri",t),this.options.scope&&(n=n.set("scope",this.options.scope)),this.options.resource&&(n=n.set("resource",this.options.resource)),e&&(n=n.set("prompt","none")),"".concat(this.options.loginUrl,"?").concat(n.toString())}},{key:"clear",value:function(){this.tokens.clear()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Sb(o.a),l.Sb(a.a))},t.\u0275prov=l.Fb({token:t,factory:t.\u0275fac}),t}()},Q8NU:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){p(this,t)}return y(t,null,[{key:"put",value:function(t,e){sessionStorage.setItem(t,JSON.stringify(e))}},{key:"get",value:function(t){var e=sessionStorage.getItem(t);if(!e)return null;try{return JSON.parse(e)}catch(n){return console.warn("Cannot parse ".concat(t," as JSON"),n),e}}},{key:"remove",value:function(t){sessionStorage.removeItem(t)}}]),t}()},R0Ic:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return s}),n.d(e,"f",function(){return u}),n.d(e,"g",function(){return l}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return h}),n.d(e,"j",function(){return a}),n.d(e,"k",function(){return v}),n.d(e,"l",function(){return m});var r=function t(){p(this,t)},i=function t(){p(this,t)},o="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function l(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function f(t){Promise.resolve(null).then(t)}var d=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;p(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;f(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),v=function(){function t(e){var n=this;p(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var r=0,i=0,o=0,a=this.players.length;0==a?f(function(){return n._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++r==a&&n._onFinish()}),t.onDestroy(function(){++i==a&&n._onDestroy()}),t.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),m="!"},R1ws:function(t,e,a){"use strict";a.d(e,"a",function(){return Ie}),a.d(e,"b",function(){return Ne});var s=a("fXoL"),c=a("jhN1"),h=a("R0Ic");function f(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function d(t){switch(t.length){case 0:return new h.d;case 1:return t[0];default:return new h.k(t)}}function m(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],u=-1,c=null;if(r.forEach(function(t){var n=t.offset,r=n==u,l=r&&c||{};Object.keys(t).forEach(function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),s){case h.l:s=i[n];break;case h.a:s=o[n];break;default:s=e.normalizeStyleValue(n,r,s,a)}l[r]=s}),r||s.push(l),c=l,u=n}),a.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(a.join(l)))}return s}function g(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&b(n,"start",t))});break;case"done":t.onDone(function(){return r(n&&b(n,"done",t))});break;case"destroy":t.onDestroy(function(){return r(n&&b(n,"destroy",t))})}}function b(t,e,n){var r=n.totalTime,i=_(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function _(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function k(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function w(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var S=function(t,e){return!1},C=function(t,e){return!1},O=function(t,e,n){return[]},E=f();(E||"undefined"!=typeof Element)&&(S=function(t,e){return t.contains(e)},C=function(){if(E||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:C}(),O=function(t,e,n){var r=[];if(n)for(var i=t.querySelectorAll(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function H(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var r in t)n[r]=t[r];else U(t,n);return n}function z(t,e,n){return n?e+":"+n+";":""}function B(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=i[1],a=i[2],s=i[3];e.push(ot(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(ot(s,o))}(t,i,r)}):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:ht(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return et(n,t,e)}),options:ht(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=et(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:ht(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ft(M(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=ft(0,0,"");return i.dynamic=!0,i.strValue=r,i}return ft((n=n||M(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:Object(h.h)({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=Object(h.h)(s)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(o,e);u.isEmptyStep=a,n=u}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==h.a?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(lt(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,u,c,l,h=e.collectedStyles[e.currentQuerySelector],f=h[r],d=!0;f&&(o!=i&&o>=f.startTime&&i<=f.endTime&&(e.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(i,'ms"')),d=!1),o=f.startTime),d&&(h[r]={startTime:o,endTime:i}),e.options&&(a=t[r],s=e.options,u=e.errors,c=s.params||{},(l=K(a)).length&&l.forEach(function(t){c.hasOwnProperty(t)||u.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,u=0,c=t.steps.map(function(t){var r=n._makeStyleAst(t,e),c=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(lt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(lt(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),l=0;return null!=c&&(i++,l=r.offset=c),s=s||l<0||l>1,a=a||l0&&i0?i==f?1:h*i:o[i],s=a*p;e.currentTime=d+v.delay+s,v.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r}},{key:"visitReference",value:function(t,e){return{type:8,animation:et(this,J(t.animation),e),options:ht(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:ht(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ht(t.options)}}},{key:"visitQuery",value:function(t,e){var r=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var o=n(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(at,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),a=o[0],s=o[1];e.currentQuerySelector=r.length?r+" "+a:a,k(e.collectedStyles,e.currentQuerySelector,{});var u=et(this,J(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=r,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:u,originalSelector:t.selector,options:ht(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:M(t.timings,e.errors,!0);return{type:12,animation:et(this,J(t.animation),e),timings:n,options:null}}}]),t}(),ct=function t(e){p(this,t),this.errors=e,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 lt(t){return!Array.isArray(t)&&"object"==typeof t}function ht(t){var e;return t?(t=U(t)).params&&(t.params=(e=t.params)?U(e):null):t={},t}function ft(t,e,n){return{duration:t,delay:e,easing:n}}function dt(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var vt=function(){function t(){p(this,t),this._map=new Map}return y(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,r(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),pt=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function yt(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new gt).buildKeyframes(t,e,n,r,i,o,a,s,u,c)}var gt=function(){function t(){p(this,t)}return y(t,[{key:"buildKeyframes",value:function(t,e,n,r,i,o,a,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new vt;var l=new _t(t,e,u,r,i,c,[]);l.options=s,l.currentTimeline.setStyles([o],null,l.errors,s),et(this,n,l);var h=l.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([a],null,l.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[dt(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?L(n.duration):null,o=null!=n.delay?L(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),et(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=bt);var a=L(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return et(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?L(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),et(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return M(e.params?Q(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?L(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach(function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(u=s.currentTimeline),et(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;et(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}]),t}(),bt={},_t=function(){function t(e,n,r,i,o,a,s,u){p(this,t),this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=a,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new kt(this._driver,n,0),s.push(this.currentTimeline)}return y(t,[{key:"updateOptions",value:function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=L(r.duration)),null!=r.delay&&(i.delay=L(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=Q(o[t],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new wt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,o,a){var s=[];if(i&&s.push(this.element),t.length>0){t=(t=t.replace(pt,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);var u=this._driver.query(this.element,t,1!=n);0!==n&&(u=n<0?u.slice(u.length+n,u.length):u.slice(0,n)),s.push.apply(s,r(u))}return o||0!=s.length||a.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),s}},{key:"params",get:function(){return this.options.params}}]),t}(),kt=function(){function t(e,n,r,i){p(this,t),this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return y(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||h.a,e._currentKeyframe[t]=h.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=h.a}):H(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=Q(a[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:h.a),i._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var s=H(o,!0);Object.keys(s).forEach(function(t){var r=s[t];r==h.l?e.add(t):r==h.a&&n.add(t)}),r||(s.offset=a/t.duration),i.push(s)});var o=e.size?Z(e.values()):[],a=n.size?Z(n.values()):[];if(r){var s=i[0],u=U(s);s.offset=0,u.offset=1,i=[s,u]}return dt(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}}]),t}(),wt=function(t){u(n,t);var e=l(n);function n(t,r,i,o,a,s){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return p(this,n),(u=e.call(this,t,r,s.delay)).element=r,u.keyframes=i,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return y(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,u=H(t[0],!1);u.offset=0,o.push(u);var c=H(t[0],!1);c.offset=St(s),o.push(c);for(var l=t.length-1,h=1;h<=l;h++){var f=H(t[h],!1);f.offset=St((n+f.offset*r)/a),o.push(f)}r=a,n=0,i="",t=o}return dt(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(kt);function St(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var Ct,Ot,Et=function t(){p(this,t)},xt=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"normalizePropertyName",value:function(t,e){return $(t)}},{key:"normalizeStyleValue",value:function(t,e,n,r){var i="",o=n.toString().trim();if(Tt[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return o+i}}]),n}(Et),Tt=(Ct="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(","),Ot={},Ct.forEach(function(t){return Ot[t]=!0}),Ot);function At(t,e,n,r,i,o,a,s,u,c,l,h,f){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:f}}var jt={},It=function(){function t(e,n,r){p(this,t),this._triggerName=e,this.ast=n,this._stateStyles=r}return y(t,[{key:"match",value:function(t,e,n,r){return function(t,e,n,r,i){return t.some(function(t){return t(e,n,r,i)})}(this.ast.matchers,t,e,n,r)}},{key:"buildStyles",value:function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o}},{key:"build",value:function(t,e,n,r,i,o,a,s,u,c){var l=[],h=this.ast.options&&this.ast.options.params||jt,f=this.buildStyles(n,a&&a.params||jt,l),d=s&&s.params||jt,v=this.buildStyles(r,d,l),p=new Set,m=new Map,y=new Map,g="void"===r,b={params:Object.assign(Object.assign({},h),d)},_=c?[]:yt(t,e,this.ast.animation,i,o,f,v,b,u,l),w=0;if(_.forEach(function(t){w=Math.max(t.duration+t.delay,w)}),l.length)return At(e,this._triggerName,n,r,g,f,v,[],[],m,y,w,l);_.forEach(function(t){var n=t.element,r=k(m,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=k(y,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&p.add(n)});var S=Z(p.values());return At(e,this._triggerName,n,r,g,f,v,_,S,m,y,w)}}]),t}(),Rt=function(){function t(e,n){p(this,t),this.styles=e,this.defaultParams=n}return y(t,[{key:"buildStyles",value:function(t,e){var n={},r=U(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=Q(o,r,e)),n[t]=o})}}),n}}]),t}(),Nt=function(){function t(e,n){var r=this;p(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(t){r.states[t.name]=new Rt(t.style,t.options&&t.options.params||{})}),Dt(this.states,"true","1"),Dt(this.states,"false","0"),n.transitions.forEach(function(t){r.transitionFactories.push(new It(e,t,r.states))}),this.fallbackTransition=new It(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return y(t,[{key:"matchTransition",value:function(t,e,n,r){return this.transitionFactories.find(function(i){return i.match(t,e,n,r)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),t}();function Dt(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Pt=new vt,Ft=function(){function t(e,n,r){p(this,t),this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return y(t,[{key:"register",value:function(t,e){var n=[],r=st(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]=r}},{key:"_buildPlayer",value:function(t,e,n){var r=t.element,i=m(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[t],s=new Map;if(a?(n=yt(this._driver,e,a,"ng-enter","ng-leave",{},{},i,Pt,o)).forEach(function(t){var e=k(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,h.a)})});var u=d(n.map(function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=u,u.onDestroy(function(){return r.destroy(t)}),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}},{key:"listen",value:function(t,e,n,r){var i=_(e,"","","");return g(this._getPlayer(t),n,i,r),function(){}}},{key:"command",value:function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])}}]),t}(),Lt=[],Vt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Mt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ut=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";p(this,t),this.namespaceId=n;var r,i=e&&e.hasOwnProperty("value");if(this.value=null!=(r=i?e.value:e)?r:null,i){var o=U(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return y(t,[{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}}},{key:"params",get:function(){return this.options.params}}]),t}(),Ht=new Ut("void"),zt=function(){function t(e,n,r){p(this,t),this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Qt(n,this._hostClassName)}return y(t,[{key:"listen",value:function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var a=k(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var u=k(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Qt(t,"ng-trigger"),Qt(t,"ng-trigger-"+e),u[e]=Ht),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete u[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new qt(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Qt(t,"ng-trigger"),Qt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],c=new Ut(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[e]=c,u||(u=Ht),"void"===c.value||u.value!==c.value){var l=k(this._engine.playersByElement,t,[]);l.forEach(function(t){t.namespaceId==r.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(u.value,c.value,t,c.params),f=!1;if(!h){if(!i)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:c,player:a,isFallbackTransition:f}),f||(Qt(t,"ng-animate-queued"),a.onStart(function(){Zt(t,"ng-animate-queued")})),a.onDone(function(){var e=r.players.indexOf(a);e>=0&&r.players.splice(e,1);var n=r._engine.playersByElement.get(t);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}}),this.players.push(a),l.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Qt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,n,r){if(Wt(e)){var i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}},{key:"markElementAsRemoved",value:function(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,r,i){return Wt(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}}},{key:"_buildInstruction",value:function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return d(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=Vt,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;j--)this._namespaceList[j].drainQueuedTransitions(e).forEach(function(t){var e=t.player,r=t.element;if(T.push(e),n.collectedEnterElements.length){var a=r.__ng_removed;if(a&&a.setForMove)return void e.destroy()}var h=!v||!n.driver.containsElement(v,r),f=E.get(r),d=y.get(r),p=n._buildInstruction(t,i,d,f,h);if(p.errors&&p.errors.length)A.push(p);else{if(h)return e.onStart(function(){return W(r,p.fromStyles)}),e.onDestroy(function(){return q(r,p.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return W(r,p.fromStyles)}),e.onDestroy(function(){return q(r,p.toStyles)}),void o.push(e);p.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(r,p.timelines),s.push({instruction:p,player:e,element:r}),p.queriedElements.forEach(function(t){return k(u,t,[]).push(e)}),p.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=c.get(e);r||c.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),p.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(A.length){var I=[];A.forEach(function(t){I.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return I.push("- ".concat(t,"\n"))})}),T.forEach(function(t){return t.destroy()}),this.reportError(I)}var R=new Map,N=new Map;s.forEach(function(t){var e=t.element;i.has(e)&&(N.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,R))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){k(R,e,[]).push(t),t.destroy()})});var D=b.filter(function(t){return Yt(t,c,l)}),P=new Map;Gt(P,this.driver,w,l,h.a).forEach(function(t){Yt(t,c,l)&&D.push(t)});var F=new Map;m.forEach(function(t,e){Gt(F,n.driver,new Set(t),c,h.l)}),D.forEach(function(t){var e=P.get(t),n=F.get(t);P.set(t,Object.assign(Object.assign({},e),n))});var L=[],V=[],M={};s.forEach(function(t){var e=t.element,r=t.player,s=t.instruction;if(i.has(e)){if(f.has(e))return r.onDestroy(function(){return q(e,s.toStyles)}),r.disabled=!0,r.overrideTotalTime(s.totalTime),void o.push(r);var u=M;if(N.size>1){for(var c=e,l=[];c=c.parentNode;){var h=N.get(c);if(h){u=h;break}l.push(c)}l.forEach(function(t){return N.set(t,u)})}var v=n._buildAnimation(r.namespaceId,s,R,a,F,P);if(r.setRealPlayer(v),u===M)L.push(r);else{var p=n.playersByElement.get(u);p&&p.length&&(r.parentPlayer=d(p)),o.push(r)}}else W(e,s.fromStyles),r.onDestroy(function(){return q(e,s.toStyles)}),V.push(r),f.has(e)&&o.push(r)}),V.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var n=d(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var U=0;U0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new h.d(t.duration,t.delay)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t}}]),t}(),qt=function(){function t(e,n,r){p(this,t),this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new h.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return y(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return g(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){k(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Wt(t){return t&&1===t.nodeType}function Jt(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Gt(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(Jt(t))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=Mt,a.push(r))}),t.set(r,o)});var s=0;return n.forEach(function(t){return Jt(t,o[s++])}),a}function Kt(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),i=new Map;function o(t){if(!t)return 1;var e=i.get(t);if(e)return e;var a=t.parentNode;return e=n.has(a)?a:r.has(a)?1:o(a),i.set(t,e),e}return e.forEach(function(t){var e=o(t);1!==e&&n.get(e).push(t)}),n}function Qt(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Zt(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Xt(t,e,n){d(n).onDone(function(){return t.processLeaveNode(e)})}function $t(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),t}();function ee(t,e){var n=null,r=null;return Array.isArray(e)&&e.length?(n=re(e[0]),e.length>1&&(r=re(e[e.length-1]))):e&&(n=re(e)),n||r?new ne(t,n,r):null}var ne=function(){var t=function(){function t(e,n,r){p(this,t),this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;var i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}return y(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&q(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(q(this._element,this._initialStyles),this._endStyles&&(q(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(W(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(W(this._element,this._endStyles),this._endStyles=null),q(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function re(t){for(var e=null,n=Object.keys(t),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ce(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,n=he(t,"").split(","),(r=ue(n,e))>=0&&(n.splice(r,1),le(t,"",n.join(","))))}}]),t}();function ae(t,e,n){le(t,"PlayState",n,se(t,e))}function se(t,e){var n=he(t,"");return n.indexOf(",")>0?ue(n.split(","),e):ue([n],e)}function ue(t,e){for(var n=0;n=0)return n;return-1}function ce(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function le(t,e,n,r){var i="animation"+e;if(null!=r){var o=t.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}t.style[i]=n}function he(t,e){return t.style["animation"+e]||""}var fe=function(){function t(e,n,r,i,o,a,s,u){p(this,t),this.element=e,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=o,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=i+o,this._buildStyler()}return y(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new oe(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:nt(t.element,r))})}this.currentSnapshot=e}}]),t}(),de=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).element=t,i._startingStyles={},i.__initialized=!1,i._styles=N(r),i}return y(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),i(v(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),i(v(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,i(v(n.prototype),"destroy",this).call(this))}}]),n}(h.d),ve=function(){function t(){p(this,t),this._count=0,this._head=document.querySelector("head")}return y(t,[{key:"validateStyleProperty",value:function(t){return A(t)}},{key:"matchesElement",value:function(t,e){return j(t,e)}},{key:"containsElement",value:function(t,e){return I(t,e)}},{key:"query",value:function(t,e,n){return R(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map(function(t){return N(t)});var r="@keyframes ".concat(e," {\n"),i="";n.forEach(function(t){i=" ";var e=parseFloat(t.offset);r+="".concat(i).concat(100*e,"% {\n"),i+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(e,": ").concat(n,";\n"))}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.textContent=r,o}},{key:"animate",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(t){return t instanceof fe}),s={};Y(n,r)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=tt(t,e,s));if(0==n)return new de(t,u);var c="gen_css_kf_"+this._count++,l=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(l);var h=ee(t,e),f=new fe(t,e,c,n,r,i,u,h);return f.onDestroy(function(){var t;(t=l).parentNode.removeChild(t)}),f}}]),t}(),pe=function(){function t(e,n,r,i){p(this,t),this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,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=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return y(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:nt(t.element,n))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),t}(),me=function(){function t(){p(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ye().toString()),this._cssKeyframesDriver=new ve}return y(t,[{key:"validateStyleProperty",value:function(t){return A(t)}},{key:"matchesElement",value:function(t,e){return j(t,e)}},{key:"containsElement",value:function(t,e){return I(t,e)}},{key:"query",value:function(t,e,n){return R(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0;if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var u={},c=o.filter(function(t){return t instanceof pe});Y(n,r)&&c.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return u[t]=e[t]})});var l=ee(t,e=tt(t,e=e.map(function(t){return H(t,!1)}),u));return new pe(t,e,s,l)}}]),t}();function ye(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ge,be=a("ofXK"),_e=((ge=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this))._nextAnimationId=0,i._renderer=t.createRenderer(r.body,{id:"0",encapsulation:s.Q.None,styles:[],data:{animation:[]}}),i}return y(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Object(h.f)(t):t;return Se(this._renderer,null,e,"register",[n]),new ke(e,this._renderer)}}]),n}(h.b)).\u0275fac=function(t){return new(t||ge)(s.Sb(s.F),s.Sb(be.d))},ge.\u0275prov=s.Fb({token:ge,factory:ge.\u0275fac}),ge),ke=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this))._id=t,i._renderer=r,i}return y(n,[{key:"create",value:function(t,e){return new we(this._id,t,e||{},this._renderer)}}]),n}(h.c),we=function(){function t(e,n,r,i){p(this,t),this.id=e,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return y(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,r)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,r){this.delegate.setStyle(t,e,n,r)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}},{key:"data",get:function(){return this.delegate.data}}]),t}(),Ae=function(t){u(r,t);var e=l(r);function r(t,n,i,o){var a;return p(this,r),(a=e.call(this,n,i,o)).factory=t,a.namespaceId=n,a}return y(r,[{key:"setProperty",value:function(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)}},{key:"listen",value:function(t,e,r){var i,o,a=this;if("@"==e.charAt(0)){var s,u=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),c=e.substr(1),l="";return"@"!=c.charAt(0)&&(o=(i=c).indexOf("."),c=(s=n([i.substring(0,o),i.substr(o+1)],2))[0],l=s[1]),this.engine.listen(this.namespaceId,u,c,l,function(t){a.factory.scheduleListenerCallback(t._data||-1,r,t)})}return this.delegate.listen(t,e,r)}}]),r}(Te),je=((Oe=function(t){u(n,t);var e=l(n);function n(t,r,i){return p(this,n),e.call(this,t.body,r,i)}return n}(te)).\u0275fac=function(t){return new(t||Oe)(s.Sb(be.d),s.Sb(F),s.Sb(Et))},Oe.\u0275prov=s.Fb({token:Oe,factory:Oe.\u0275fac}),Oe),Ie=new s.q("AnimationModuleType"),Re=[{provide:F,useFactory:function(){return"function"==typeof ye()?new me:new ve}},{provide:Ie,useValue:"BrowserAnimations"},{provide:h.b,useClass:_e},{provide:Et,useFactory:function(){return new xt}},{provide:te,useClass:je},{provide:s.F,useFactory:function(t,e,n){return new xe(t,e,n)},deps:[c.d,te,s.z]}],Ne=((Ee=function t(){p(this,t)}).\u0275mod=s.Hb({type:Ee}),Ee.\u0275inj=s.Gb({factory:function(t){return new(t||Ee)},providers:Re,imports:[c.a]}),Ee)},RJIb:function(t,e,r){"use strict";r.d(e,"a",function(){return T});var i,o=r("tk/3"),a=r("2Vo4"),s=r("XNiG"),u=r("itXk"),c=r("z6cu"),l=r("LRne"),h=r("NJ9Y"),f=r("5+tZ"),d=r("IzEk"),v=r("lJxs"),m=r("nYR2"),g=r("vkgz"),b=r("CYhE"),_=r("Q8NU"),k=function(){function t(){p(this,t)}return y(t,null,[{key:"put",value:function(t,e){localStorage.setItem(t,JSON.stringify(e))}},{key:"get",value:function(t){var e=localStorage.getItem(t);if(!e)return null;try{return JSON.parse(e)}catch(n){return console.warn("Cannot parse ".concat(t," as JSON"),n),e}}},{key:"remove",value:function(t){localStorage.removeItem(t)}}]),t}(),w=r("JkW8"),S=r("d8a0"),C=r("3/4O"),O=r("s2Hm"),E=r("og18"),x=r("fXoL"),T=((i=function(){function t(e,n,r,i,o){p(this,t),this.http=e,this.options=n,this.passwordFlowOptions=r,this.authorizationCodeFlowOptions=i,this.clientCredentialsFlowOptions=o,this.accessToken=new a.a(_.a.get(t.ACCESS_TOKEN_KEY)),this.refreshToken=new a.a(k.get(t.REFRESH_TOKEN_KEY)),this.accessTokenPending=null,this.accessToken$=this.accessToken.asObservable(),this.refreshToken$=this.refreshToken.asObservable()}return y(t,[{key:"ngOnDestroy",value:function(){this.accessTokenPending&&this.accessTokenPending.complete(),this.accessToken.complete(),this.refreshToken.complete()}},{key:"setAccessToken",value:function(e){_.a.put(t.ACCESS_TOKEN_KEY,e),this.accessToken.next(e)}},{key:"setRefreshToken",value:function(e){k.put(t.REFRESH_TOKEN_KEY,e),this.refreshToken.next(e)}},{key:"setTokens",value:function(t,e){this.setAccessToken(t),this.setRefreshToken(e)}},{key:"getAccessToken",value:function(){return this.accessToken.getValue()}},{key:"getRefreshToken",value:function(){return this.refreshToken.getValue()}},{key:"getAuthenticationFlowType",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getAccessToken(),e=w.a.getTokenClientId(t);return e?this.passwordFlowOptions.clientId===e?S.b.PASSWORD:this.authorizationCodeFlowOptions.clientId===e?S.b.AUTHORIZATION_CODE:this.clientCredentialsFlowOptions.clientId===e?S.b.CLIENT_CREDENTIALS:null:null}},{key:"hasValidAccessToken",value:function(t){var e=this.getAccessToken();return e&&!w.a.isTokenExpired(e,t)}},{key:"hasValidRefreshToken",value:function(t){var e=this.getRefreshToken();return e&&!w.a.isTokenExpired(e,t)}},{key:"getValidAccessToken",value:function(){var t=this;return this.accessTokenPending&&!this.accessTokenPending.isStopped?this.accessTokenPending.pipe(Object(h.a)(),Object(f.a)(function(){return t.accessToken$.pipe(Object(d.a)(1))})):(this.accessTokenPending=new s.a,Object(u.b)([this.accessToken$,this.refreshToken$]).pipe(Object(f.a)(function(e){var r=n(e,2),i=r[0],o=r[1];return i||o?i?w.a.isTokenExpired(i)?t.getAuthenticationFlowType(i)===S.b.CLIENT_CREDENTIALS?t.authenticateWithClientCredentials().pipe(Object(v.a)(function(t){return t.accessToken})):o?w.a.isTokenExpired(o)?Object(c.a)({message:"Refresh token expired",details:"Cannot obtain new access token"}):t.authenticateWithRefreshToken(o).pipe(Object(v.a)(function(t){return t.accessToken})):Object(c.a)({message:"Access token expired",details:"No refresh token to obtain new access token"}):Object(l.a)(i):w.a.isTokenExpired(o)?Object(c.a)({message:"Access token is missing",details:"Refresh token expired - cannot obtain new access token"}):t.authenticateWithRefreshToken(o).pipe(Object(v.a)(function(t){return t.accessToken})):Object(c.a)({message:"Authentication token is missing"})}),Object(d.a)(1),Object(m.a)(function(){t.accessTokenPending.next(),t.accessTokenPending.complete()})))}},{key:"authenticateWithPassword",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new o.e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new o.d;return r=(r||new o.e).set("username",t).set("password",e).set("grant_type","password"),i=(i||new o.d).set("Content-Type","application/x-www-form-urlencoded"),this.passwordFlowOptions.useHttpBasicAuth&&(i=i.set("Authorization","Basic "+btoa("".concat(this.passwordFlowOptions.clientId,":").concat(this.passwordFlowOptions.clientSecret)))),this.http.post(this.passwordFlowOptions.tokenUrl,r,{headers:i}).pipe(Object(v.a)(function(t){return n.transform(t)}),Object(g.a)(function(t){return n.setTokens(t.accessToken||null,t.refreshToken||null)}))}},{key:"authenticateWithRefreshToken",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new o.e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new o.d;if(!t)return Object(c.a)({message:"Refresh token must not be empty"});n=(n||new o.e).set("grant_type","refresh_token").set("refresh_token",t),r=(r||new o.d).set("Content-Type","application/x-www-form-urlencoded");var i=null,a=null,s=null,u=null;switch(this.getAuthenticationFlowType(t)){case S.b.PASSWORD:i=this.passwordFlowOptions.tokenUrl,a=this.passwordFlowOptions.clientId,s=this.passwordFlowOptions.clientSecret,u=this.passwordFlowOptions.useHttpBasicAuth;break;case S.b.AUTHORIZATION_CODE:i=this.authorizationCodeFlowOptions.tokenUrl,a=this.authorizationCodeFlowOptions.clientId,s=this.authorizationCodeFlowOptions.clientSecret,u=this.authorizationCodeFlowOptions.useHttpBasicAuth;break;case S.b.CLIENT_CREDENTIALS:i=this.clientCredentialsFlowOptions.tokenUrl,a=this.clientCredentialsFlowOptions.clientId,s=this.clientCredentialsFlowOptions.clientSecret,u=this.clientCredentialsFlowOptions.useHttpBasicAuth;break;default:return Object(c.a)({message:"Refresh token authentication is not supported"})}return i?(s&&u&&(r=r.set("Authorization","Basic "+btoa("".concat(a,":").concat(s)))),this.http.post(i,n,{headers:r}).pipe(Object(v.a)(function(t){return e.transform(t)}),Object(g.a)(function(t){return e.setTokens(t.accessToken||null,t.refreshToken||null)}))):Object(c.a)({message:"Refresh token not supported"})}},{key:"authenticateWithAuthorizationCode",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new o.e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new o.d;return n=(n||new o.e).set("grant_type","authorization_code").set("code",t),r=(r||new o.d).set("Content-Type","application/x-www-form-urlencoded"),this.authorizationCodeFlowOptions.useHttpBasicAuth?r=r.set("Authorization","Basic "+btoa("".concat(this.authorizationCodeFlowOptions.clientId,":").concat(this.authorizationCodeFlowOptions.clientSecret))):(n=n.set("client_id",this.authorizationCodeFlowOptions.clientId),this.authorizationCodeFlowOptions.clientSecret&&(n=n.set("client_secret",this.authorizationCodeFlowOptions.clientSecret))),this.http.post(this.authorizationCodeFlowOptions.tokenUrl,n,{headers:r}).pipe(Object(v.a)(function(t){return e.transform(t)}),Object(g.a)(function(t){return e.setTokens(t.accessToken||null,t.refreshToken||null)}))}},{key:"authenticateWithClientCredentials",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o.e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new o.d;return e=(e||new o.e).set("grant_type","client_credentials"),n=(n||new o.d).set("Content-Type","application/x-www-form-urlencoded"),this.clientCredentialsFlowOptions.useHttpBasicAuth&&(n=n.set("Authorization","Basic "+btoa("".concat(this.clientCredentialsFlowOptions.clientId,":").concat(this.clientCredentialsFlowOptions.clientSecret)))),this.http.post(this.clientCredentialsFlowOptions.tokenUrl,e,{headers:n}).pipe(Object(v.a)(function(e){return t.transform(e)}),Object(g.a)(function(e){return t.setTokens(e.accessToken||null,e.refreshToken||null)}))}},{key:"clear",value:function(){this.accessToken.next(null),_.a.remove(t.ACCESS_TOKEN_KEY),this.refreshToken.next(null),k.remove(t.REFRESH_TOKEN_KEY)}},{key:"transform",value:function(t){return this.options.mapper(t)}}]),t}()).ACCESS_TOKEN_KEY="access_token",i.REFRESH_TOKEN_KEY="refresh_token",i.\u0275fac=function(t){return new(t||i)(x.Sb(o.b),x.Sb(b.a),x.Sb(O.a),x.Sb(E.a),x.Sb(C.a))},i.\u0275prov=x.Fb({token:i,factory:i.\u0275fac}),i)},RWdr:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("tk/3"),i=n("RJIb"),o=n("fXoL"),a=function(){var t=function(){function t(e){p(this,t),this.tokens=e}return y(t,[{key:"authenticate",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new r.e,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new r.d;return this.tokens.authenticateWithPassword(t,e,n,i)}},{key:"clear",value:function(){this.tokens.clear()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(i.a))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}()},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("ngJS"),i=n("NJ4a"),o=n("Lhse"),a=n("kJWO"),s=n("I55L"),u=n("c2HN"),c=n("XoHu"),l=function(t){if(t&&"function"==typeof t[a.a])return l=t,function(t){var e=l[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(r.a)(t);if(Object(u.a)(t))return n=t,function(t){return n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,i.a),t};if(t&&"function"==typeof t[o.a])return e=t,function(t){for(var n=e[o.a]();;){var r=void 0;try{r=n.next()}catch(i){return t.error(i),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t};var e,n,l,h=Object(c.a)(t)?"an invalid object":"'".concat(t,"'");throw new TypeError("You provided ".concat(h," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",function(){return r})},VRyK:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("HDdC"),i=n("z+Ro"),o=n("bHdf"),a=n("yCtX");function s(){for(var t=arguments.length,e=new Array(t),n=0;n1&&"number"==typeof e[e.length-1]&&(s=e.pop())):"number"==typeof c&&(s=e.pop()),null===u&&1===e.length&&e[0]instanceof r.a?e[0]:Object(o.a)(s)(Object(a.a)(e,u))}},"VWR/":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("5mAv"),i=n("Q8NU"),o=function(){function t(){p(this,t)}return y(t,null,[{key:"createNonce",value:function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",e=45,n="",i="undefined"==typeof self?null:self.crypto||self.msCrypto;if(i){var o=new Uint8Array(e);i.getRandomValues(o),o=o.map(function(e){return t.charCodeAt(e%t.length)}),n=String.fromCharCode.apply(null,o)}else for(;00&&void 0!==arguments[0]?arguments[0]:c;return function(e){return e.lift(new a(t))}}var a=function(){function t(e){p(this,t),this.errorFactory=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.errorFactory))}}]),t}(),s=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).errorFactory=r,i.hasValue=!1,i}return y(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(i.a);function c(){return new r.a}},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return f}),n.d(e,"a",function(){return d});var r=n("HDdC"),o=n("7o/Q"),a=n("quSY"),s=n("9ppp"),c=n("Ylt2"),h=n("2QA8"),f=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this,t)).destination=t,r}return n}(o.a),d=function(){var t=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return y(n,[{key:h.a,value:function(){return new f(this)}},{key:"lift",value:function(t){var e=new m(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.subject||{provide:r.b,useClass:r.a},e.subjectRoles||{provide:i.b,useClass:i.a}]}}},{key:"forChild",value:function(){return{ngModule:t,providers:[]}}}]),t}();return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)}}),t}()},Zy1z:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("7o/Q");function i(){return function(t){return t.lift(new o)}}var o=function(){function t(){p(this,t)}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t))}}]),t}(),a=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this,t)).hasPrev=!1,r}return y(n,[{key:"_next",value:function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}]),n}(r.a)},bHdf:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("5+tZ"),i=n("SpAZ");function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.a)(i.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("5+tZ");function i(t,e){return Object(r.a)(t,e,1)}},bTqV:function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return m});var r=n("FKr1"),i=n("R1ws"),a=n("fXoL"),s=n("u47x"),c=["mat-button",""],h=["*"],f=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],d=Object(r.r)(Object(r.t)(Object(r.s)(function t(e){p(this,t),this._elementRef=e}))),v=function(){var t=function(t){u(n,t);var e=l(n);function n(t,r,i){var a;p(this,n),(a=e.call(this,t))._focusMonitor=r,a._animationMode=i,a.isRoundButton=a._hasHostAttributes("mat-fab","mat-mini-fab"),a.isIconButton=a._hasHostAttributes("mat-icon-button");var s,u=o(f);try{for(u.s();!(s=u.n()).done;){var c=s.value;a._hasHostAttributes(c)&&a._getHostElement().classList.add(c)}}catch(l){u.e(l)}finally{u.f()}return t.nativeElement.classList.add("mat-button-base"),a.isRoundButton&&(a.color="accent"),a}return y(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program",e=arguments.length>1?arguments[1]:void 0;this._focusMonitor.focusVia(this._getHostElement(),t,e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n"],encapsulation:2,changeDetection:0}),t}(),m=function(){var t=function t(){p(this,t)};return t.\u0275mod=a.Hb({type:t}),t.\u0275inj=a.Gb({factory:function(e){return new(e||t)},imports:[[r.n,r.e],r.e]}),t}()},c2HN:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return r})},cH1L:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return a});var r=n("fXoL"),i=n("ofXK"),o=new r.q("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(r.U)(i.d)}}),a=function(){var t=function(){function t(e){if(p(this,t),this.value="ltr",this.change=new r.n,e){var n=e.documentElement?e.documentElement.dir:null,i=(e.body?e.body.dir:null)||n;this.value="ltr"===i||"rtl"===i?i:"ltr"}}return y(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.Sb(o,8))},t.\u0275prov=Object(r.Fb)({factory:function(){return new t(Object(r.Sb)(o,8))},token:t,providedIn:"root"}),t}(),s=function(){var t=function t(){p(this,t)};return t.\u0275mod=r.Hb({type:t}),t.\u0275inj=r.Gb({factory:function(e){return new(e||t)}}),t}()},cp0P:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var i=n("HDdC"),o=n("DH7j"),a=n("lJxs"),s=n("XoHu"),u=n("Cfvw");function c(){for(var t=arguments.length,e=new Array(t),n=0;n2&&void 0!==arguments[2]?arguments[2]:0;return null!==r&&r>0?i(v(n.prototype),"requestAsyncId",this).call(this,t,e,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))}},{key:"recycleAsyncId",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==r&&r>0||null===r&&this.delay>0)return i(v(n.prototype),"recycleAsyncId",this).call(this,t,e,r);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}]),n}(n("3N8a").a),o=new(function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r=r)break}else e[a]<0&&(t[18]+=65536),(o>11>16&&(3&t[2])===e&&(t[2]+=2048,o.call(a)):o.call(a)}var je=function t(e,n,r){p(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Ie(t,e,n){for(var r=Pt(t),i=0;ie){a=o-1;break}}}for(;o>16,r=e;n>0;)r=r[15],n--;return r}var Me=!0;function Ue(t){var e=Me;return Me=t,e}var He=0;function ze(t,e){var n=qe(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Be(r.data,t),Be(e,null),Be(r.blueprint,null));var i=We(t,e),o=t.injectorIndex;if(Fe(i))for(var a=Le(i),s=Ve(i,e),u=s[1].data,c=0;c<8;c++)e[o+c]=s[a+c]|u[a+c];return e[o+8]=i,o}function Be(t,e){t.push(0,0,0,0,0,0,0,0,e)}function qe(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function We(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,r=null,i=e;null!==i;){var o=i[1],a=o.type;if(null===(r=2===a?o.declTNode:1===a?i[6]:null))return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Je(t,e,n){!function(t,e,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(rt)&&(r=n[rt]),null==r&&(r=n[rt]=He++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:V.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(rt)?t[rt]:void 0;return"number"==typeof e?e>=0?255&e:Xe:e}(n);if("function"==typeof o){if(!ve(e,t,r))return r&V.Host?Ge(i,n,r):Ke(e,n,r,i);try{var a=o();if(null!=a||r&V.Optional)return a;Et(n)}finally{be()}}else if("number"==typeof o){var s=null,u=qe(t,e),c=-1,l=r&V.Host?e[16][6]:null;for((-1===u||r&V.SkipSelf)&&(-1!==(c=-1===u?We(t,e):e[u+8])&&nn(r,!1)?(s=e[1],u=Le(c),e=Ve(c,e)):u=-1);-1!==u;){var h=e[1];if(en(o,u,h.data)){var f=$e(u,e,n,s,r,l);if(f!==Ze)return f}-1!==(c=e[u+8])&&nn(r,e[1].data[u+8]===l)&&en(o,u,e)?(s=h,u=Le(c),e=Ve(c,e)):u=-1}}}return Ke(e,n,r,i)}var Ze={};function Xe(){return new rn(te(),Xt())}function $e(t,e,n,r,i,o){var a=e[1],s=a.data[t+8],u=Ye(s,a,n,null==r?bt(s)&&Me:r!=a&&0!=(3&s.type),i&V.Host&&o===s);return null!==u?tn(e,a,u,s):Ze}function Ye(t,e,n,r,i){for(var o=t.providerIndexes,a=e.data,s=1048575&o,u=t.directiveStart,c=o>>20,l=i?s+c:t.directiveEnd,h=r?s:s+c;h=u&&f.type===n)return h}if(i){var d=a[u];if(d&&kt(d)&&d.type===n)return u}return null}function tn(t,e,n,r){var i=t[n],o=e.data;if(i instanceof je){var a=i;a.resolving&&function(t,e){throw new St("200","Circular dependency in DI detected for "+t)}(Ot(o[n]));var s=Ue(a.canSeeViewProviders);a.resolving=!0;var u=a.injectImpl?M(a.injectImpl):null;ve(t,r,V.Default);try{i=t[n]=a.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.type.prototype,i=r.ngOnChanges,o=r.ngOnInit,a=r.ngDoCheck;if(i){var s=At(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,o[n],e)}finally{null!==u&&M(u),Ue(s),a.resolving=!1,be()}}return i}function en(t,e,n){var r=64&t,i=32&t;return!!((128&t?r?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:r?i?n[e+3]:n[e+2]:i?n[e+1]:n[e])&1<=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 mn(t,e){for(var n=[],r=0;r=0)return t[1|n]}function gn(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var o=r+(i-r>>1),a=t[o<<1];if(e===a)return o<<1;a>e?i=o:r=o+1}return~(i<<1)}(t,e)}var bn=un("Inject",function(t){return{token:t}}),_n=un("Optional"),kn=un("Self"),wn=un("SkipSelf"),Sn={},Cn=/\n/gm,On=_({provide:String,useValue:_}),En=void 0;function xn(t){var e=En;return En=t,e}function Tn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.Default;if(void 0===En)throw new Error("inject() must be called from an injection context");return null===En?U(t,void 0,e):En.get(t,e&V.Optional?null:void 0,e)}function An(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.Default;return(N||Tn)(E(t),e)}var jn,In=An;function Rn(t){for(var e=[],n=0;n"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();ar.hasOwnProperty(e)&&!nr.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(vr(t))}},{key:"checkClobberedElement",value:function(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}}]),t}(),fr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,dr=/([^\#-~ |!])/g;function vr(t){return t.replace(/&/g,"&").replace(fr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(dr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function pr(t,e){var n=null;try{er=er||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(Nn(""),"text/html")}catch(t){return!1}}()?new Kn:new Qn(t)}(t);var r=e?String(e):"";n=er.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=er.getInertBodyElement(r)}while(r!==o);return(new hr).sanitizeChildren(mr(n)||n)}finally{if(n)for(var a=mr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function mr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var yr=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 gr(t){var e,n=(e=Xt())&&e[12];return n?n.sanitize(yr.URL,t)||"":Hn(t,"URL")?Un(t):$n(Ct(t))}function br(t){return t.ngDebugContext}function _r(t){return t.ngOriginalError}function kr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&(t[r-1][4]=i[4]);var a=pn(t,10+e);Qr(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Fr(t,e){if(!(256&e[2])){var n=e[11];Pt(n)&&n.destroyNode&&Qr(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Lr(t[1],t);for(;e;){var n=null;if(mt(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)mt(e)&&Lr(e[1],e),e=e[3];null===e&&(e=t),mt(e)&&Lr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Lr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var r=0;r=0?r[i=c]():r[i=-c].unsubscribe(),o+=2}else{var l=r[i=n[o+1]];n[o].call(l)}if(null!==r)for(var h=i+1;ho?"":i[l+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==Yr(f,c,0)||2&r&&c!==h){if(ii(r))return!1;a=!0}}}}else{if(!a&&!ii(r)&&!ii(u))return!1;if(a&&ii(u))continue;a=!1,r=u|1&r}}return ii(r)||a}function ii(t){return 0==(1&t)}function oi(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""===i||ii(a)||(e+=ui(o,i),i=""),r=a,o=o||!ii(r);n++}return""!==i&&(e+=ui(o,i)),e}var li={};function hi(t){fi($t(),Xt(),ke()+t,oe())}function fi(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&Oe(e,i,n)}else{var o=t.preOrderHooks;null!==o&&Ee(e,o,0,n)}we(n)}function di(t,e){return t<<17|e<<2}function vi(t){return t>>17&32767}function pi(t){return 2|t}function mi(t){return(131068&t)>>2}function yi(t,e){return-131069&t|e<<2}function gi(t){return 1|t}function bi(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;r20&&fi(t,e,20,oe()),n(r,i)}finally{we(o)}}function xi(t,e,n){if(gt(e))for(var r=e.directiveEnd,i=e.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:Mt,r=e.localNames;if(null!==r)for(var i=e.index+1,o=0;o0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(r,i,a)}}function Li(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Vi(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Mi(t,e,n){if(n){if(e.exportAs)for(var r=0;r0&&Gi(n)}}function Gi(t){for(var e=Ar(t);null!==e;e=jr(e))for(var n=10;n0&&Gi(r)}var o=t[1].components;if(null!==o)for(var a=0;a0&&Gi(s)}}function Ki(t,e){var n=zt(e,t),r=n[1];!function(t,e){for(var n=e.length;n1&&void 0!==arguments[1]?arguments[1]:Sn;if(e===Sn){var n=new Error("NullInjectorError: No provider for ".concat(w(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),co=new cn("Set Injector scope."),lo={},ho={},fo=[],vo=void 0;function po(){return void 0===vo&&(vo=new uo),vo}function mo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new yo(t,n,e||po(),r)}var yo=function(){function t(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;p(this,t),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&dn(n,function(t){return i.processProvider(t,e,n)}),dn([e],function(t){return i.processInjectorType(t,[],a)}),this.records.set(so,_o(void 0,this));var s=this.records.get(co);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:w(e))}return y(t,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Sn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V.Default;this.assertNotDestroyed();var r,i=xn(this);try{if(!(n&V.SkipSelf)){var o=this.records.get(t);if(void 0===o){var a=("function"==typeof(r=t)||"object"==typeof r&&r instanceof cn)&&j(t);o=a&&this.injectableDefInScope(a)?_o(go(t),lo):null,this.records.set(t,o)}if(null!=o)return this.hydrate(t,o)}return(n&V.Self?po():this.parent).get(t,e=n&V.Optional&&e===Sn?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(w(t)),i)throw s;return function(t,e,n,r){var i=t.ngTempTokenPath;throw e.__source&&i.unshift(e.__source),t.message=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var i=w(e);if(Array.isArray(e))i=e.map(w).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):w(s)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(t.replace(Cn,"\n "))}("\n"+t.message,i,"R3InjectorError",r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{xn(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(w(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var r=this;if(!(t=E(t)))return!1;var i=R(t),o=null==i&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(i=R(o)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(a);try{dn(i.imports,function(t){r.processInjectorType(t,e,n)&&(void 0===u&&(u=[]),u.push(t))})}finally{}if(void 0!==u)for(var c=function(t){var e=u[t],n=e.ngModule,i=e.providers;dn(i,function(t){return r.processProvider(t,n,i||fo)})},l=0;l0){var n=mn(e,"?");throw new Error("Can't resolve all parameters for ".concat(w(t),": (").concat(n.join(", "),")."))}var r=function(t){var e=t&&(t[D]||t[F]);if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(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 "').concat(n,'" class.')),e}return null}(t);return null!==r?function(){return r.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function bo(t,n,i){var o,a=void 0;if(wo(t)){var s=E(t);return wt(s)||go(s)}if(ko(t))a=function(){return E(t.useValue)};else if((o=t)&&o.useFactory)a=function(){return t.useFactory.apply(t,r(Rn(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))a=function(){return An(E(t.useExisting))};else{var u=E(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return wt(u)||go(u);a=function(){return e(u,r(Rn(t.deps)))}}return a}function _o(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function ko(t){return null!==t&&"object"==typeof t&&On in t}function wo(t){return"function"==typeof t}var So=function(t,e,n){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=mo(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)},Co=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?So(t,e,""):So(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=Sn,t.NULL=new uo,t.\u0275prov=T({token:t,providedIn:"any",factory:function(){return An(so)}}),t.__NG_ELEMENT_ID__=-1,t}();function Oo(t,e){Ce(Bt(t)[1],te())}function Eo(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,r=[t];e;){var i=void 0;if(kt(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){r.push(i);var o=t;o.inputs=xo(t.inputs),o.declaredInputs=xo(t.declaredInputs),o.outputs=xo(t.outputs);var a=i.hostBindings;a&&jo(t,a);var s=i.viewQuery,u=i.contentQueries;if(s&&To(t,s),u&&Ao(t,u),k(t.inputs,i.inputs),k(t.declaredInputs,i.declaredInputs),k(t.outputs,i.outputs),kt(i)&&i.data.animation){var c=t.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var l=i.features;if(l)for(var h=0;h=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=De(i.hostAttrs,n=De(n,i.hostAttrs))}}(r)}function xo(t){return t===Q?{}:t===Z?[]:t}function To(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function Ao(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function jo(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}var Io=null;function Ro(){if(!Io){var t=K.Symbol;if(t&&t.iterator)Io=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:V.Default,n=Xt();return null===n?An(t,e):Qe(te(),n,E(t),e)}function Bo(t,e,n){var r=Xt();return Lo(r,ue(),e)&&Di($t(),Se(),r,t,e,r[11],n,!1),Bo}function qo(t,e,n,r,i){var o=i?"class":"style";oo(t,n,e.inputs[o],o,r)}function Wo(t,e,n,r){var i=Xt(),o=$t(),a=20+t,s=i[11],u=i[a]=Nr(s,e,Qt.lFrame.currentNamespace),c=o.firstCreatePass?function(t,e,n,r,i,o,a){var s=e.consts,u=ki(e,t,2,i,Jt(s,o));return Pi(e,n,u,Jt(s,a)),null!==u.attrs&&ao(u,u.attrs,!1),null!==u.mergedAttrs&&ao(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(a,o,i,0,e,n,r):o.data[a];ne(c,!0);var l=c.mergedAttrs;null!==l&&Ie(s,u,l);var h=c.classes;null!==h&&$r(s,u,h);var f=c.styles;null!==f&&Xr(s,u,f),64!=(64&c.flags)&&Wr(o,i,u,c),0===Qt.lFrame.elementDepthCount&&Sr(u,i),Qt.lFrame.elementDepthCount++,_t(c)&&(Ti(o,i,c),xi(o,c,i)),null!==r&&Ai(i,c)}function Jo(){var t=te();re()?ie():ne(t=t.parent,!1);var e=t;Qt.lFrame.elementDepthCount--;var n=$t();n.firstCreatePass&&(Ce(n,t),gt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&qo(n,e,Xt(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&qo(n,e,Xt(),e.stylesWithoutHost,!1)}function Go(t,e,n,r){Wo(t,e,n,r),Jo()}function Ko(t,e,n){var r=Xt(),i=$t(),o=t+20,a=i.firstCreatePass?function(t,e,n,r,i){var o=e.consts,a=Jt(o,r),s=ki(e,t,8,"ng-container",a);return null!==a&&ao(s,a,!0),Pi(e,n,s,Jt(o,i)),null!==e.queries&&e.queries.elementStart(e,s),s}(o,i,r,e,n):i.data[o];ne(a,!0);var s=r[o]=r[11].createComment("");Wr(i,r,s,a),Sr(s,r),_t(a)&&(Ti(i,r,a),xi(i,a,r)),null!=n&&Ai(r,a)}function Qo(){var t=te(),e=$t();re()?ie():ne(t=t.parent,!1),e.firstCreatePass&&(Ce(e,t),gt(t)&&e.queries.elementEnd(t))}function Zo(){return Xt()}function Xo(t){return!!t&&"function"==typeof t.then}function $o(t){return!!t&&"function"==typeof t.subscribe}function Yo(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Xt(),o=$t(),a=te();return ea(o,i,i[11],a,t,e,n,r),Yo}function ta(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=te(),o=Xt(),a=$t();return ea(a,o,ro(le(a.data),i,o),i,t,e,n,r),ta}function ea(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=_t(r),c=t.firstCreatePass&&no(t),l=eo(e),h=!0;if(3&r.type){var f=Mt(r,e),d=s?s(f):Q,v=d.target||f,p=l.length,m=s?function(t){return s(Lt(t[r.index])).target}:r.index;if(Pt(n)){var y=null;if(!s&&u&&(y=function(t,e,n,r){var i=t.cleanup;if(null!=i)for(var o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(t,e,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1;else{o=ra(r,e,o,!1);var g=n.listen(d.name||v,i,o);l.push(o,g),c&&c.push(i,m,p,p+1)}}else o=ra(r,e,o,!0),v.addEventListener(i,o,a),l.push(o),c&&c.push(i,m,p,a)}else o=ra(r,e,o,!1);var b,_=r.outputs;if(h&&null!==_&&(b=_[i])){var k=b.length;if(k)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(Qt.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Qt.lFrame.contextLView))[8]}(t)}function oa(t,e){for(var n=null,r=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=Xt(),i=$t(),o=ki(i,20+t,16,null,n||null);null===o.projection&&(o.projection=e),ie(),64!=(64&o.flags)&&function(t,e,n){Zr(e[11],0,e,n,Vr(t,n,e),Br(n.parent||e[6],n,e))}(i,r,o)}function ua(t,e,n){return ca(t,"",e,"",n),ua}function ca(t,e,n,r,i){var o=Xt(),a=Mo(o,e,n,r);return a!==li&&Di($t(),Se(),o,t,a,o[11],i,!1),ca}var la=[];function ha(t,e,n,r,i){for(var o=t[n+1],a=null===e,s=r?vi(o):mi(o),u=!1;0!==s&&(!1===u||a);){var c=t[s+1];fa(t[s],e)&&(u=!0,t[s+1]=r?gi(c):pi(c)),s=r?vi(c):mi(c)}u&&(t[n+1]=r?pi(o):gi(o))}function fa(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&gn(t,e)>=0}function da(t,e,n){return pa(t,e,n,!1),da}function va(t,e){return pa(t,e,null,!0),va}function pa(t,e,n,r){var i,o,a=Xt(),s=$t(),u=(i=Qt.lFrame,o=i.bindingIndex,i.bindingIndex=i.bindingIndex+2,o);s.firstUpdatePass&&function(t,e,n,r){var i=t.data;if(null===i[n+1]){var o=i[ke()],a=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(o,r)&&null===e&&!a&&(e=!1),e=function(t,e,n,r){var i=le(t),o=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=ya(n=ma(null,t,e,n,r),e.attrs,r),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==i)if(n=ma(i,t,e,n,r),null===o){var s=function(t,e,n){var r=n?e.classBindings:e.styleBindings;if(0!==mi(r))return t[vi(r)]}(t,e,r);void 0!==s&&Array.isArray(s)&&function(t,e,n,r){t[vi(n?e.classBindings:e.styleBindings)]=r}(t,e,r,s=ya(s=ma(null,t,e,s[1],r),e.attrs,r))}else o=function(t,e,n){for(var r=void 0,i=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(l=!0)}else c=n;if(i)if(0!==u){var f=vi(t[s+1]);t[r+1]=di(f,s),0!==f&&(t[f+1]=yi(t[f+1],r)),t[s+1]=131071&t[s+1]|r<<17}else t[r+1]=di(s,0),0!==s&&(t[s+1]=yi(t[s+1],r)),s=r;else t[r+1]=di(u,0),0===s?s=r:t[u+1]=yi(t[u+1],r),u=r;l&&(t[r+1]=pi(t[r+1])),ha(t,c,r,!0),ha(t,c,r,!1),function(t,e,n,r,i){var o=i?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&gn(o,e)>=0&&(n[r+1]=gi(n[r+1]))}(e,c,t,r,o),a=di(s,u),o?e.classBindings=a:e.styleBindings=a}(i,o,e,n,a,r)}}(s,t,u,r),e!==li&&Lo(a,u,e)&&function(t,e,n,r,i,o,a,s){if(3&e.type){var u=t.data,c=u[s+1];ba(1==(1&c)?ga(u,e,n,i,mi(c),a):void 0)||(ba(o)||2==(2&c)&&(o=ga(u,null,n,i,s,a)),function(t,e,n,r,i){var o=Pt(t);if(e)i?o?t.addClass(n,r):n.classList.add(r):o?t.removeClass(n,r):n.classList.remove(r);else{var a=-1===r.indexOf("-")?void 0:Er.DashCase;if(null==i)o?t.removeStyle(n,r,a):n.style.removeProperty(r);else{var s="string"==typeof i&&i.endsWith("!important");s&&(i=i.slice(0,-10),a|=Er.Important),o?t.setStyle(n,r,i,a):n.style.setProperty(r,i,s?"important":"")}}}(r,a,Vt(ke(),n),i,o))}}(s,s.data[ke()],a,a[11],t,a[u+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=w(Un(t)))),t}(e,n),r,u)}function ma(t,e,n,r,i){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s=0?r[1|a]=o:function(t,e,n,r){var i=t.length;if(i==e)t.push(n,r);else if(1===i)t.push(r,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=r}}(r,a=~a,i,o))}return void 0===t?null:t}function ga(t,e,n,r,i,o){for(var a=null===e,s=void 0;i>0;){var u=t[i],c=Array.isArray(u),l=c?u[1]:u,h=null===l,f=n[i+1];f===li&&(f=h?la:void 0);var d=h?yn(f,r):l===r?f:void 0;if(c&&!ba(d)&&(d=yn(u,r)),ba(d)&&(s=d,a))return s;var v=t[i+1];i=a?vi(v):mi(v)}if(null!==e){var p=o?e.residualClasses:e.residualStyles;null!=p&&(s=yn(p,r))}return s}function ba(t){return void 0!==t}function _a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Xt(),r=$t(),i=t+20,o=r.firstCreatePass?ki(r,i,1,e,null):r.data[i],a=n[i]=function(t,e){return Pt(t)?t.createText(e):t.createTextNode(e)}(n[11],e);Wr(r,n,a,o),ne(o,!1)}function ka(t){return wa("",t,""),ka}function wa(t,e,n){var r=Xt(),i=Mo(r,t,e,n);return i!==li&&function(t,e,n){var r=Vt(e,t);!function(t,e,n){Pt(t)?t.setValue(e,n):e.textContent=n}(t[11],r,n)}(r,ke(),i),wa}function Sa(t,e,n){var r=Xt();return Lo(r,ue(),e)&&Di($t(),Se(),r,t,e,r[11],n,!0),Sa}function Ca(t,e,n){var r=Xt();if(Lo(r,ue(),e)){var i=$t(),o=Se();Di(i,o,r,t,e,ro(le(i.data),o,r),n,!0)}return Ca}var Oa=void 0,Ea=["en",[["a","p"],["AM","PM"],Oa],[["AM","PM"],Oa,Oa],[["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"]],Oa,[["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"]],Oa,[["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}",Oa,"{1} 'at' {0}",Oa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],xa={};function Ta(t,e,n){"string"!=typeof e&&(n=e,e=t[Na.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),xa[e]=t,n&&(xa[e][Na.ExtraData]=n)}function Aa(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=Ra(e);if(n)return n;var r=e.split("-")[0];if(n=Ra(r))return n;if("en"===r)return Ea;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function ja(t){return Aa(t)[Na.CurrencyCode]||null}function Ia(t){return Aa(t)[Na.PluralCase]}function Ra(t){return t in xa||(xa[t]=K.ng&&K.ng.common&&K.ng.common.locales&&K.ng.common.locales[t]),xa[t]}var Na=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}({});function Da(t){var e;null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function Pa(t,e,n,r,i){if(t=E(t),Array.isArray(t))for(var o=0;o>20;if(wo(t)||!t.multi){var v=new je(c,i,zo),p=Va(u,e,i?h:h+d,f);-1===p?(Je(ze(l,s),a,u),Fa(a,t,e.length),e.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(v),s.push(v)):(n[p]=v,s[p]=v)}else{var m=Va(u,e,h+d,f),y=Va(u,e,h,h+d),g=m>=0&&n[m],b=y>=0&&n[y];if(i&&!b||!i&&!g){Je(ze(l,s),a,u);var _=function(t,e,n,r,i){var o=new je(t,n,zo);return o.multi=[],o.index=e,o.componentProviders=0,La(o,i,r&&!n),o}(i?Ua:Ma,n.length,i,r,c);!i&&b&&(n[y].providerFactory=_),Fa(a,t,e.length,0),e.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(_),s.push(_)}else Fa(a,t,m>-1?m:y,La(n[i?y:m],c,!i&&r));!i&&r&&b&&n[y].componentProviders++}}}function Fa(t,e,n,r){var i=wo(e);if(i||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[r,o]):a[s+1].push(r,o)}else a.push(n,o)}}}function La(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Va(t,e,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(t,e,n){var r=$t();if(r.firstCreatePass){var i=kt(t);Pa(n,r.data,r.blueprint,i,!0),Pa(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}}var Ba=function t(){p(this,t)},qa=function(){function t(){p(this,t)}return y(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(w(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),Wa=function(){var t=function t(){p(this,t)};return t.NULL=new qa,t}();function Ja(){}function Ga(t,e){return new Qa(Mt(t,e))}var Ka=function(){return Ga(te(),Xt())},Qa=function(){var t=function t(e){p(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Ka,t}(),Za=function t(){p(this,t)},Xa=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=function(){return $a()},t}(),$a=function(){var t=Xt(),e=zt(te().index,t);return function(t){return t[11]}(mt(e)?e:t)},Ya=function(){var t=function t(){p(this,t)};return t.\u0275prov=T({token:t,providedIn:"root",factory:function(){return null}}),t}(),ts=function t(e){p(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},es=new ts("11.0.5"),ns=function(){function t(){p(this,t)}return y(t,[{key:"supports",value:function(t){return Do(t)}},{key:"create",value:function(t){return new is(t)}}]),t}(),rs=function(t,e){return e},is=function(){function t(e){p(this,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=e||rs}return y(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=e[n.index];if(null!==a&&i.push(Lt(a)),yt(a))for(var s=10;s-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Fr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Ri(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){Zi(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Xi(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){ae(!0);try{Xi(t,e,n)}finally{ae(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,Qr(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}},{key:"rootNodes",get:function(){var t=this._lView,e=t[1];return vs(e,t,e.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),t}(),ms=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this,t))._view=t,r}return y(n,[{key:"detectChanges",value:function(){$i(this._view)}},{key:"checkNoChanges",value:function(){!function(t){ae(!0);try{$i(t)}finally{ae(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(ps),ys=bs,gs=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=ys,t.__ChangeDetectorRef__=!0,t}();function bs(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,e,n){if(!n&&bt(t)){var r=zt(t.index,e);return new ps(r,r)}return 47&t.type?new ps(e[16],e):null}(te(),Xt(),t)}var _s=[new cs],ks=new fs([new ns]),ws=new ds(_s),Ss=function(){return Es(te(),Xt())},Cs=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=Ss,t}(),Os=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this))._declarationLView=t,o._declarationTContainer=r,o.elementRef=i,o}return y(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=_i(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),Si(e,n,t),new ps(n)}}]),n}(Cs);function Es(t,e){return 4&t.type?new Os(e,t,Ga(t,e)):null}var xs=function t(){p(this,t)},Ts=function t(){p(this,t)},As=function(){return Ds(te(),Xt())},js=function(){var t=function t(){p(this,t)};return t.__NG_ELEMENT_ID__=As,t}(),Is=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this))._lContainer=t,o._hostTNode=r,o._hostLView=i,o}return y(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=Rs(this._lContainer);return null!==e&&e[t]||null}},{key:"createEmbeddedView",value:function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r}},{key:"createComponent",value:function(t,e,n,r,i){var o=n||this.parentInjector;if(!i&&null==t.ngModule&&o){var a=o.get(xs,null);a&&(i=a)}var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var r=t._lView,i=r[1];if(yt(r[3])){var o=this.indexOf(t);if(-1!==o)this.detach(o);else{var a=r[3],s=new n(a,a[6],a[3]);s.detach(s.indexOf(t))}}var u=this._adjustIndex(e),c=this._lContainer;!function(t,e,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}},{key:"element",get:function(){return Ga(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new rn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=We(this._hostTNode,this._hostLView);if(Fe(t)){var e=Ve(t,this._hostLView),n=Le(t);return new rn(e[1].data[n+8],e)}return new rn(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),n}(js);function Rs(t){return t[8]}function Ns(t){return t[8]||(t[8]=[])}function Ds(t,e){var n,r=e[t.index];if(yt(r))n=r;else{var i;if(8&t.type)i=Lt(r);else{var o=e[11];i=o.createComment("");var a=Mt(t,e);Mr(o,zr(o,a),i,function(t,e){return Pt(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=n=Wi(r,e,i,t),Qi(e,n)}return new Is(n,t,e)}var Ps={},Fs=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this)).ngModule=t,r}return y(n,[{key:"resolveComponentFactory",value:function(t){var e=vt(t);return new Ms(e,this.ngModule)}}]),n}(Wa);function Ls(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var Vs=new cn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Cr}}),Ms=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).componentDef=t,i.ngModule=r,i.componentType=t.type,i.selector=t.selectors.map(ci).join(","),i.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],i.isBoundToModule=!!r,i}return y(n,[{key:"create",value:function(t,e,n,r){var i,o,a=(r=r||this.ngModule)?function(t,e){return{get:function(n,r,i){var o=t.get(n,Ps,i);return o!==Ps||r===Ps?o:e.get(n,r,i)}}}(t,r.injector):t,s=a.get(Za,Ft),u=a.get(Ya,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(Pt(t))return t.selectRootElement(e,n===B.ShadowDom);var r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(c,n,this.componentDef.encapsulation):Nr(s.createRenderer(null,this.componentDef),l,function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:Cr,clean:to,playerHandler:null,flags:0},v=Ii(0,null,null,1,0,null,null,null,null,null),p=_i(null,v,d,f,null,null,s,c,u,a);pe(p);try{var m=function(t,e,n,r,i,o){var a=n[1];n[20]=t;var s=ki(a,20,2,"#host",null),u=s.mergedAttrs=e.hostAttrs;null!==u&&(ao(s,u,!0),null!==t&&(Ie(i,t,u),null!==s.classes&&$r(i,t,s.classes),null!==s.styles&&Xr(i,t,s.styles)));var c=r.createRenderer(t,e),l=_i(n,ji(e),null,e.onPush?64:16,n[20],s,r,c,null,null);return a.firstCreatePass&&(Je(ze(s,n),a,e.type),Vi(a,s),Ui(s,n.length,1)),Qi(n,l),n[20]=l}(h,this.componentDef,p,s,c);if(h)if(n)Ie(c,h,["ng-version",es.full]);else{var y=function(t){for(var e=[],n=[],r=1,i=2;r0&&$r(c,h,b.join(" "))}if(o=Ut(v,20),void 0!==e)for(var _=o.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Co.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V.Default;return t===Co||t===xs||t===so?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(xs),Bs=function(t){u(n,t);var e=l(n);function n(t){var r,i,a;return p(this,n),(r=e.call(this)).moduleType=t,null!==pt(t)&&(i=t,a=new Set,function t(e){var n=pt(e,!0),r=n.id;null!==r&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(w(e)," vs ").concat(w(e.name)))}(r,Hs.get(r),e),Hs.set(r,e));var i,s=o(Or(n.imports));try{for(s.s();!(i=s.n()).done;){var u=i.value;a.has(u)||(a.add(u),t(u))}}catch(c){s.e(c)}finally{s.f()}}(i)),r}return y(n,[{key:"create",value:function(t){return new zs(this.moduleType,t)}}]),n}(Ts);function qs(t,e,n){var r=se()+t,i=Xt();return i[r]===li?Fo(i,r,n?e.call(n):e()):function(t,e){return t[e]}(i,r)}function Ws(t,e,n,r){return Ks(Xt(),se(),t,e,n,r)}function Js(t,e,n,r,i){return Qs(Xt(),se(),t,e,n,r,i)}function Gs(t,e){var n=t[e];return n===li?void 0:n}function Ks(t,e,n,r,i,o){var a=e+n;return Lo(t,a,i)?Fo(t,a+1,o?r.call(o,i):r(i)):Gs(t,a+1)}function Qs(t,e,n,r,i,o,a){var s=e+n;return function(t,e,n,r){var i=Lo(t,e,n);return Lo(t,e+1,r)||i}(t,s,i,o)?Fo(t,s+2,a?r.call(a,i,o):r(i,o)):Gs(t,s+2)}function Zs(t,e){var n,r=$t(),i=t+20;r.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var r=e[n];if(t===r.name)return r}throw new St("302","The pipe '".concat(t,"' could not be found!"))}(e,r.pipeRegistry),r.data[i]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,n.onDestroy)):n=r.data[i];var o=n.factory||(n.factory=wt(n.type)),a=M(zo);try{var s=Ue(!1),u=o();return Ue(s),function(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(r,Xt(),i,u),u}finally{M(a)}}function Xs(t,e,n){var r=t+20,i=Xt(),o=Ht(i,r);return tu(i,Ys(i,r)?Ks(i,se(),e,o.transform,n,o):o.transform(n))}function $s(t,e,n,r){var i=t+20,o=Xt(),a=Ht(o,i);return tu(o,Ys(o,i)?Qs(o,se(),e,a.transform,n,r,a):a.transform(n,r))}function Ys(t,e){return t[1].data[e].pure}function tu(t,e){return No.isWrapped(e)&&(e=No.unwrap(e),t[Qt.lFrame.bindingIndex]=li),e}var eu=function(t){u(n,t);var e=l(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return p(this,n),(t=e.call(this)).__isAsync=r,t}return y(n,[{key:"emit",value:function(t){i(v(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,r){var o,a=function(t){return null},s=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(a=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},e&&(a=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=i(v(n.prototype),"subscribe",this).call(this,o,a,s);return t instanceof d.a&&t.add(u),u}}]),n}(h.a);function nu(){return this._results[Ro()]()}var ru=function(){function t(){p(this,t),this.dirty=!0,this._results=[],this.changes=new eu,this.length=0;var e=Ro(),n=t.prototype;n[e]||(n[e]=nu)}return y(t,[{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t){this._results=fn(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),t}(),iu=function(){function t(e){p(this,t),this.queryList=e,this.matches=null}return y(t,[{key:"clone",value:function(){return new t(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),t}(),ou=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,t),this.queries=e}return y(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[],o=0;o3&&void 0!==arguments[3]?arguments[3]:null;p(this,t),this.predicate=e,this.descendants=n,this.isStatic=r,this.read=i},su=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];p(this,t),this.queries=e}return y(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;p(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return y(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(a[s/2]);else{for(var c=o[s+1],l=e[-u],h=10;h0&&void 0!==arguments[0]?arguments[0]:V.Default,e=bs(!0);if(null!=e||t&V.Optional)return e;Et("ChangeDetectorRef")}var Ou=new cn("Application Initializer"),Eu=function(){var t=function(){function t(e){var n=this;p(this,t),this.appInits=e,this.resolve=Ja,this.reject=Ja,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,e){n.resolve=t,n.reject=e})}return y(t,[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(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()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(An(Ju))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}(),tc=function(){var t=function(){function t(){p(this,t),this._applications=new Map,rc.addToWindow(this)}return y(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return rc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function ec(t){rc=t}var nc,rc=new(function(){function t(){p(this,t)}return y(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),ic=!0,oc=!1;function ac(){return oc=!0,ic}function sc(){if(oc)throw new Error("Cannot enable prod mode after platform setup.");ic=!1}var uc=new cn("AllowMultipleToken"),cc=function t(e,n){p(this,t),this.name=e,this.token=n};function lc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+e,i=new cn(r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=hc();if(!o||o.injector.get(uc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0},{provide:co,useValue:"platform"});!function(t){if(nc&&!nc.destroyed&&!nc.injector.get(uc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");nc=t.get(fc);var e=t.get(ju,null);e&&e.forEach(function(t){return t()})}(Co.create({providers:a,name:r}))}return function(t){var e=hc();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}(i)}}function hc(){return nc&&!nc.destroyed?nc:null}var fc=function(){var t=function(){function t(e){p(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return y(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,r,i=this,o=(n=e?e.ngZone:void 0,r=e&&e.ngZoneEventCoalescing||!1,"noop"===n?new $u:("zone.js"===n?void 0:n)||new Ju({enableLongStackTrace:ac(),shouldCoalesceEventChangeDetection:r})),a=[{provide:Ju,useValue:o}];return o.run(function(){var e=Co.create({providers:a,parent:i.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(wr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){r.handleError(t)}});n.onDestroy(function(){pc(i._modules,n),t.unsubscribe()})}),function(t,e,r){try{var o=((a=n.injector.get(Eu)).runInitializers(),a.donePromise.then(function(){return Da(n.injector.get(Du,"en-US")||"en-US"),i._moduleDoBootstrap(n),n}));return Xo(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(r,o)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=dc({},n);return function(t,e,n){var r=new Bs(n);return Promise.resolve(r)}(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,r)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(vc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(w(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)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(An(Co))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function dc(t,e){return Array.isArray(e)?e.reduce(dc,t):Object.assign(Object.assign({},t),e)}var vc=function(){var t=function(){function t(e,n,r,i,o,a){var s=this;p(this,t),this._zone=e,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new m.a(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),c=new m.a(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){Ju.assertNotInAngularZone(),Wu(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Ju.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(g.a)(u,c.pipe(Object(b.a)()))}return y(t,[{key:"bootstrap",value:function(t,e){var n,r=this;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.");n=t instanceof Ba?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(xs),o=n.create(Co.NULL,[],e||n.selector,i),a=o.location.nativeElement,s=o.injector.get(Yu,null),u=s&&o.injector.get(tc);return s&&u&&u.registerApplication(a,s),o.onDestroy(function(){r.detachView(o.hostView),pc(r.components,o),u&&u.unregisterApplication(a)}),this._loadComponent(o),ac()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=o(this._views);try{for(n.s();!(e=n.n()).done;){e.value.detectChanges()}}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;pc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ru,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(An(Ju),An(Nu),An(Co),An(wr),An(Wa),An(Eu))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function pc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var mc=function t(){p(this,t)},yc=function t(){p(this,t)},gc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},bc=function(){var t=function(){function t(e,n){p(this,t),this._compiler=e,this._config=n||gc}return y(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,r=n(t.split("#"),2),i=r[0],o=r[1];return void 0===o&&(o="default"),c("crnd")(i).then(function(t){return t[o]}).then(function(t){return _c(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=n(t.split("#"),2),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),c("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return _c(t,r,i)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(An(Bu),An(yc,8))},t.\u0275prov=T({token:t,factory:t.\u0275fac}),t}();function _c(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var kc=function(t){return null},wc=lc(null,"core",[{provide:Iu,useValue:"unknown"},{provide:fc,deps:[Co]},{provide:tc,deps:[]},{provide:Nu,deps:[]}]),Sc=[{provide:vc,useClass:vc,deps:[Ju,Nu,Co,wr,Wa,Eu]},{provide:Vs,deps:[Ju],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Eu,useClass:Eu,deps:[[new _n,Ou]]},{provide:Bu,useClass:Bu,deps:[]},Tu,{provide:fs,useFactory:function(){return ks},deps:[]},{provide:ds,useFactory:function(){return ws},deps:[]},{provide:Du,useFactory:function(t){return Da(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new bn(Du),new _n,new wn]]},{provide:Pu,useValue:"USD"}],Cc=function(){var t=function t(e){p(this,t)};return t.\u0275mod=ct({type:t}),t.\u0275inj=A({factory:function(e){return new(e||t)(An(vc))},providers:Sc}),t}()},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("2fFW"),i=n("NJ4a"),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},hCJx:function(t,e,n){"use strict";n.d(e,"b",function(){return s}),n.d(e,"a",function(){return c}),n.d(e,"c",function(){return h});var r=n("2Vo4"),i=n("lJxs"),o=n("fXoL"),a=n("P3kg"),s=function(){function t(){p(this,t)}return y(t,[{key:"hasRoleAsync",value:function(t){var e=this;return this.roles$.pipe(Object(i.a)(function(n){return e._hasRole(t,n)}))}},{key:"hasAnyRoleAsync",value:function(t){var e=this;return this.roles$.pipe(Object(i.a)(function(n){return e._hasAnyRole(t,n)}))}},{key:"hasRolesAsync",value:function(t){var e=this;return this.roles$.pipe(Object(i.a)(function(n){return e._hasRoles(t,n)}))}},{key:"hasRole",value:function(t){return this._hasRole(t)}},{key:"hasAnyRole",value:function(t){return this._hasAnyRole(t)}},{key:"hasRoles",value:function(t){return this._hasRoles(t)}},{key:"_hasRole",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getRoles();return!(!e||!t)&&e.indexOf(t)>=0}},{key:"_hasAnyRole",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getRoles();return!(!e||!t)&&e.filter(function(e){return t.indexOf(e)>=0}).length>0}},{key:"_hasRoles",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getRoles();return!(!e||!t)&&e.filter(function(e){return t.indexOf(e)>=0}).length===t.length}}]),t}(),c=function(){var t=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this)).subject=t,r.roles$=r.subject.authorities$,r}return y(n,[{key:"getRoles",value:function(){return this.subject.getAuthorities()}}]),n}(s);return t.\u0275fac=function(e){return new(e||t)(o.Sb(a.b))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),h=function(){var t=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.call(this)).roles=new r.a([]),t.roles$=t.roles.asObservable(),t}return y(n,[{key:"ngOnDestroy",value:function(){this.roles.complete()}},{key:"getRoles",value:function(){return this.roles.getValue()}},{key:"update",value:function(t){this.roles.next(t)}}]),n}(s);return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}()},iVJa:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("d8a0"),i=function(t){u(n,t);var e=l(n);function n(t){var i;return p(this,n),(i=e.call(this,r.b.IMPLICIT,t)).loginUrl=t&&t.loginUrl||null,i.responseType=t&&t.responseType||"token",i.preventClearHashAfterLogin=t&&t.preventClearHashAfterLogin||!1,i}return n}(r.a)},itXk:function(t,e,n){"use strict";n.d(e,"b",function(){return m}),n.d(e,"a",function(){return g});var r=n("z+Ro"),i=n("DH7j"),o=n("7o/Q"),a=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"notifyNext",value:function(t,e,n,r,i){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(o.a),s=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this)).parent=t,o.outerValue=r,o.outerIndex=i,o.index=0,o}return y(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(o.a),c=n("SeVD"),h=n("HDdC");function f(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new s(t,n,r);if(!i.closed)return e instanceof h.a?e.subscribe(i):Object(c.a)(e)(i)}var d=n("yCtX"),v={};function m(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1])||arguments[1],r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},a.ob.getAllAngularTestabilities=function(){return t.getAllTestabilities()},a.ob.getAllAngularRootElements=function(){return t.getAllRootElements()},a.ob.frameworkStabilizers||(a.ob.frameworkStabilizers=[]),a.ob.frameworkStabilizers.push(function(t){var e=a.ob.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?Object(o.u)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){Object(a.X)(new t)}}]),t}(),m=new a.q("EventManagerPlugins"),g=function(){var t=function(){function t(e,n){var r=this;p(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=r}),this._plugins=e.slice().reverse()}return y(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r-1&&(e.splice(n,1),o+=t+".")}),o+=i,0!=e.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&N.hasOwnProperty(e)&&(e=N[e]))}return R[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),I.forEach(function(r){r!=n&&(0,D[r])(t)&&(e+=r+".")}),e+=n}},{key:"eventCallback",value:function(t,e,r){return function(i){n.getEventFullKey(i)===t&&r.runGuarded(function(){return e(i)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(b);return t.\u0275fac=function(e){return new(e||t)(a.Sb(o.d))},t.\u0275prov=a.Fb({token:t,factory:t.\u0275fac}),t}(),F=function(){var t=function t(){p(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(a.Fb)({factory:function(){return Object(a.Sb)(V)},token:t,providedIn:"root"}),t}();function L(t){return new V(t.get(o.d))}var V=function(){var t=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this))._doc=t,r}return y(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case a.I.NONE:return e;case a.I.HTML:return Object(a.db)(e,"HTML")?Object(a.vb)(e):Object(a.bb)(this._doc,String(e));case a.I.STYLE:return Object(a.db)(e,"Style")?Object(a.vb)(e):e;case a.I.SCRIPT:if(Object(a.db)(e,"Script"))return Object(a.vb)(e);throw new Error("unsafe value used in a script context");case a.I.URL:return Object(a.nb)(e),Object(a.db)(e,"URL")?Object(a.vb)(e):Object(a.cb)(String(e));case a.I.RESOURCE_URL:if(Object(a.db)(e,"ResourceURL"))return Object(a.vb)(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 ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return Object(a.eb)(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return Object(a.hb)(t)}},{key:"bypassSecurityTrustScript",value:function(t){return Object(a.gb)(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return Object(a.ib)(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return Object(a.fb)(t)}}]),n}(F);return t.\u0275fac=function(e){return new(e||t)(a.Sb(o.d))},t.\u0275prov=Object(a.Fb)({factory:function(){return L(Object(a.Sb)(a.o))},token:t,providedIn:"root"}),t}(),M=[{provide:a.B,useValue:o.t},{provide:a.C,useValue:function(){s.makeCurrent(),d.init()},multi:!0},{provide:o.d,useFactory:function(){return Object(a.tb)(document),document},deps:[]}],U=Object(a.R)(a.W,"browser",M),H=[[],{provide:a.Z,useValue:"root"},{provide:a.m,useFactory:function(){return new a.m},deps:[]},{provide:m,useClass:j,multi:!0,deps:[o.d,a.z,a.B]},{provide:m,useClass:P,multi:!0,deps:[o.d]},[],{provide:E,useClass:E,deps:[g,k,a.c]},{provide:a.F,useExisting:E},{provide:_,useExisting:k},{provide:k,useClass:k,deps:[o.d]},{provide:a.M,useClass:a.M,deps:[a.z]},{provide:g,useClass:g,deps:[m,a.z]},[]],z=function(){var t=function(){function t(e){if(p(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return y(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:a.c,useValue:e.appId},{provide:h,useExisting:a.c},f]}}}]),t}();return t.\u0275mod=a.Hb({type:t}),t.\u0275inj=a.Gb({factory:function(e){return new(e||t)(a.Sb(t,12))},providers:H,imports:[o.c,a.f]}),t}();"undefined"!=typeof window&&window},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},kiQV:function(t){t.exports=JSON.parse('{"name":"ngx-security","version":"11.0.1","scripts":{"ng":"ng","start":"ng serve","build":"ng build --prod --output-path ./docs --base-href /ngx-security/","test":"ng test","lint":"ng lint","e2e":"ng e2e","build:core":"ng build core --prod","build:roles":"ng build roles --prod","build:permissions":"ng build permissions --prod","build:auth":"ng build auth --prod","publish:core":"npm publish ./dist/core --access public","publish:roles":"npm publish ./dist/roles --access public","publish:permissions":"npm publish ./dist/permissions --access public","publish:auth":"npm publish ./dist/auth --access public","build:lib":"npm run build:core && npm run build:roles && npm run build:permissions && npm run build:auth","update:docs":"npm run build && git add -A docs/ && git commit -m \'Update docs app\'","release":"ngitflow release start && npm run update:docs && ngitflow release finish","release:major":"ngitflow release start major && npm run update:docs && ngitflow release finish"},"private":true,"dependencies":{"@angular/animations":"^11.0.5","@angular/cdk":"^11.0.3","@angular/common":"^11.0.5","@angular/compiler":"^11.0.5","@angular/core":"^11.0.5","@angular/forms":"^11.0.5","@angular/material":"^11.0.3","@angular/platform-browser":"^11.0.5","@angular/platform-browser-dynamic":"^11.0.5","@angular/router":"^11.0.5","core-js":"^3.8.1","highlight.js":"^10.4.1","material-design-icons":"^3.0.1","ngx-highlightjs":"^4.1.3","rxjs":"^6.6.3","shiro-trie":"^0.4.9","tslib":"^2.0.0","zone.js":"^0.10.3"},"devDependencies":{"@angular-devkit/build-angular":"^0.1100.5","@angular-devkit/core":"^11.0.5","@angular/cli":"^11.0.5","@angular/compiler-cli":"^11.0.5","@angular/language-service":"^11.0.5","@types/jasmine":"~3.6.0","@types/jasminewd2":"^2.0.8","@types/node":"^14.14.14","codelyzer":"^6.0.0","jasmine-core":"~3.6.0","jasmine-spec-reporter":"~5.0.0","karma":"~5.1.0","karma-chrome-launcher":"~3.1.0","karma-coverage-istanbul-reporter":"~3.0.2","karma-jasmine":"~4.0.0","karma-jasmine-html-reporter":"^1.5.0","ng-packagr":"^11.0.3","ngitflow":"^2.0.0","protractor":"~7.0.0","ts-node":"~9.0.0","tslint":"^6.1.3","typescript":"^4.0.5"}}')},lJxs:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("7o/Q");function i(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 o(t,e))}}var o=function(){function t(e,n){p(this,t),this.project=e,this.thisArg=n}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))}}]),t}(),a=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t)).project=r,o.count=0,o.thisArg=i||f(o),o}return y(n,[{key:"_next",value:function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(r.a)},n6bG:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",function(){return r})},nLfN:function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return f}),n.d(e,"c",function(){return b}),n.d(e,"d",function(){return g}),n.d(e,"e",function(){return v}),n.d(e,"f",function(){return m}),n.d(e,"g",function(){return y});var r,i=n("fXoL"),o=n("ofXK");try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(_){r=!1}var a,s,u,c,l,h=function(){var t=function t(e){p(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(o.r)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!r)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT};return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.B))},t.\u0275prov=Object(i.Fb)({factory:function(){return new t(Object(i.Sb)(i.B))},token:t,providedIn:"root"}),t}(),f=function(){var t=function t(){p(this,t)};return t.\u0275mod=i.Hb({type:t}),t.\u0275inj=i.Gb({factory:function(e){return new(e||t)}}),t}(),d=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function v(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(d);var t=document.createElement("input");return a=new Set(d.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function m(t){return function(){if(null==s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return s=!0}}))}finally{s=s||!1}return s}()?t:!!t.capture}function y(){if(null==c)if("object"==typeof document&&document||(c=!1),"scrollBehavior"in document.documentElement.style)c=!0;else{var t=Element.prototype.scrollTo;c=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return c}function g(){if("object"!=typeof document||!document)return 0;if(null==u){var t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";var n=document.createElement("div"),r=n.style;r.width="2px",r.height="1px",t.appendChild(n),document.body.appendChild(t),u=0,0===t.scrollLeft&&(t.scrollLeft=1,u=0===t.scrollLeft?1:2),t.parentNode.removeChild(t)}return u}function b(t){if(function(){if(null==l){var t="undefined"!=typeof document?document.head:null;l=!(!t||!t.createShadowRoot&&!t.attachShadow)}return l}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},nYR2:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("7o/Q"),i=n("quSY");function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(e){p(this,t),this.callback=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.callback))}}]),t}(),s=function(t){u(n,t);var e=l(n);function n(t,r){var o;return p(this,n),(o=e.call(this,t)).add(new i.a(r)),o}return n}(r.a)},ngFo:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("tk/3"),i=n("HDdC"),o=n("RJIb"),a=n("og18"),s=n("xDj2"),u=n("Q8NU"),c=n("VWR/"),l=n("fXoL"),h=function(){var t=function(){function t(e,n){p(this,t),this.tokens=e,this.options=n}return y(t,[{key:"initialize",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new i.a(function(n){if(t.tokens.hasValidAccessToken())return n.next({message:"Access is still valid"}),void n.complete();var r=s.a.getCodePartsFromUrl(window.location.search),i=r.code,o=r.state,a=r.error;if(!t.options.preventClearHashAfterLogin){var c=location.href.replace(/[&?]code=[^&$]*/,"").replace(/[&?]scope=[^&$]*/,"").replace(/[&?]state=[^&$]*/,"").replace(/[&?]session_state=[^&$]*/,"");history.replaceState(null,window.name,c)}if(!a)return i||o||!e?void(o?o===u.a.get("nonce")?i?t.getTokenFromCode(i).subscribe(function(){n.next({message:"Tokens saved"}),n.complete()},n.error):n.error({message:"Code is missing"}):n.error({message:"Nonce is not valid"}):n.error({message:"Nonce is missing"})):(n.next({message:"No code and authenticate automatically is set to true - you will be redirected"}),n.complete(),void t.authenticate());n.error({message:a})})}},{key:"authenticate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.location.href,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new r.e;document.location.href=this.loginUrl(t,e,n)}},{key:"loginUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new r.e,i=c.a.createAndSaveNonce();return n=(n||new r.e).set("client_id",this.options.clientId).set("state",i).set("response_type",this.options.responseType).set("redirect_uri",t),this.options.scope&&(n=n.set("scope",this.options.scope)),this.options.resource&&(n=n.set("resource",this.options.resource)),e&&(n=n.set("prompt","none")),"".concat(this.options.loginUrl,"?").concat(n.toString())}},{key:"clear",value:function(){this.tokens.clear()}},{key:"getTokenFromCode",value:function(t){var e=new r.e;if(!this.options.disablePKCE){var n=u.a.get("PKCI_verifier");n?e=e.set("code_verifier",n):console.warn("No PKCI verifier found in storage!")}return this.tokens.authenticateWithAuthorizationCode(t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(l.Sb(o.a),l.Sb(a.a))},t.\u0275prov=l.Fb({token:t,factory:t.\u0275fac}),t}()},ngJS:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){return function(e){for(var n=0,r=t.length;n0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+C(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+C(r));this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+C(r));this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(O);return t.\u0275fac=function(e){return new(e||t)(i.Sb(v),i.Sb(x,8))},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t}(),A=function(){var t=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this))._platformLocation=t,i._baseHref="",null!=r&&(i._baseHref=r),i}return y(n,[{key:"onPopState",value:function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=w(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+C(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+C(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(O);return t.\u0275fac=function(e){return new(e||t)(i.Sb(v),i.Sb(x,8))},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t}(),j=function(){var t=function(){function t(e,n){var r=this;p(this,t),this._subject=new i.n,this._urlChangeListeners=[],this._platformStrategy=e;var o=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=S(R(o)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,state:t.state,type:t.type})})}return y(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+C(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,R(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+C(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+C(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Sb(O),i.Sb(v))},t.normalizeQueryParams=C,t.joinWithSlash=w,t.stripTrailingSlash=S,t.\u0275prov=Object(i.Fb)({factory:I,token:t,providedIn:"root"}),t}();function I(){return new j(Object(i.Sb)(O),Object(i.Sb)(v))}function R(t){return t.replace(/\/index.html$/,"")}var N=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=i.mb,P=function t(){p(this,t)},F=function(){var t=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this)).locale=t,r}return y(n,[{key:"getPluralCategory",value:function(t,e){switch(D(e||this.locale)(t)){case N.Zero:return"zero";case N.One:return"one";case N.Two:return"two";case N.Few:return"few";case N.Many:return"many";default:return"other"}}}]),n}(P);return t.\u0275fac=function(e){return new(e||t)(i.Sb(i.u))},t.\u0275prov=i.Fb({token:t,factory:t.\u0275fac}),t}();function L(t,e){e=encodeURIComponent(e);var r,i=o(t.split(";"));try{for(i.s();!(r=i.n()).done;){var a=r.value,s=a.indexOf("="),u=n(-1==s?[a,""]:[a.slice(0,s),a.slice(s+1)],2),c=u[0],l=u[1];if(c.trim()===e)return decodeURIComponent(l)}}catch(h){i.e(h)}finally{i.f()}return null}var V=function(){var t=function(){function t(e,n,r,i){p(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return y(t,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(i.ub)(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})}},{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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(i.pb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),t}();return t.\u0275fac=function(e){return new(e||t)(i.Jb(i.s),i.Jb(i.t),i.Jb(i.l),i.Jb(i.E))},t.\u0275dir=i.Eb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),M=function(){function t(e,n,r,i){p(this,t),this.$implicit=e,this.ngForOf=n,this.index=r,this.count=i}return y(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),U=function(){var t=function(){function t(e,n,r){p(this,t),this._viewContainer=e,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return y(t,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new M(null,e._ngForOf,-1,-1),null===i?void 0:i),a=new H(t,o);n.push(a)}else if(null==i)e._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=e._viewContainer.get(r);e._viewContainer.move(s,i);var u=new H(t,s);n.push(u)}});for(var r=0;r=0})),t}return y(n,[{key:"ngOnDestroy",value:function(){this.subject.complete()}},{key:"getSubject",value:function(){return this.subject.getValue()}},{key:"setSubject",value:function(t){this.subject.next(t)}}]),n}(c);return t.\u0275fac=function(e){return f(e||t)},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),f=o.Qb(h)},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r,i,o=n("DH7j"),a=n("XoHu"),s=n("n6bG"),u=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(t,e){return"".concat(e+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),c=((i=function(){function t(e){p(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return y(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,r=this._ctorUnsubscribe,i=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var h=0;h0){var r=t.slice(0,e),i=r.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(o):n.headers.set(i,[o])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var r=e[t],i=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(n.headers.set(i,r),n.maybeSetNormalizedName(t,i))})}:this.headers=new Map}return y(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,r(n)),this.headers.set(e,i);break;case"d":var o=t.value;if(o){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),t}(),b=function(){function t(){p(this,t)}return y(t,[{key:"encodeKey",value:function(t){return _(t)}},{key:"encodeValue",value:function(t){return _(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function _(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,"/")}var k=function(){function t(){var e,r,i,o=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(p(this,t),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new b,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=a.fromString,r=this.encoder,i=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=n(-1==e?[r.decodeKey(t),""]:[r.decodeKey(t.slice(0,e)),r.decodeValue(t.slice(e+1))],2),a=o[0],s=o[1],u=i.get(a)||[];u.push(s),i.set(a,u)}),i)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(t){var e=a.fromObject[t];o.map.set(t,Array.isArray(e)?e:[e])})):this.map=null}return y(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),t}();function w(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function S(t){return"undefined"!=typeof Blob&&t instanceof Blob}function C(t){return"undefined"!=typeof FormData&&t instanceof FormData}var O=function(){function t(e,n,r,i){var o;if(p(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==r?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new g),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,a=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},u)),e.setParams&&(c=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},c)),new t(n,r,o,{params:c,headers:u,reportProgress:s,responseType:i,withCredentials:a})}}]),t}(),E=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}({}),x=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";p(this,t),this.headers=e.headers||new g,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},T=function(t){u(n,t);var e=l(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,n),(t=e.call(this,r)).type=E.ResponseHeader,t}return y(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(x),A=function(t){u(n,t);var e=l(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return p(this,n),(t=e.call(this,r)).type=E.Response,t.body=void 0!==r.body?r.body:null,t}return y(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(x),j=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",r.ok=!1,r.message=r.status>=200&&r.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),r.error=t.error||null,r}return n}(x);function I(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var R=function(){var t=function(){function t(e){p(this,t),this.handler=e}return y(t,[{key:"request",value:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof O)n=t;else{var o=void 0;o=i.headers instanceof g?i.headers:new g(i.headers);var s=void 0;i.params&&(s=i.params instanceof k?i.params:new k({fromObject:i.params})),n=new O(t,e,void 0!==i.body?i.body:null,{headers:o,params:s,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}var u=Object(a.a)(n).pipe(Object(c.a)(function(t){return r.handler.handle(t)}));if(t instanceof O||"events"===i.observe)return u;var l=u.pipe(Object(h.a)(function(t){return t instanceof A}));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(Object(f.a)(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Object(f.a)(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Object(f.a)(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(Object(f.a)(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(i.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new k).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,I(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,I(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,I(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(v))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),N=function(){function t(e,n){p(this,t),this.next=e,this.interceptor=n}return y(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),D=new o.q("HTTP_INTERCEPTORS"),P=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),F=/^\)\]\}',?\n/,L=function t(){p(this,t)},V=function(){var t=function(){function t(){p(this,t)}return y(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),M=function(){var t=function(){function t(e){p(this,t),this.xhrFactory=e}return y(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new s.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new g(r.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}(r)||t.url;return s=new T({headers:i,status:e,statusText:n,url:o})},c=function(){var e=u(),i=e.headers,o=e.status,a=e.statusText,s=e.url,c=null;204!==o&&(c=void 0===r.response?r.responseText:r.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof c){var h=c;c=c.replace(F,"");try{c=""!==c?JSON.parse(c):null}catch(f){c=h,l&&(l=!1,c={error:f,text:c})}}l?(n.next(new A({body:c,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new j({error:c,headers:i,status:o,statusText:a,url:s||void 0}))},l=function(t){var e=u().url,i=new j({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error",url:e||void 0});n.error(i)},h=!1,f=function(e){h||(n.next(u()),h=!0);var i={type:E.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:E.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",c),r.addEventListener("error",l),t.reportProgress&&(r.addEventListener("progress",f),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:E.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",c),t.reportProgress&&(r.removeEventListener("progress",f),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.readyState!==r.DONE&&r.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(L))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),U=new o.q("XSRF_COOKIE_NAME"),H=new o.q("XSRF_HEADER_NAME"),z=function t(){p(this,t)},B=function(){var t=function(){function t(e,n,r){p(this,t),this.doc=e,this.platform=n,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return y(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(d.v)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(d.d),o.Sb(o.B),o.Sb(U))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),q=function(){var t=function(){function t(e,n){p(this,t),this.tokenService=e,this.headerName=n}return y(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(z),o.Sb(H))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),W=function(){var t=function(){function t(e,n){p(this,t),this.backend=e,this.injector=n,this.chain=null}return y(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(D,[]);this.chain=e.reduceRight(function(t,e){return new N(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(m),o.Sb(o.r))},t.\u0275prov=o.Fb({token:t,factory:t.\u0275fac}),t}(),J=function(){var t=function(){function t(){p(this,t)}return y(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:q,useClass:P}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:U,useValue:e.cookieName}:[],e.headerName?{provide:H,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},providers:[q,{provide:D,useExisting:q,multi:!0},{provide:z,useClass:B},{provide:U,useValue:"XSRF-TOKEN"},{provide:H,useValue:"X-XSRF-TOKEN"}]}),t}(),G=function(){var t=function t(){p(this,t)};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)},providers:[R,{provide:v,useClass:W},M,{provide:m,useExisting:M},V,{provide:L,useExisting:V}],imports:[[J.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}()},tyNb:function(t,e,i){"use strict";i.d(e,"a",function(){return Kt}),i.d(e,"b",function(){return W}),i.d(e,"c",function(){return yn}),i.d(e,"d",function(){return gn}),i.d(e,"e",function(){return On}),i.d(e,"f",function(){return Ln}),i.d(e,"g",function(){return En});var a=i("ofXK"),s=i("fXoL"),c=i("LRne"),h=i("Cfvw"),d=i("2Vo4"),v=i("itXk"),m=i("HDdC"),g=i("sVev"),b=i("NXyV"),_=i("EY2u"),k=i("XNiG"),w=i("lJxs"),S=i("0EUg"),C=i("NJ9Y"),O=i("eIep"),E=i("IzEk"),x=i("JX91"),T=i("7o/Q"),A=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];p(this,t),this.accumulator=e,this.seed=n,this.hasSeed=r}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new j(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),j=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t)).accumulator=r,a._seed=i,a.hasSeed=o,a.index=0,a}return y(n,[{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)}},{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}}]),n}(T.a),I=i("pLZG"),R=i("JIr8"),N=i("bOdf"),D=i("xbPD"),P=i("XDbj"),F=i("SpAZ");function L(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(I.a)(function(e,n){return t(e,n,r)}):F.a,Object(E.a)(1),n?Object(D.a)(e):Object(P.a)(function(){return new g.a}))}}var V=i("5+tZ"),M=i("vkgz"),U=i("BFxc"),H=i("nYR2"),z=i("bHdf"),B=function t(e,n){p(this,t),this.id=e,this.url=n},q=function(t){u(n,t);var e=l(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return p(this,n),(i=e.call(this,t,r)).navigationTrigger=o,i.restoredState=a,i}return y(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(B),W=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o}return y(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(B),J=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).reason=i,o}return y(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(B),G=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t,r)).error=i,o}return y(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(B),K=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(B),Q=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(B),Z=function(t){u(n,t);var e=l(n);function n(t,r,i,o,a){var s;return p(this,n),(s=e.call(this,t,r)).urlAfterRedirects=i,s.state=o,s.shouldActivate=a,s}return y(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(B),X=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(B),$=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;return p(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a.state=o,a}return y(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(B),Y=function(){function t(e){p(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),tt=function(){function t(e){p(this,t),this.route=e}return y(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),et=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),nt=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),rt=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),it=function(){function t(e){p(this,t),this.snapshot=e}return y(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),ot=function(){function t(e,n,r){p(this,t),this.routerEvent=e,this.position=n,this.anchor=r}return y(t,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),t}(),at=function(){function t(e){p(this,t),this.params=e||{}}return y(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function st(t){return new at(t)}function ut(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function ct(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function vt(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function pt(t){return Object(s.qb)(t)?t:Object(s.rb)(t)?Object(h.a)(Promise.resolve(t)):Object(c.a)(t)}function mt(t,e,n){return n?function(t,e){return lt(t,e)}(t.queryParams,e.queryParams)&&yt(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return ht(t[n],e[n])})}(t.queryParams,e.queryParams)&>(t.root,e.root)}function yt(t,e){if(!St(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!yt(t.children[n],e.children[n]))return!1}return!0}function gt(t,e){return bt(t,e,e.segments)}function bt(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(var r in e.children){if(!t.children[r])return!1;if(!gt(t.children[r],e.children[r]))return!1}return!0}var i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!St(t.segments,i)&&!!t.children.primary&&bt(t.children.primary,e,o)}var _t=function(){function t(e,n,r){p(this,t),this.root=e,this.queryParams=n,this.fragment=r}return y(t,[{key:"toString",value:function(){return xt.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}}]),t}(),kt=function(){function t(e,n){var r=this;p(this,t),this.segments=e,this.children=n,this.parent=null,vt(n,function(t,e){return t.parent=r})}return y(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return Tt(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),t}(),wt=function(){function t(e,n){p(this,t),this.path=e,this.parameters=n}return y(t,[{key:"toString",value:function(){return Pt(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=st(this.parameters)),this._parameterMap}}]),t}();function St(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Ct(t,e){var n=[];return vt(t.children,function(t,r){"primary"===r&&(n=n.concat(e(t,r)))}),vt(t.children,function(t,r){"primary"!==r&&(n=n.concat(e(t,r)))}),n}var Ot=function t(){p(this,t)},Et=function(){function t(){p(this,t)}return y(t,[{key:"parse",value:function(t){var e=new Ut(t);return new _t(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){return"".concat("/"+At(t.root,!0)).concat((e=t.queryParams,n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(It(t),"=").concat(It(e))}).join("&"):"".concat(It(t),"=").concat(It(n))}),n.length?"?"+n.join("&"):"")).concat("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"");var e,n}}]),t}(),xt=new Et;function Tt(t){return t.segments.map(function(t){return Pt(t)}).join("/")}function At(t,e){if(!t.hasChildren())return Tt(t);if(e){var n=t.children.primary?At(t.children.primary,!1):"",r=[];return vt(t.children,function(t,e){"primary"!==e&&r.push("".concat(e,":").concat(At(t,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=Ct(t,function(e,n){return"primary"===n?[At(t.children.primary,!1)]:["".concat(n,":").concat(At(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Tt(t),"/").concat(i[0]):"".concat(Tt(t),"/(").concat(i.join("//"),")")}function jt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function It(t){return jt(t).replace(/%3B/gi,";")}function Rt(t){return jt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nt(t){return decodeURIComponent(t)}function Dt(t){return Nt(t.replace(/\+/g,"%20"))}function Pt(t){return"".concat(Rt(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(Rt(t),"=").concat(Rt(e[t]))}).join("")));var e}var Ft=/^[^\/()?;=#]+/;function Lt(t){var e=t.match(Ft);return e?e[0]:""}var Vt=/^[^=?&#]+/,Mt=/^[^?&#]+/,Ut=function(){function t(e){p(this,t),this.url=e,this.remaining=e}return y(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new kt([],{}):new kt([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new kt(t,e)),n}},{key:"parseSegment",value:function(){var t=Lt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new wt(Nt(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=Lt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Lt(this.remaining);r&&(n=r,this.capture(n))}t[Nt(e)]=Nt(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Vt);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(Mt);return e?e[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=Dt(e),o=Dt(n);if(t.hasOwnProperty(i)){var a=t[i];Array.isArray(a)||(a=[a],t[i]=a),a.push(o)}else t[i]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Lt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i="primary");var o=this.parseChildren();e[i]=1===Object.keys(o).length?o.primary:new kt([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),Ht=function(){function t(e){p(this,t),this._root=e}return y(t,[{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=zt(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=zt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Bt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return Bt(t,this._root).map(function(t){return t.value})}},{key:"root",get:function(){return this._root.value}}]),t}();function zt(t,e){if(t===e.value)return e;var n,r=o(e.children);try{for(r.s();!(n=r.n()).done;){var i=zt(t,n.value);if(i)return i}}catch(a){r.e(a)}finally{r.f()}return null}function Bt(t,e){if(t===e.value)return[e];var n,r=o(e.children);try{for(r.s();!(n=r.n()).done;){var i=Bt(t,n.value);if(i.length)return i.unshift(e),i}}catch(a){r.e(a)}finally{r.f()}return[]}var qt=function(){function t(e,n){p(this,t),this.value=e,this.children=n}return y(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function Wt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Jt=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).snapshot=r,$t(f(i),t),i}return y(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Ht);function Gt(t,e){var n=function(t,e){var n=new Zt([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Xt("",new qt(n,[]))}(t,e),r=new d.a([new wt("",{})]),i=new d.a({}),o=new d.a({}),a=new d.a({}),s=new d.a(""),u=new Kt(r,i,a,s,o,"primary",e,n.root);return u.snapshot=n.root,new Jt(new qt(u,[]),n)}var Kt=function(){function t(e,n,r,i,o,a,s,u){p(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this._futureSnapshot=u}return y(t,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(w.a)(function(t){return st(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(w.a)(function(t){return st(t)}))),this._queryParamMap}}]),t}();function Qt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var i=n[r],o=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(o.component)break;r--}}return function(t){return t.reduce(function(t,e){return{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(r))}var Zt=function(){function t(e,n,r,i,o,a,s,u,c,l,h){p(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=a,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}return y(t,[{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(t){return t.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=st(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=st(this.queryParams)),this._queryParamMap}}]),t}(),Xt=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,r)).url=t,$t(f(i),r),i}return y(n,[{key:"toString",value:function(){return Yt(this._root)}}]),n}(Ht);function $t(t,e){e.value._routerState=t,e.children.forEach(function(e){return $t(t,e)})}function Yt(t){var e=t.children.length>0?" { ".concat(t.children.map(Yt).join(", ")," } "):"";return"".concat(t.value).concat(e)}function te(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,lt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),lt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&ie(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(oe);if(i&&i!==dt(r))throw new Error("{outlets:{}} has to be the last command")}return y(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),ce=function t(e,n,r){p(this,t),this.segmentGroup=e,this.processChildren=n,this.index=r};function le(t,e,n){if(t||(t=new kt([],{})),0===t.segments.length&&t.hasChildren())return he(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=t.segments[i],s=n[r];if(oe(s))break;var u=""+s,c=r0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!pe(u,c,a))return o;r+=2}else{if(!pe(u,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2&&(n=!0),function(r){return r.lift(new A(t,e,n))}}(function(t,e){var n=!1;return e.reduce(function(t,r,i){if(t!==ke)return t;if(r===ke&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||_e(r))return r}return t},t)},ke),Object(I.a)(function(t){return t!==ke}),Object(w.a)(function(t){return _e(t)?t:!0===t}),Object(E.a)(1))})}var Se,Ce=((Se=function t(){p(this,t)}).\u0275fac=function(t){return new(t||Se)},Se.\u0275cmp=s.Db({type:Se,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Kb(0,"router-outlet")},directives:function(){return[En]},encapsulation:2}),Se);function Oe(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0?new kt([],{primary:t}):t;return new _t(r,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(w.a)(function(t){return new kt([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)}},{key:"expandChildren",value:function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return Object(c.a)({});var o=[],a=[],s={};return vt(n,function(n,i){var u,c,l=(u=i,c=n,r.expandSegmentGroup(t,e,c,u)).pipe(Object(w.a)(function(t){return s[i]=t}));"primary"===i?o.push(l):a.push(l)}),c.a.apply(null,o.concat(a)).pipe(Object(S.a)(),Object(C.a)(),Object(w.a)(function(){return s}))}(n.children)}},{key:"expandSegment",value:function(t,e,r,i,o,a){var s=this,u=function(t){return t.reduce(function(t,e){var n=Ae(e);return t.has(n)?t.get(n).push(e):t.set(n,[e]),t},new Map)}(r);u.has(o)||u.set(o,[]);var l=Array.from(u.entries()).map(function(r){var u=n(r,2),l=u[0],f=function(n){return Object(h.a)(n).pipe(Object(N.a)(function(r){return s.expandSegmentAgainstRoute(t,e,n,r,i,o,a).pipe(Object(R.a)(function(t){if(t instanceof je)return Object(c.a)(null);throw t}))}),L(function(t){return null!==t}),Object(R.a)(function(t){if(t instanceof g.a||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,i,o))return Object(c.a)(new kt([],{}));throw new je(e)}throw t}))}(u[1]);return l===o?f:f.pipe(Object(w.a)(function(){return null}),Object(R.a)(function(){return Object(c.a)(null)}))});return Object(h.a)(l).pipe(function(t){return t.lift(new v.a(void 0))},L(),Object(w.a)(function(t){return t.find(function(t){return null!==t})}))}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,r,i,o,a){return Ae(r)!==o&&""!==r.path?Re(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):Re(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ne(o):this.lineralizeSegments(n,o).pipe(Object(V.a)(function(n){var o=new kt(n,{});return i.expandSegment(t,o,e,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,o){var a=this,s=Fe(e,r,i),u=s.matched,c=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!u)return Re(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?Ne(f):this.lineralizeSegments(r,f).pipe(Object(V.a)(function(r){return a.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(w.a)(function(t){return n._loadedConfig=t,new kt(r,{})})):Object(c.a)(new kt(r,{}));var a=Fe(e,n,r),s=a.matched,u=a.consumedSegments,l=a.lastChild;if(!s)return Re(e);var h=r.slice(l);return this.getChildConfig(t,n,r).pipe(Object(V.a)(function(t){var n=t.module,r=t.routes,a=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(function(n){return Ve(t,e,n)&&"primary"!==Ae(n)})}(t,n,r)?{segmentGroup:Le(new kt(e,function(t,e){var n={};n.primary=e;var r,i=o(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;""===a.path&&"primary"!==Ae(a)&&(n[Ae(a)]=new kt([],{}))}}catch(s){i.e(s)}finally{i.f()}return n}(r,new kt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(function(n){return Ve(t,e,n)})}(t,n,r)?{segmentGroup:Le(new kt(t.segments,function(t,e,n,r){var i,a={},s=o(n);try{for(s.s();!(i=s.n()).done;){var u=i.value;Ve(t,e,u)&&!r[Ae(u)]&&(a[Ae(u)]=new kt([],{}))}}catch(c){s.e(c)}finally{s.f()}return Object.assign(Object.assign({},r),a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,h,r),s=a.segmentGroup,l=a.slicedSegments;return 0===l.length&&s.hasChildren()?i.expandChildren(n,r,s).pipe(Object(w.a)(function(t){return new kt(u,t)})):0===r.length&&0===l.length?Object(c.a)(new kt(u,{})):i.expandSegment(n,s,r,l,"primary",!0).pipe(Object(w.a)(function(t){return new kt(u.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var r=this;return e.children?Object(c.a)(new ge(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(c.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(V.a)(function(n){return n?r.configLoader.load(t.injector,e).pipe(Object(w.a)(function(t){return e._loadedConfig=t,t})):function(t){return new m.a(function(e){return e.error(ut("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):Object(c.a)(new ge([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var r=this,i=e.canLoad;if(!i||0===i.length)return Object(c.a)(!0);var o=i.map(function(r){var i,o=t.get(r);if(function(t){return t&&be(t.canLoad)}(o))i=o.canLoad(e,n);else{if(!be(o))throw new Error("Invalid CanLoad guard");i=o(e,n)}return pt(i)});return Object(c.a)(o).pipe(we(),Object(M.a)(function(t){if(_e(t)){var e=ut('Redirecting to "'.concat(r.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),Object(w.a)(function(t){return!0===t}))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(c.a)(n);if(r.numberOfChildren>1||!r.children.primary)return De(t.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new _t(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return vt(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return vt(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new kt(o,a)}},{key:"createSegments",value:function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})}},{key:"findPosParam",value:function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return r}},{key:"findOrReturn",value:function(t,e){var n,r=0,i=o(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.path===t.path)return e.splice(r),a;r++}}catch(s){i.e(s)}finally{i.f()}return t}}]),t}();function Fe(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||ct)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Le(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new kt(t.segments.concat(e.segments),e.children)}return t}function Ve(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}var Me=function t(e){p(this,t),this.path=e,this.route=this.path[this.path.length-1]},Ue=function t(e,n){p(this,t),this.component=e,this.route=n};function He(t,e,n){var r=t._root;return Be(r,e?e._root:null,n,[r.value])}function ze(t,e,n){var r=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Be(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=Wt(e);return t.children.forEach(function(t){!function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=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)||!lt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ee(t,e)||!lt(t.queryParams,e.queryParams);case"paramsChange":default:return!ee(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Me(r)):(o.data=a.data,o._resolvedData=a._resolvedData),Be(t,e,o.component?s?s.children:null:n,r,i),u&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new Ue(s.outlet.component,a))}else a&&qe(e,s,i),i.canActivateChecks.push(new Me(r)),Be(t,null,o.component?s?s.children:null:n,r,i)}(t,o[t.value.outlet],n,r.concat([t.value]),i),delete o[t.value.outlet]}),vt(o,function(t,e){return qe(t,n.getContext(e),i)}),i}function qe(t,e,n){var r=Wt(t),i=t.value;vt(r,function(t,r){qe(t,i.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Ue(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}function We(t,e){return null!==t&&e&&e(new rt(t)),Object(c.a)(!0)}function Je(t,e){return null!==t&&e&&e(new et(t)),Object(c.a)(!0)}function Ge(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(c.a)(!0);var i=r.map(function(r){return Object(b.a)(function(){var i,o=ze(r,e,n);if(function(t){return t&&be(t.canActivate)}(o))i=pt(o.canActivate(e,t));else{if(!be(o))throw new Error("Invalid CanActivate guard");i=pt(o(e,t))}return i.pipe(L())})});return Object(c.a)(i).pipe(we())}function Ke(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Object(b.a)(function(){var i=e.guards.map(function(i){var o,a=ze(i,e.node,n);if(function(t){return t&&be(t.canActivateChild)}(a))o=pt(a.canActivateChild(r,t));else{if(!be(a))throw new Error("Invalid CanActivateChild guard");o=pt(a(r,t))}return o.pipe(L())});return Object(c.a)(i).pipe(we())})});return Object(c.a)(i).pipe(we())}var Qe=function t(){p(this,t)},Ze=function(){function t(e,n,r,i,o,a){p(this,t),this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return y(t,[{key:"recognize",value:function(){try{var t=Ye(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Zt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new qt(n,e),i=new Xt(this.url,r);return this.inheritParamsAndData(i._root),Object(c.a)(i)}catch(o){return new m.a(function(t){return t.error(o)})}}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,r=Qt(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){var n,r=this,i=Ct(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[t.value.outlet]=t.value}),i.sort(function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}),i}},{key:"processSegment",value:function(t,e,n,r){var i,a=o(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(u){if(!(u instanceof Qe))throw u}}}catch(c){a.e(c)}finally{a.f()}if(this.noLeftoversInUrl(e,n,r))return[];throw new Qe}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"processSegmentAgainstRoute",value:function(t,e,n,r){if(t.redirectTo)throw new Qe;if((t.outlet||"primary")!==r)throw new Qe;var i,o=[],a=[];if("**"===t.path){var s=n.length>0?dt(n).parameters:{};i=new Zt(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,en(t),r,t.component,t,Xe(e),$e(e)+n.length,nn(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Qe;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||ct)(n,t,e);if(!r)throw new Qe;var i={};vt(r.posParams,function(t,e){i[e]=t.path});var o=r.consumed.length>0?Object.assign(Object.assign({},i),r.consumed[r.consumed.length-1].parameters):i;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}(e,t,n);o=u.consumedSegments,a=n.slice(u.lastChild),i=new Zt(o,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,en(t),r,t.component,t,Xe(e),$e(e)+o.length,nn(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=Ye(e,o,a,c,this.relativeLinkResolution),h=l.segmentGroup,f=l.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new qt(i,d)]}if(0===c.length&&0===f.length)return[new qt(i,[])];var v=this.processSegment(c,h,f,"primary");return[new qt(i,v)]}}]),t}();function Xe(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function $e(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Ye(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some(function(n){return tn(t,e,n)&&"primary"!==Ae(n)})}(t,n,r)){var a=new kt(e,function(t,e,n,r){var i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;var a,s=o(n);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(""===u.path&&"primary"!==Ae(u)){var c=new kt([],{});c._sourceSegment=t,c._segmentIndexShift=e.length,i[Ae(u)]=c}}}catch(l){s.e(l)}finally{s.f()}return i}(t,e,r,new kt(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(function(n){return tn(t,e,n)})}(t,n,r)){var s=new kt(t.segments,function(t,e,n,r,i,a){var s,u={},c=o(r);try{for(c.s();!(s=c.n()).done;){var l=s.value;if(tn(t,n,l)&&!i[Ae(l)]){var h=new kt([],{});h._sourceSegment=t,h._segmentIndexShift="legacy"===a?t.segments.length:e.length,u[Ae(l)]=h}}}catch(f){c.e(f)}finally{c.f()}return Object.assign(Object.assign({},i),u)}(t,e,n,r,t.children,i));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var u=new kt(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}function tn(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function en(t){return t.data||{}}function nn(t){return t.resolve||{}}function rn(t){return function(e){return e.pipe(Object(O.a)(function(e){var n=t(e);return n?Object(h.a)(n).pipe(Object(w.a)(function(){return e})):Object(h.a)([e])}))}}var on=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return n}(function(){function t(){p(this,t)}return y(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),an=new s.q("ROUTES"),sn=function(){function t(e,n,r,i){p(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return y(t,[{key:"load",value:function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(w.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new ge(ft(i.injector.get(an)).map(Te),i)}))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Object(h.a)(this.loader.load(t)):pt(t()).pipe(Object(V.a)(function(t){return t instanceof s.v?Object(c.a)(t):Object(h.a)(e.compiler.compileModuleAsync(t))}))}}]),t}(),un=function t(){p(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new cn,this.attachRef=null},cn=function(){function t(){p(this,t),this.contexts=new Map}return y(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new un,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),ln=function(){function t(){p(this,t)}return y(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function hn(t){throw t}function fn(t,e,n){return e.parse("/")}function dn(t,e){return Object(c.a)(null)}var vn,pn,mn,yn=((mn=function(){function t(e,n,r,i,o,a,u,c){var l=this;p(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new k.a,this.errorHandler=hn,this.malformedUriErrorHandler=fn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:dn,afterPreactivation:dn},this.urlHandlingStrategy=new ln,this.routeReuseStrategy=new on,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=o.get(s.x),this.console=o.get(s.Y);var h=o.get(s.z);this.isNgZoneEnabled=h instanceof s.z,this.resetConfig(c),this.currentUrlTree=new _t(new kt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new sn(a,u,function(t){return l.triggerEvent(new Y(t))},function(t){return l.triggerEvent(new tt(t))}),this.routerState=Gt(this.currentUrlTree,this.rootComponentType),this.transitions=new d.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()}return y(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Object(I.a)(function(t){return 0!==t.id}),Object(w.a)(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Object(O.a)(function(t){var r,i,o,a=!1,s=!1;return Object(c.a)(t).pipe(Object(M.a)(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(O.a)(function(t){var r,i,o,a,s=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||s)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(c.a)(t).pipe(Object(O.a)(function(t){var r=e.transitions.getValue();return n.next(new q(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?_.a:[t]}),Object(O.a)(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,i=e.configLoader,o=e.urlSerializer,a=e.config,function(t){return t.pipe(Object(O.a)(function(t){return function(t,e,n,r,i){return new Pe(t,e,n,r,i).apply()}(r,i,o,t.extractedUrl,a).pipe(Object(w.a)(function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})}))}))}),Object(M.a)(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,r,i,o){return function(r){return r.pipe(Object(V.a)(function(r){return function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new Ze(t,e,n,r,i,o).recognize()}(t,n,r.urlAfterRedirects,(a=r.urlAfterRedirects,e.serializeUrl(a)),i,o).pipe(Object(w.a)(function(t){return Object.assign(Object.assign({},r),{targetSnapshot:t})}));var a}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Object(M.a)(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),Object(M.a)(function(t){var r=new K(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(s&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var u=t.id,l=t.extractedUrl,h=t.source,f=t.restoredState,d=t.extras,v=new q(u,e.serializeUrl(l),h,f);n.next(v);var p=Gt(l,e.rootComponentType).snapshot;return Object(c.a)(Object.assign(Object.assign({},t),{targetSnapshot:p,urlAfterRedirects:l,extras:Object.assign(Object.assign({},d),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),_.a}),rn(function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Object(M.a)(function(t){var n=new Q(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Object(w.a)(function(t){return Object.assign(Object.assign({},t),{guards:He(t.targetSnapshot,t.currentSnapshot,e.rootContexts)})}),function(t,e){return function(n){return n.pipe(Object(V.a)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Object(c.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(h.a)(t).pipe(Object(V.a)(function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(c.a)(!0);var a=o.map(function(o){var a,s=ze(o,e,i);if(function(t){return t&&be(t.canDeactivate)}(s))a=pt(s.canDeactivate(t,e,n,r));else{if(!be(s))throw new Error("Invalid CanDeactivate guard");a=pt(s(t,e,n,r))}return a.pipe(L())});return Object(c.a)(a).pipe(we())}(t.component,t.route,n,e,r)}),L(function(t){return!0!==t},!0))}(s,r,i,t).pipe(Object(V.a)(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Object(h.a)(e).pipe(Object(N.a)(function(e){return Object(h.a)([Je(e.route.parent,r),We(e.route,r),Ke(t,e.path,n),Ge(t,e.route,n)]).pipe(Object(S.a)(),L(function(t){return!0!==t},!0))}),L(function(t){return!0!==t},!0))}(r,a,t,e):Object(c.a)(n)}),Object(w.a)(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),Object(M.a)(function(t){if(_e(t.guardsResult)){var n=ut('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}}),Object(M.a)(function(t){var n=new Z(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),Object(I.a)(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new J(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),rn(function(t){if(t.guards.canActivateChecks.length)return Object(c.a)(t).pipe(Object(M.a)(function(t){var n=new X(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Object(O.a)(function(t){var r,i,o=!1;return Object(c.a)(t).pipe((r=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(Object(V.a)(function(t){var e=t.targetSnapshot,n=t.guards.canActivateChecks;if(!n.length)return Object(c.a)(t);var o=0;return Object(h.a)(n).pipe(Object(N.a)(function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Object(c.a)({});var o={};return Object(h.a)(i).pipe(Object(V.a)(function(i){return function(t,e,n,r){var i=ze(t,e,r);return pt(i.resolve?i.resolve(e,n):i(e,n))}(t[i],e,n,r).pipe(Object(M.a)(function(t){o[i]=t}))}),Object(U.a)(1),Object(V.a)(function(){return Object.keys(o).length===i.length?Object(c.a)(o):_.a}))}(t._resolve,t,e,r).pipe(Object(w.a)(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Qt(t,n).resolve),null}))}(t.route,e,r,i)}),Object(M.a)(function(){return o++}),Object(U.a)(1),Object(V.a)(function(e){return o===n.length?Object(c.a)(t):_.a}))}))}),Object(M.a)({next:function(){return o=!0},complete:function(){if(!o){var r=new J(t.id,e.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),t.resolve(!1)}}}))}),Object(M.a)(function(t){var n=new $(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}),rn(function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,o=t.rawUrl,a=t.extras,s=a.skipLocationChange,u=a.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:o,skipLocationChange:!!s,replaceUrl:!!u})}),Object(w.a)(function(t){var n=function(t,e,n){var r=ne(t,e._root,n?n._root:void 0);return new Jt(r,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:n})}),Object(M.a)(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)}),(r=e.rootContexts,i=e.routeReuseStrategy,o=function(t){return e.triggerEvent(t)},Object(w.a)(function(t){return new me(i,t.targetRouterState,t.currentRouterState,o).activate(r),t})),Object(M.a)({next:function(){a=!0},complete:function(){a=!0}}),Object(H.a)(function(){if(!a&&!s){e.resetUrlToCurrentUrlTree();var r=new J(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId));n.next(r),t.resolve(!1)}e.currentNavigation=null}),Object(R.a)(function(r){if(s=!0,(u=r)&&u.ngNavigationCancelingError){var i=_e(r.url);i||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new J(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(o),i?setTimeout(function(){var n=e.urlHandlingStrategy.merge(r.url,e.rawUrlTree);return e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new G(t.id,e.serializeUrl(t.extractedUrl),r);n.next(a);try{t.resolve(e.errorHandler(r))}catch(c){t.reject(c)}}var u;return _.a}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,r=n.state,i=n.urlTree,o={replaceUrl:!0};if(r){var a=Object.assign({},r);delete a.navigationId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(i,e,r,o)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(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}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var 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))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Oe(t),this.config=t.map(Te),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,o=e.fragment,a=e.queryParamsHandling,s=e.preserveFragment,u=n||this.routerState.root,c=s?this.currentUrlTree.fragment:o,l=null;switch(a){case"merge":l=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=i||null}return null!==l&&(l=this.removeEmptyProps(l)),function(t,e,n,i,o){if(0===n.length)return ae(e.root,e.root,e,i,o);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ue(!0,0,t);var e=0,n=!1,i=t.reduce(function(t,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return vt(i.outlets,function(t,e){a[e]="string"==typeof t?t.split("/"):t}),[].concat(r(t),[{outlets:a}])}if(i.segmentPath)return[].concat(r(t),[i.segmentPath])}return"string"!=typeof i?[].concat(r(t),[i]):0===o?(i.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[].concat(r(t),[i])},[]);return new ue(n,e,i)}(n);if(a.toRoot())return ae(e.root,new kt([],{}),e,i,o);var s=function(t,e,n){if(t.isAbsolute)return new ce(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){var r=n.snapshot._urlSegment;return new ce(r,r===e.root,0)}var i=ie(t.commands[0])?0:1;return function(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new ce(r,!1,i-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(a,e,t),u=s.processChildren?he(s.segmentGroup,s.index,a.commands):le(s.segmentGroup,s.index,a.commands);return ae(s.segmentGroup,u,e,i,o)}(u,this.currentUrlTree,t,l,c)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=_e(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};p(this,t),this.router=e,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return y(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof q?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof W&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof ot&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new ot(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}()).\u0275fac=function(t){return new(t||Sn)(s.Sb(yn),s.Sb(a.q),s.Sb(void 0))},Sn.\u0275prov=s.Fb({token:Sn,factory:Sn.\u0275fac}),Sn),Rn=new s.q("ROUTER_CONFIGURATION"),Nn=new s.q("ROUTER_FORROOT_GUARD"),Dn=[a.h,{provide:Ot,useClass:Et},{provide:yn,useFactory:function(t,e,n,r,i,o,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,h=new yn(null,t,e,n,r,i,o,ft(s));if(c&&(h.urlHandlingStrategy=c),l&&(h.routeReuseStrategy=l),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)}(u,h),u.enableTracing){var f=Object(a.u)();h.events.subscribe(function(t){f.logGroup("Router Event: "+t.constructor.name),f.log(t.toString()),f.log(t),f.logGroupEnd()})}return h},deps:[Ot,cn,a.h,s.r,s.w,s.i,an,Rn,[function(){return function t(){p(this,t)}}(),new s.A],[function(){return function t(){p(this,t)}}(),new s.A]]},cn,{provide:Kt,useFactory:function(t){return t.routerState.root},deps:[yn]},{provide:s.w,useClass:s.K},jn,An,function(){function t(){p(this,t)}return y(t,[{key:"preload",value:function(t,e){return e().pipe(Object(R.a)(function(){return Object(c.a)(null)}))}}]),t}(),{provide:Rn,useValue:{enableTracing:!1}}];function Pn(){return new s.y("Router",yn)}var Fn,Ln=((Fn=function(){function t(e,n){p(this,t)}return y(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[Dn,Hn(e),{provide:Nn,useFactory:Un,deps:[[yn,new s.A,new s.J]]},{provide:Rn,useValue:n||{}},{provide:a.i,useFactory:Mn,deps:[a.p,[new s.p(a.a),new s.A],Rn]},{provide:In,useFactory:Vn,deps:[yn,a.q,Rn]},{provide:Tn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:An},{provide:s.y,multi:!0,useFactory:Pn},[Bn,{provide:s.d,multi:!0,useFactory:qn,deps:[Bn]},{provide:Jn,useFactory:Wn,deps:[Bn]},{provide:s.b,multi:!0,useExisting:Jn}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Hn(e)]}}}]),t}()).\u0275mod=s.Hb({type:Fn}),Fn.\u0275inj=s.Gb({factory:function(t){return new(t||Fn)(s.Sb(Nn,8),s.Sb(yn,8))}}),Fn);function Vn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new In(t,e,n)}function Mn(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new a.e(t,e):new a.o(t,e)}function Un(t){return"guarded"}function Hn(t){return[{provide:s.a,multi:!0,useValue:t},{provide:an,multi:!0,useValue:t}]}var zn,Bn=((zn=function(){function t(e){p(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new k.a}return y(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(a.g,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(yn),i=t.injector.get(Rn);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),e(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return t.initNavigation?Object(c.a)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Rn),n=this.injector.get(jn),r=this.injector.get(In),i=this.injector.get(yn),o=this.injector.get(s.g);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),t}()).\u0275fac=function(t){return new(t||zn)(s.Sb(s.r))},zn.\u0275prov=s.Fb({token:zn,factory:zn.\u0275fac}),zn);function qn(t){return t.appInitializer.bind(t)}function Wn(t){return t.bootstrapListener.bind(t)}var Jn=new s.q("Router Initializer")},u47x:function(t,e,n){"use strict";n.d(e,"a",function(){return V}),n.d(e,"b",function(){return C}),n.d(e,"c",function(){return F}),n.d(e,"d",function(){return O}),n.d(e,"e",function(){return D}),n.d(e,"f",function(){return j}),n.d(e,"g",function(){return L}),n.d(e,"h",function(){return I});var r=n("ofXK"),o=n("fXoL"),a=n("nLfN"),s=n("XNiG"),c=n("quSY"),h=n("LRne"),f=n("FtGj"),d=n("vkgz"),m=n("Kj3r"),g=n("pLZG"),b=n("lJxs"),_=n("IzEk"),k=n("8LU1"),w=n("GU7r"),S=function(){function t(e){var n=this;p(this,t),this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new s.a,this._typeaheadSubscription=c.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new s.a,this.change=new s.a,e instanceof o.D&&e.changes.subscribe(function(t){if(n._activeItem){var e=t.toArray().indexOf(n._activeItem);e>-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}})}return y(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(d.a)(function(e){return t._pressedLetters.push(e)}),Object(m.a)(e),Object(g.a)(function(){return t._pressedLetters.length>0}),Object(b.a)(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._getItemsArray(),r=1;r0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1});switch(n){case f.m:return void this.tabOut.next();case f.d:if(this._vertical&&r){this.setNextItemActive();break}return;case f.n:if(this._vertical&&r){this.setPreviousItemActive();break}return;case f.k:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case f.i:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case f.h:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case f.e:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Object(f.q)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=f.a&&n<=f.o||n>=f.p&&n<=f.j)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof o.D?this._items.toArray():this._items}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}}]),t}(),C=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),i(v(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(S),O=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments))._origin="program",t}return y(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){i(v(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(S),E=function(){var t=function(){function t(e){p(this,t),this._platform=e}return y(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(e){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){if(-1===T(n))return!1;if(!this.isVisible(n))return!1}var r=t.nodeName.toLowerCase(),i=T(t);return t.hasAttribute("contenteditable")?-1!==i:"iframe"!==r&&"object"!==r&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===r?!!t.hasAttribute("controls")&&-1!==i:"video"===r?-1!==i&&(null!==i||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||x(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(a.a))},t.\u0275prov=Object(o.Fb)({factory:function(){return new t(Object(o.Sb)(a.a))},token:t,providedIn:"root"}),t}();function x(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function T(t){if(!x(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var A=function(){function t(e,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];p(this,t),this._element=e,this._checker=n,this._ngZone=r,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return y(t,[{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})}},{key:"focusFirstTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})}},{key:"focusLastTabbableElementWhenReady",value:function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], [cdkFocusRegion").concat(t,"], [cdk-focus-").concat(t,"]")),n=0;n=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Object(_.a)(1)).subscribe(t)}},{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}}]),t}(),j=function(){var t=function(){function t(e,n,r){p(this,t),this._checker=e,this._ngZone=n,this._document=r}return y(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new A(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(E),o.Sb(o.z),o.Sb(r.d))},t.\u0275prov=Object(o.Fb)({factory:function(){return new t(Object(o.Sb)(E),Object(o.Sb)(o.z),Object(o.Sb)(r.d))},token:t,providedIn:"root"}),t}();function I(t){return 0===t.buttons}"undefined"!=typeof Element&∈var R=new o.q("cdk-focus-monitor-default-options"),N=Object(a.f)({passive:!0,capture:!0}),D=function(){var t=function(){function t(e,n,r,i){var o=this;p(this,t),this._ngZone=e,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=function(){o._lastTouchTarget=null,o._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=function(t){if(!o._lastTouchTarget){var e=I(t)?"keyboard":"mouse";o._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=function(t){null!=o._touchTimeoutId&&clearTimeout(o._touchTimeoutId),o._lastTouchTarget=P(t),o._touchTimeoutId=setTimeout(function(){return o._lastTouchTarget=null},650)},this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout(function(){return o._windowFocused=!1})},this._rootNodeFocusAndBlurListener=function(t){for(var e=P(t),n="focus"===t.type?o._onFocus:o._onBlur,r=e;r;r=r.parentElement)n.call(o,t,r)},this._document=r,this._detectionMode=(null==i?void 0:i.detectionMode)||0}return y(t,[{key:"monitor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(k.d)(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(h.a)(null);var r=Object(a.c)(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject;var o={checkChildren:e,subject:new s.a,rootNode:r};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(t){var e=Object(k.d)(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var r=Object(k.d)(t);r===this._getDocument().activeElement&&this._elementInfo.has(r)?this._originChanged(r,e,this._elementInfo.get(r)):(this._setOriginForCurrentEventQueue(e),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}},{key:"_setClasses",value:function(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}},{key:"_setOriginForCurrentEventQueue",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,0===e._detectionMode&&(e._originTimeoutId=setTimeout(function(){return e._origin=null},1))})}},{key:"_wasCausedByTouch",value:function(t){var e=P(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e);n&&(n.checkChildren||e===P(t))&&this._originChanged(e,this._getFocusOrigin(t),n)}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,r=this._rootNodeFocusListenerCount.get(n)||0;r||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,N),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,N)}),this._rootNodeFocusListenerCount.set(n,r+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(function(){var t=e._getDocument(),n=e._getWindow();t.addEventListener("keydown",e._documentKeydownListener,N),t.addEventListener("mousedown",e._documentMousedownListener,N),t.addEventListener("touchstart",e._documentTouchstartListener,N),n.addEventListener("focus",e._windowFocusListener)})}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,N),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,N),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){var r=this._getDocument(),i=this._getWindow();r.removeEventListener("keydown",this._documentKeydownListener,N),r.removeEventListener("mousedown",this._documentMousedownListener,N),r.removeEventListener("touchstart",this._documentTouchstartListener,N),i.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}},{key:"_originChanged",value:function(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(o.z),o.Sb(a.a),o.Sb(r.d,8),o.Sb(R,8))},t.\u0275prov=Object(o.Fb)({factory:function(){return new t(Object(o.Sb)(o.z),Object(o.Sb)(a.a),Object(o.Sb)(r.d,8),Object(o.Sb)(R,8))},token:t,providedIn:"root"}),t}();function P(t){return t.composedPath?t.composedPath()[0]:t.target}var F=function(){var t=function(){function t(e,n){p(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new o.n}return y(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Jb(o.l),o.Jb(D))},t.\u0275dir=o.Eb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),L=function(){var t=function(){function t(e,n){p(this,t),this._platform=e,this._document=n}return y(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,r=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),r){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove("cdk-high-contrast-active"),t.remove("cdk-high-contrast-black-on-white"),t.remove("cdk-high-contrast-white-on-black");var e=this.getHighContrastMode();1===e?(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-black-on-white")):2===e&&(t.add("cdk-high-contrast-active"),t.add("cdk-high-contrast-white-on-black"))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(o.Sb(a.a),o.Sb(r.d))},t.\u0275prov=Object(o.Fb)({factory:function(){return new t(Object(o.Sb)(a.a),Object(o.Sb)(r.d))},token:t,providedIn:"root"}),t}(),V=function(){var t=function t(e){p(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275mod=o.Hb({type:t}),t.\u0275inj=o.Gb({factory:function(e){return new(e||t)(o.Sb(L))},imports:[[a.b,w.c]]}),t}()},vkgz:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("7o/Q");function i(){}var o=n("n6bG");function a(t,e,n){return function(r){return r.lift(new s(t,e,n))}}var s=function(){function t(e,n,r){p(this,t),this.nextOrObserver=e,this.error=n,this.complete=r}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),c=function(t){u(n,t);var e=l(n);function n(t,r,a,s){var u;return p(this,n),(u=e.call(this,t))._tapNext=i,u._tapError=i,u._tapComplete=i,u._tapError=a||i,u._tapComplete=s||i,Object(o.a)(r)?(u._context=f(u),u._tapNext=r):r&&(u._context=r,u._tapNext=r.next||i,u._tapError=r.error||i,u._tapComplete=r.complete||i),u}return y(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(r.a)},vxfF:function(t,e,n){"use strict";n.d(e,"a",function(){return w}),n.d(e,"b",function(){return C}),n.d(e,"c",function(){return k}),n.d(e,"d",function(){return O}),n.d(e,"e",function(){return S}),n("8LU1");var r=n("fXoL"),i=n("XNiG"),o=n("LRne"),a=n("HDdC"),s=n("xgIS");n("eNwd"),n("3N8a"),n("IjjT"),n("quSY"),n("7+OI"),n("/uUt");var u=n("3UWI"),c=n("pLZG"),l=n("1G5W");n("JX91"),n("Zy1z"),n("eIep"),n("7o/Q"),n("WMd4"),n("9ppp"),n("Ylt2");var h=n("nLfN"),f=n("ofXK"),d=n("cH1L");n("0EQZ");var v,m,g,b,_,k=((_=function(){function t(e,n,r){p(this,t),this._ngZone=e,this._platform=n,this._scrolled=new i.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}return y(t,[{key:"register",value:function(t){var e=this;this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(function(){return e._scrolled.next(t)}))}},{key:"deregister",value:function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}},{key:"scrolled",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new a.a(function(n){t._globalSubscription||t._addGlobalListener();var r=e>0?t._scrolled.pipe(Object(u.a)(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){r.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Object(o.a)()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(c.a)(function(t){return!t||n.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach(function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){var e=t._getWindow();return Object(s.a)(e.document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}()).\u0275fac=function(t){return new(t||_)(r.Sb(r.z),r.Sb(h.a),r.Sb(f.d,8))},_.\u0275prov=Object(r.Fb)({factory:function(){return new _(Object(r.Sb)(r.z),Object(r.Sb)(h.a),Object(r.Sb)(f.d,8))},token:_,providedIn:"root"}),_),w=((b=function(){function t(e,n,r,o){var u=this;p(this,t),this.elementRef=e,this.scrollDispatcher=n,this.ngZone=r,this.dir=o,this._destroyed=new i.a,this._elementScrolled=new a.a(function(t){return u.ngZone.runOutsideAngular(function(){return Object(s.a)(u.elementRef.nativeElement,"scroll").pipe(Object(l.a)(u._destroyed)).subscribe(t)})})}return y(t,[{key:"ngOnInit",value:function(){this.scrollDispatcher.register(this)}},{key:"ngOnDestroy",value:function(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}},{key:"elementScrolled",value:function(){return this._elementScrolled}},{key:"getElementRef",value:function(){return this.elementRef}},{key:"scrollTo",value:function(t){var e=this.elementRef.nativeElement,n=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=n?t.end:t.start),null==t.right&&(t.right=n?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),n&&0!=Object(h.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(h.d)()?t.left=t.right:1==Object(h.d)()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}},{key:"_applyScrollToOptions",value:function(t){var e=this.elementRef.nativeElement;Object(h.g)()?e.scrollTo(t):(null!=t.top&&(e.scrollTop=t.top),null!=t.left&&(e.scrollLeft=t.left))}},{key:"measureScrollOffset",value:function(t){var e=this.elementRef.nativeElement;if("top"==t)return e.scrollTop;if("bottom"==t)return e.scrollHeight-e.clientHeight-e.scrollTop;var n=this.dir&&"rtl"==this.dir.value;return"start"==t?t=n?"right":"left":"end"==t&&(t=n?"left":"right"),n&&2==Object(h.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Object(h.d)()?"left"==t?e.scrollLeft+e.scrollWidth-e.clientWidth:-e.scrollLeft:"left"==t?e.scrollLeft:e.scrollWidth-e.clientWidth-e.scrollLeft}}]),t}()).\u0275fac=function(t){return new(t||b)(r.Jb(r.l),r.Jb(k),r.Jb(r.z),r.Jb(d.b,8))},b.\u0275dir=r.Eb({type:b,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),b),S=((g=function(){function t(e,n,r){var o=this;p(this,t),this._platform=e,this._change=new i.a,this._changeListener=function(t){o._change.next(t)},this._document=r,n.runOutsideAngular(function(){if(e.isBrowser){var t=o._getWindow();t.addEventListener("resize",o._changeListener),t.addEventListener("orientationchange",o._changeListener)}o.change().subscribe(function(){return o._updateViewportSize()})})}return y(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),n=t.documentElement,r=n.getBoundingClientRect();return{top:-r.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-r.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(Object(u.a)(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}()).\u0275fac=function(t){return new(t||g)(r.Sb(h.a),r.Sb(r.z),r.Sb(f.d,8))},g.\u0275prov=Object(r.Fb)({factory:function(){return new g(Object(r.Sb)(h.a),Object(r.Sb)(r.z),Object(r.Sb)(f.d,8))},token:g,providedIn:"root"}),g),C=((m=function t(){p(this,t)}).\u0275mod=r.Hb({type:m}),m.\u0275inj=r.Gb({factory:function(t){return new(t||m)}}),m),O=((v=function t(){p(this,t)}).\u0275mod=r.Hb({type:v}),v.\u0275inj=r.Gb({factory:function(t){return new(t||v)},imports:[[d.a,h.b,C],d.a,C]}),v)},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return k});var r=n("XNiG"),o=n("HDdC"),a=n("7o/Q"),s=n("quSY");function c(){return function(t){return t.lift(new f(t))}}var h,f=function(){function t(e){p(this,t),this.connectable=e}return y(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var r=new d(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),t}(),d=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).connectable=r,i}return y(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(a.a),m=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this)).source=t,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return y(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new b(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t}},{key:"refCount",value:function(){return c()(this)}}]),n}(o.a),g={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(h=m.prototype)._subscribe},_isComplete:{value:h._isComplete,writable:!0},getSubject:{value:h.getSubject},connect:{value:h.connect},refCount:{value:h.refCount}},b=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).connectable=r,i}return y(n,[{key:"_error",value:function(t){this._unsubscribe(),i(v(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),i(v(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(r.b);function _(){return new r.a}function k(){return function(t){return c()((e=_,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,g);return r.source=t,r.subjectFactory=n,r})(t));var e}}},xDj2:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(){p(this,t)}return y(t,null,[{key:"getHashFragmentParams",value:function(e){var n=e||window.location.hash;if(0!==(n=decodeURIComponent(n)).indexOf("#"))return{};var r=n.indexOf("?");return n=n.substr(r>-1?r+1:1),t.parseQueryString(n)}},{key:"parseQueryString",value:function(t){var e,n,r,i,o,a,s,u={};if(null===t)return u;e=t.split("&");for(var c=0;c0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new o(t))}}var o=function(){function t(e){p(this,t),this.defaultValue=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new a(t,this.defaultValue))}}]),t}(),a=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).defaultValue=r,i.isEmpty=!0,i}return y(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(r.a)},xgIS:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var i=n("HDdC"),o=n("DH7j"),a=n("n6bG"),s=n("lJxs");function u(t,e,n,l){return Object(a.a)(n)&&(l=n,n=void 0),l?u(t,e,n).pipe(Object(s.a)(function(t){return Object(o.a)(t)?l.apply(void 0,r(t)):l(t)})):new i.a(function(r){c(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}function c(t,e,n,r,i){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,n,i),o=function(){return a.removeEventListener(e,n,i)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,n),o=function(){return s.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var u=t;t.addListener(e,n),o=function(){return u.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var l=0,h=t.length;l*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n'],encapsulation:2,changeDetection:0}),k),P=i.Qb(D),F=((O=function t(){p(this,t)}).\u0275fac=function(t){return new(t||O)},O.\u0275dir=i.Eb({type:O,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),O),L=((C=function t(){p(this,t)}).\u0275fac=function(t){return new(t||C)},C.\u0275dir=i.Eb({type:C,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),C),V=((S=function(t){u(n,t);var e=l(n);function n(t,r,i,o){var a;p(this,n),(a=e.call(this))._element=t,a._isInteractiveList=!1,a._destroyed=new d.a,a._disabled=!1,a._isInteractiveList=!!(i||o&&"action-list"===o._getListType()),a._list=i||o;var s=a._getHostElement();return"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),a._list&&a._list._stateChanges.pipe(Object(v.a)(a._destroyed)).subscribe(function(){r.markForCheck()}),a}return y(n,[{key:"ngAfterContentInit",value:function(){Object(h.w)(this._lines,this._element)}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_isRippleDisabled",value:function(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"disabled",get:function(){return this._disabled||!(!this._list||!this._list.disabled)},set:function(t){this._disabled=Object(f.b)(t)}}]),n}(I)).\u0275fac=function(t){return new(t||S)(i.Jb(i.l),i.Jb(i.h),i.Jb(N,8),i.Jb(R,8))},S.\u0275cmp=i.Db({type:S,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,n){var r;1&t&&(i.Cb(n,F,!0),i.Cb(n,L,!0),i.Cb(n,h.f,!0)),2&t&&(i.ic(r=i.Wb())&&(e._avatar=r.first),i.ic(r=i.Wb())&&(e._icon=r.first),i.ic(r=i.Wb())&&(e._lines=r))},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&i.Bb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[i.wb],ngContentSelectors:A,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(i.cc(T),i.Ob(0,"div",0),i.Kb(1,"div",1),i.bc(2),i.Ob(3,"div",2),i.bc(4,1),i.Nb(),i.bc(5,2),i.Nb()),2&t&&(i.zb(1),i.dc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[h.m],encapsulation:2,changeDetection:0}),S),M=((w=function t(){p(this,t)}).\u0275mod=i.Hb({type:w}),w.\u0275inj=i.Gb({factory:function(t){return new(t||w)},imports:[[h.g,h.n,h.e,h.l,a.c],h.g,h.e,h.l,E]}),w),U=r("nLfN"),H=r("vxfF"),z=r("xgIS"),B=r("VRyK"),q=r("pLZG"),W=r("lJxs"),J=r("7o/Q");function G(t){return function(e){return e.lift(new K(t))}}var K=function(){function t(e){p(this,t),this.value=e}return y(t,[{key:"call",value:function(t,e){return e.subscribe(new Q(t,this.value))}}]),t}(),Q=function(t){u(n,t);var e=l(n);function n(t,r){var i;return p(this,n),(i=e.call(this,t)).value=r,i}return y(n,[{key:"_next",value:function(t){this.destination.next(this.value)}}]),n}(J.a),Z=r("/uUt"),X=r("IzEk"),$=r("Kj3r"),Y=r("R0Ic"),tt=r("cH1L"),et=["*"];function nt(t,e){if(1&t){var n=i.Pb();i.Ob(0,"div",2),i.Vb("click",function(){return i.kc(n),i.Xb()._onBackdropClicked()}),i.Nb()}if(2&t){var r=i.Xb();i.Bb("mat-drawer-shown",r._isShowingBackdrop())}}function rt(t,e){1&t&&(i.Ob(0,"mat-drawer-content"),i.bc(1,2),i.Nb())}var it=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],ot=["mat-drawer","mat-drawer-content","*"];function at(t,e){if(1&t){var n=i.Pb();i.Ob(0,"div",2),i.Vb("click",function(){return i.kc(n),i.Xb()._onBackdropClicked()}),i.Nb()}if(2&t){var r=i.Xb();i.Bb("mat-drawer-shown",r._isShowingBackdrop())}}function st(t,e){1&t&&(i.Ob(0,"mat-sidenav-content",3),i.bc(1,2),i.Nb())}var ut,ct,lt,ht,ft,dt,vt,pt,mt,yt,gt,bt=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],_t=["mat-sidenav","mat-sidenav-content","*"],kt=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",wt={transformDrawer:Object(Y.j)("transform",[Object(Y.g)("open, open-instant",Object(Y.h)({transform:"none",visibility:"visible"})),Object(Y.g)("void",Object(Y.h)({"box-shadow":"none",visibility:"hidden"})),Object(Y.i)("void => open-instant",Object(Y.e)("0ms")),Object(Y.i)("void <=> open, open-instant => void",Object(Y.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},St=new i.q("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),Ct=new i.q("MAT_DRAWER_CONTAINER"),Ot=((ft=function(t){u(n,t);var e=l(n);function n(t,r,i,o,a){var s;return p(this,n),(s=e.call(this,i,o,a))._changeDetectorRef=t,s._container=r,s}return y(n,[{key:"ngAfterContentInit",value:function(){var t=this;this._container._contentMarginChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})}}]),n}(H.a)).\u0275fac=function(t){return new(t||ft)(i.Jb(i.h),i.Jb(Object(i.T)(function(){return xt})),i.Jb(i.l),i.Jb(H.c),i.Jb(i.z))},ft.\u0275cmp=i.Db({type:ft,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&i.pc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[i.wb],ngContentSelectors:et,decls:1,vars:0,template:function(t,e){1&t&&(i.cc(),i.bc(0))},encapsulation:2,changeDetection:0}),ft),Et=((ht=function(){function t(e,n,r,o,a,s,u){var c=this;p(this,t),this._elementRef=e,this._focusTrapFactory=n,this._focusMonitor=r,this._platform=o,this._ngZone=a,this._doc=s,this._container=u,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new d.a,this._animationEnd=new d.a,this._animationState="void",this.openedChange=new i.n(!0),this._openedStream=this.openedChange.pipe(Object(q.a)(function(t){return t}),Object(W.a)(function(){})),this.openedStart=this._animationStarted.pipe(Object(q.a)(function(t){return t.fromState!==t.toState&&0===t.toState.indexOf("open")}),G(void 0)),this._closedStream=this.openedChange.pipe(Object(q.a)(function(t){return!t}),Object(W.a)(function(){})),this.closedStart=this._animationStarted.pipe(Object(q.a)(function(t){return t.fromState!==t.toState&&"void"===t.toState}),G(void 0)),this._destroyed=new d.a,this.onPositionChanged=new i.n,this._modeChanged=new d.a,this.openedChange.subscribe(function(t){t?(c._doc&&(c._elementFocusedBeforeDrawerWasOpened=c._doc.activeElement),c._takeFocus()):c._isFocusWithinDrawer()&&c._restoreFocus()}),this._ngZone.runOutsideAngular(function(){Object(z.a)(c._elementRef.nativeElement,"keydown").pipe(Object(q.a)(function(t){return t.keyCode===b.g&&!c.disableClose&&!Object(b.q)(t)}),Object(v.a)(c._destroyed)).subscribe(function(t){return c._ngZone.run(function(){c.close(),t.stopPropagation(),t.preventDefault()})})}),this._animationEnd.pipe(Object(Z.a)(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){var e=t.fromState,n=t.toState;(0===n.indexOf("open")&&"void"===e||"void"===n&&0===e.indexOf("open"))&&c.openedChange.emit(c._opened)})}return y(t,[{key:"_takeFocus",value:function(){var t=this;this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(function(e){e||"function"!=typeof t._elementRef.nativeElement.focus||t._elementRef.nativeElement.focus()})}},{key:"_restoreFocus",value:function(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}},{key:"_isFocusWithinDrawer",value:function(){var t,e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}},{key:"ngAfterContentInit",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}},{key:"ngAfterContentChecked",value:function(){this._platform.isBrowser&&(this._enableAnimations=!0)}},{key:"ngOnDestroy",value:function(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(t){return this.toggle(!0,t)}},{key:"close",value:function(){return this.toggle(!1)}},{key:"_closeViaBackdropClick",value:function(){return this._setOpen(!1,!0)}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!this.opened,e=arguments.length>1?arguments[1]:void 0;return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}},{key:"_setOpen",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"program";return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=r):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(function(t){n.openedChange.pipe(Object(X.a)(1)).subscribe(function(e){return t(e?"open":"close")})})}},{key:"_getWidth",value:function(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}},{key:"_updateFocusTrapState",value:function(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}},{key:"_animationStartListener",value:function(t){this._animationStarted.next(t)}},{key:"_animationDoneListener",value:function(t){this._animationEnd.next(t)}},{key:"position",get:function(){return this._position},set:function(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}},{key:"mode",get:function(){return this._mode},set:function(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}},{key:"disableClose",get:function(){return this._disableClose},set:function(t){this._disableClose=Object(f.b)(t)}},{key:"autoFocus",get:function(){var t=this._autoFocus;return null==t?"side"!==this.mode:t},set:function(t){this._autoFocus=Object(f.b)(t)}},{key:"opened",get:function(){return this._opened},set:function(t){this.toggle(Object(f.b)(t))}}]),t}()).\u0275fac=function(t){return new(t||ht)(i.Jb(i.l),i.Jb(g.f),i.Jb(g.e),i.Jb(U.a),i.Jb(i.z),i.Jb(a.d,8),i.Jb(Ct,8))},ht.\u0275cmp=i.Db({type:ht,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&i.qc("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(i.Ab("align",null),i.rc("@transform",e._animationState),i.Bb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:et,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(i.cc(),i.Ob(0,"div",0),i.bc(1),i.Nb())},encapsulation:2,data:{animation:[wt.transformDrawer]},changeDetection:0}),ht),xt=((lt=function(){function t(e,n,r,o,a){var s=this,u=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6?arguments[6]:void 0;p(this,t),this._dir=e,this._element=n,this._ngZone=r,this._changeDetectorRef=o,this._animationMode=c,this._drawers=new i.D,this.backdropClick=new i.n,this._destroyed=new d.a,this._doCheckSubject=new d.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.a,e&&e.change.pipe(Object(v.a)(this._destroyed)).subscribe(function(){s._validateDrawers(),s.updateContentMargins()}),a.change().pipe(Object(v.a)(this._destroyed)).subscribe(function(){return s.updateContentMargins()}),this._autosize=u}return y(t,[{key:"ngAfterContentInit",value:function(){var t=this;this._allDrawers.changes.pipe(Object(m.a)(this._allDrawers),Object(v.a)(this._destroyed)).subscribe(function(e){t._drawers.reset(e.filter(function(e){return!e._container||e._container===t})),t._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(m.a)(null)).subscribe(function(){t._validateDrawers(),t._drawers.forEach(function(e){t._watchDrawerToggle(e),t._watchDrawerPosition(e),t._watchDrawerMode(e)}),(!t._drawers.length||t._isDrawerOpen(t._start)||t._isDrawerOpen(t._end))&&t.updateContentMargins(),t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._doCheckSubject.pipe(Object($.a)(10),Object(v.a)(t._destroyed)).subscribe(function(){return t.updateContentMargins()})})}},{key:"ngOnDestroy",value:function(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}},{key:"open",value:function(){this._drawers.forEach(function(t){return t.open()})}},{key:"close",value:function(){this._drawers.forEach(function(t){return t.close()})}},{key:"updateContentMargins",value:function(){var t=this,e=0,n=0;if(this._left&&this._left.opened)if("side"==this._left.mode)e+=this._left._getWidth();else if("push"==this._left.mode){var r=this._left._getWidth();e+=r,n-=r}if(this._right&&this._right.opened)if("side"==this._right.mode)n+=this._right._getWidth();else if("push"==this._right.mode){var i=this._right._getWidth();n+=i,e-=i}n=n||null,(e=e||null)===this._contentMargins.left&&n===this._contentMargins.right||(this._contentMargins={left:e,right:n},this._ngZone.run(function(){return t._contentMarginChanges.next(t._contentMargins)}))}},{key:"ngDoCheck",value:function(){var t=this;this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(function(){return t._doCheckSubject.next()})}},{key:"_watchDrawerToggle",value:function(t){var e=this;t._animationStarted.pipe(Object(q.a)(function(t){return t.fromState!==t.toState}),Object(v.a)(this._drawers.changes)).subscribe(function(t){"open-instant"!==t.toState&&"NoopAnimations"!==e._animationMode&&e._element.nativeElement.classList.add("mat-drawer-transition"),e.updateContentMargins(),e._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(v.a)(this._drawers.changes)).subscribe(function(){return e._setContainerClass(t.opened)})}},{key:"_watchDrawerPosition",value:function(t){var e=this;t&&t.onPositionChanged.pipe(Object(v.a)(this._drawers.changes)).subscribe(function(){e._ngZone.onMicrotaskEmpty.pipe(Object(X.a)(1)).subscribe(function(){e._validateDrawers()})})}},{key:"_watchDrawerMode",value:function(t){var e=this;t&&t._modeChanged.pipe(Object(v.a)(Object(B.a)(this._drawers.changes,this._destroyed))).subscribe(function(){e.updateContentMargins(),e._changeDetectorRef.markForCheck()})}},{key:"_setContainerClass",value:function(t){var e=this._element.nativeElement.classList,n="mat-drawer-container-has-open";t?e.add(n):e.remove(n)}},{key:"_validateDrawers",value:function(){var t=this;this._start=this._end=null,this._drawers.forEach(function(e){"end"==e.position?t._end=e:t._start=e}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}},{key:"_isPushed",value:function(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}},{key:"_onBackdropClicked",value:function(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}},{key:"_closeModalDrawersViaBackdrop",value:function(){var t=this;[this._start,this._end].filter(function(e){return e&&!e.disableClose&&t._canHaveBackdrop(e)}).forEach(function(t){return t._closeViaBackdropClick()})}},{key:"_isShowingBackdrop",value:function(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}},{key:"_canHaveBackdrop",value:function(t){return"side"!==t.mode||!!this._backdropOverride}},{key:"_isDrawerOpen",value:function(t){return null!=t&&t.opened}},{key:"start",get:function(){return this._start}},{key:"end",get:function(){return this._end}},{key:"autosize",get:function(){return this._autosize},set:function(t){this._autosize=Object(f.b)(t)}},{key:"hasBackdrop",get:function(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride},set:function(t){this._backdropOverride=null==t?null:Object(f.b)(t)}},{key:"scrollable",get:function(){return this._userContent||this._content}}]),t}()).\u0275fac=function(t){return new(t||lt)(i.Jb(tt.b,8),i.Jb(i.l),i.Jb(i.z),i.Jb(i.h),i.Jb(H.e),i.Jb(St),i.Jb(o.a,8))},lt.\u0275cmp=i.Db({type:lt,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,n){var r;1&t&&(i.Cb(n,Ot,!0),i.Cb(n,Et,!0)),2&t&&(i.ic(r=i.Wb())&&(e._content=r.first),i.ic(r=i.Wb())&&(e._allDrawers=r))},viewQuery:function(t,e){var n;1&t&&i.wc(Ot,!0),2&t&&i.ic(n=i.Wb())&&(e._userContent=n.first)},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&i.Bb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[i.yb([{provide:Ct,useExisting:lt}])],ngContentSelectors:ot,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(i.cc(it),i.sc(0,nt,1,2,"div",0),i.bc(1),i.bc(2,1),i.sc(3,rt,2,0,"mat-drawer-content",1)),2&t&&(i.dc("ngIf",e.hasBackdrop),i.zb(3),i.dc("ngIf",!e._content))},directives:[a.l,Ot],styles:[kt],encapsulation:2,changeDetection:0}),lt),Tt=((ct=function(t){u(n,t);var e=l(n);function n(t,r,i,o,a){return p(this,n),e.call(this,t,r,i,o,a)}return n}(Ot)).\u0275fac=function(t){return new(t||ct)(i.Jb(i.h),i.Jb(Object(i.T)(function(){return It})),i.Jb(i.l),i.Jb(H.c),i.Jb(i.z))},ct.\u0275cmp=i.Db({type:ct,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&i.pc("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[i.wb],ngContentSelectors:et,decls:1,vars:0,template:function(t,e){1&t&&(i.cc(),i.bc(0))},encapsulation:2,changeDetection:0}),ct),At=((ut=function(t){u(n,t);var e=l(n);function n(){var t;return p(this,n),(t=e.apply(this,arguments))._fixedInViewport=!1,t._fixedTopGap=0,t._fixedBottomGap=0,t}return y(n,[{key:"fixedInViewport",get:function(){return this._fixedInViewport},set:function(t){this._fixedInViewport=Object(f.b)(t)}},{key:"fixedTopGap",get:function(){return this._fixedTopGap},set:function(t){this._fixedTopGap=Object(f.e)(t)}},{key:"fixedBottomGap",get:function(){return this._fixedBottomGap},set:function(t){this._fixedBottomGap=Object(f.e)(t)}}]),n}(Et)).\u0275fac=function(t){return jt(t||ut)},ut.\u0275cmp=i.Db({type:ut,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(i.Ab("align",null),i.pc("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),i.Bb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[i.wb],ngContentSelectors:et,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(i.cc(),i.Ob(0,"div",0),i.bc(1),i.Nb())},encapsulation:2,data:{animation:[wt.transformDrawer]},changeDetection:0}),ut),jt=i.Qb(At),It=((dt=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return n}(xt)).\u0275fac=function(t){return Rt(t||dt)},dt.\u0275cmp=i.Db({type:dt,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,n){var r;1&t&&(i.Cb(n,Tt,!0),i.Cb(n,At,!0)),2&t&&(i.ic(r=i.Wb())&&(e._content=r.first),i.ic(r=i.Wb())&&(e._allDrawers=r))},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&i.Bb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[i.yb([{provide:Ct,useExisting:dt}]),i.wb],ngContentSelectors:_t,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(i.cc(bt),i.sc(0,at,1,2,"div",0),i.bc(1),i.bc(2,1),i.sc(3,st,2,0,"mat-sidenav-content",1)),2&t&&(i.dc("ngIf",e.hasBackdrop),i.zb(3),i.dc("ngIf",!e._content))},directives:[a.l,Tt,H.a],styles:[kt],encapsulation:2,changeDetection:0}),dt),Rt=i.Qb(It),Nt=((vt=function t(){p(this,t)}).\u0275mod=i.Hb({type:vt}),vt.\u0275inj=i.Gb({factory:function(t){return new(t||vt)},imports:[[a.c,h.e,U.b,H.b],H.b,h.e]}),vt),Dt=["*",[["mat-toolbar-row"]]],Pt=["*","mat-toolbar-row"],Ft=Object(h.r)(function t(e){p(this,t),this._elementRef=e}),Lt=((yt=function t(){p(this,t)}).\u0275fac=function(t){return new(t||yt)},yt.\u0275dir=i.Eb({type:yt,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),yt),Vt=((mt=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t))._platform=r,o._document=i,o}return y(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(Ft)).\u0275fac=function(t){return new(t||mt)(i.Jb(i.l),i.Jb(U.a),i.Jb(a.d))},mt.\u0275cmp=i.Db({type:mt,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var r;1&t&&i.Cb(n,Lt,!0),2&t&&i.ic(r=i.Wb())&&(e._toolbarRows=r)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&i.Bb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[i.wb],ngContentSelectors:Pt,decls:2,vars:0,template:function(t,e){1&t&&(i.cc(Dt),i.bc(0),i.bc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),mt),Mt=((pt=function t(){p(this,t)}).\u0275mod=i.Hb({type:pt}),pt.\u0275inj=i.Gb({factory:function(t){return new(t||pt)},imports:[[h.e],h.e]}),pt),Ut=r("tk/3"),Ht=r("OtPg"),zt=r("9r3w"),Bt=r("ZDaG"),qt=r("OCPU"),Wt=r("P3kg"),Jt=r("5+tZ"),Gt=r("RJIb"),Kt=function t(e){p(this,t),this.whitelistedUrls=e&&e.whitelistedUrls||[]},Qt=((gt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Kt;p(this,t),this.tokens=e,this.options=n}return y(t,[{key:"intercept",value:function(t,e){return this.isWhitelistedUrl(t)?this.tokens.getValidAccessToken().pipe(Object(Jt.a)(function(n){return e.handle(t.clone({setHeaders:{Authorization:"Bearer "+n}}))})):e.handle(t)}},{key:"isWhitelistedUrl",value:function(t){var e=t.url;return this.options.whitelistedUrls.findIndex(function(t){return"string"==typeof t?t===e:t instanceof RegExp&&t.test(e)})>-1}}]),t}()).\u0275fac=function(t){return new(t||gt)(i.Sb(Gt.a),i.Sb(Kt))},gt.\u0275prov=i.Fb({token:gt,factory:gt.\u0275fac}),gt),Zt=r("CYhE"),Xt=r("s2Hm"),$t=r("iVJa"),Yt=r("og18"),te=r("3/4O"),ee=r("2Vo4"),ne=r("itXk"),re=r("Zy1z");function ie(t){return{principal:(t=t||{}).user_name||t.username||t.email||null,authorities:t.authorities||[],details:t}}var oe,ae,se=function t(e){p(this,t),this.mapper=e&&e.mapper||ie},ue=r("JkW8"),ce=r("d8a0"),le=((oe=function(t){u(r,t);var e=l(r);function r(t,n){var i;return p(this,r),(i=e.call(this)).tokensService=t,i.options=n,i.subject=new ee.a(null),i.subject$=i.subject.asObservable(),i.principal$=i.subject$.pipe(Object(W.a)(function(t){return t&&t.principal||null})),i.authorities$=i.subject$.pipe(Object(W.a)(function(t){return t&&t.authorities||[]})),i.details$=i.subject$.pipe(Object(W.a)(function(t){return t&&t.details||null})),i.displayName$=i.details$.pipe(Object(W.a)(function(t){return t&&t.displayName||null})),i.isAuthorized$=i.authorities$.pipe(Object(W.a)(function(t){return t.length>0})),i.changes$=i.subject$.pipe(Object(re.a)(),Object(q.a)(function(t){return t[0]!==t[1]&&(t[0]&&t[0].principal||null)!==(t[1]&&t[1].principal||null)}),Object(W.a)(function(t){return t[1]})),i.sub=i.tokensService.accessToken$.subscribe(function(t){i.decode(t)}),i}return y(r,[{key:"ngOnDestroy",value:function(){this.sub.unsubscribe(),this.subject.complete()}},{key:"setSubject",value:function(t){this.subject.next(t)}},{key:"getSubject",value:function(){return this.subject.getValue()}},{key:"getAuthorities",value:function(){var t=this.subject.getValue();return t&&t.authorities||[]}},{key:"updateDetails",value:function(t){var e=this.getSubject();e&&this.subject.next(Object.assign(Object.assign({},e),{details:t}))}},{key:"isAuthenticated",value:function(){var t=this;return Object(ne.b)([this.tokensService.accessToken$,this.tokensService.refreshToken$]).pipe(Object(X.a)(1),Object(W.a)(function(e){var r=n(e,2),i=r[0],o=r[1];return!(!i&&!o)&&(i?t.tokensService.getAuthenticationFlowType(i)===ce.b.CLIENT_CREDENTIALS||!ue.a.isTokenExpired(i)||o&&!ue.a.isTokenExpired(o):!ue.a.isTokenExpired(o))}))}},{key:"clear",value:function(){this.subject.next(null)}},{key:"decode",value:function(t){var e=ue.a.decodeToken(t);this.setSubject(this.options.mapper(e))}}]),r}(Wt.b)).\u0275fac=function(t){return new(t||oe)(i.Sb(Gt.a),i.Sb(se))},oe.\u0275prov=i.Fb({token:oe,factory:oe.\u0275fac}),oe),he=r("RWdr"),fe=r("Pv2G"),de=r("ngFo"),ve=((ae=function(){function t(e){p(this,t),this.tokens=e}return y(t,[{key:"authenticate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Ut.e,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Ut.d;return this.tokens.authenticateWithClientCredentials(t,e)}},{key:"clear",value:function(){this.tokens.clear()}}]),t}()).\u0275fac=function(t){return new(t||ae)(i.Sb(Gt.a))},ae.\u0275prov=i.Fb({token:ae,factory:ae.\u0275fac}),ae);function pe(t){return function(e){return new fe.a(e,new $t.a(t))}}function me(t){return function(e){return new de.a(e,new Yt.a(t))}}function ye(t){return function(e){return new le(e,new se(t))}}function ge(t){return function(e){return new Qt(e,new Kt(t))}}var be,_e,ke,we,Se=((be=function(){function t(){p(this,t)}return y(t,null,[{key:"forRoot",value:function(){var e,n,r,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[{provide:Gt.a,useFactory:(e=o.tokens,n=o.passwordFlow,r=o.authorizationCodeFlow,i=o.clientCredentialsFlow,function(t){return new Gt.a(t,new Zt.a(e),new Xt.a(n),new Yt.a(r),new te.a(i))}),deps:[Ut.b]},{provide:he.a,useFactory:function(t){return new he.a(t)},deps:[Gt.a]},{provide:fe.a,useFactory:pe(o.implicitFlow),deps:[Gt.a]},{provide:de.a,useFactory:me(o.authorizationCodeFlow),deps:[Gt.a]},{provide:ve,useFactory:function(t){return new ve(t)},deps:[Gt.a]},{provide:Wt.b,useFactory:ye(o.subject),deps:[Gt.a]},{provide:Ut.a,useFactory:ge(o.interceptor),deps:[Gt.a],multi:!0}]}}}]),t}()).\u0275mod=i.Hb({type:be}),be.\u0275inj=i.Gb({factory:function(t){return new(t||be)}}),be),Ce=r("tyNb"),Oe=[{path:"home",loadChildren:function(){return Promise.all([r.e(0),r.e(8)]).then(r.bind(null,"ct+p")).then(function(t){return t.HomeModule})},data:{title:"ngx-security",pageTitle:"Home",pageIcon:"home"}},{path:"core",loadChildren:function(){return Promise.all([r.e(0),r.e(7)]).then(r.bind(null,"pKmL")).then(function(t){return t.CoreModule})},data:{title:"ngx-security/core",pageTitle:"Core",pageIcon:"security"}},{path:"roles",loadChildren:function(){return Promise.all([r.e(0),r.e(10)]).then(r.bind(null,"ESCD")).then(function(t){return t.RolesModule})},data:{title:"ngx-security/roles",pageTitle:"Roles",pageIcon:"security"}},{path:"permissions",loadChildren:function(){return Promise.all([r.e(0),r.e(9)]).then(r.bind(null,"jl54")).then(function(t){return t.PermissionsModule})},data:{title:"ngx-security/permissions",pageTitle:"Permissions",pageIcon:"security"}},{path:"auth",loadChildren:function(){return Promise.all([r.e(0),r.e(6)]).then(r.bind(null,"Yj9t")).then(function(t){return t.AuthModule})},data:{title:"ngx-security/auth",pageTitle:"Auth",pageIcon:"security"}},{path:"",redirectTo:"/home",pathMatch:"full"}],Ee=((_e=function t(){p(this,t)}).\u0275mod=i.Hb({type:_e}),_e.\u0275inj=i.Gb({factory:function(t){return new(t||_e)},imports:[[Ce.f.forRoot(Oe)],Ce.f]}),_e),xe=r("kiQV").version,Te=((ke=function t(e,n){p(this,t),this.version=xe,this.pageInfo$=e.events.pipe(Object(q.a)(function(t){return t instanceof Ce.b}),Object(W.a)(function(){return n}),Object(W.a)(function(t){return t.firstChild||t}),Object(q.a)(function(t){return"primary"===t.outlet}),Object(Jt.a)(function(t){return t.data}),Object(W.a)(function(t){return t||{}}))}).\u0275fac=function(t){return new(t||ke)(i.Jb(Ce.c),i.Jb(Ce.a))},ke.\u0275cmp=i.Db({type:ke,selectors:[["app-root"]],decls:50,vars:10,consts:[["color","primary"],["mat-icon-button","",3,"click"],[1,"app-name"],["mode","side"],["nav",""],["routerLink","home","routerLinkActive","active",2,"border-left-color","#f5f5f5"],["matListIcon",""],["matLine",""],["routerLink","core","routerLinkActive","active",2,"border-left-color","#75ff03"],["routerLink","roles","routerLinkActive","active",2,"border-left-color","#feff00"],["routerLink","permissions","routerLinkActive","active",2,"border-left-color","#feff00"],["routerLink","auth","routerLinkActive","active",2,"border-left-color","#ff9100"],[2,"margin-left","8px"],[1,"page-container"]],template:function(t,e){if(1&t){var n=i.Pb();i.Ob(0,"mat-toolbar",0),i.Ob(1,"mat-toolbar-row"),i.Ob(2,"button",1),i.Vb("click",function(){return i.kc(n),i.jc(12).toggle()}),i.Ob(3,"mat-icon"),i.tc(4,"menu"),i.Nb(),i.Nb(),i.Ob(5,"h1",2),i.tc(6),i.Yb(7,"async"),i.Nb(),i.Ob(8,"span"),i.tc(9),i.Nb(),i.Nb(),i.Nb(),i.Ob(10,"mat-sidenav-container"),i.Ob(11,"mat-sidenav",3,4),i.Ob(13,"mat-nav-list"),i.Ob(14,"mat-list-item",5),i.Ob(15,"mat-icon",6),i.tc(16,"home"),i.Nb(),i.Ob(17,"h1",7),i.tc(18,"Home"),i.Nb(),i.Nb(),i.Ob(19,"mat-list-item",8),i.Ob(20,"mat-icon",6),i.tc(21,"security"),i.Nb(),i.Ob(22,"h1",7),i.tc(23,"Core"),i.Nb(),i.Nb(),i.Ob(24,"mat-list-item",9),i.Ob(25,"mat-icon",6),i.tc(26,"security"),i.Nb(),i.Ob(27,"h1",7),i.tc(28,"Roles"),i.Nb(),i.Nb(),i.Ob(29,"mat-list-item",10),i.Ob(30,"mat-icon",6),i.tc(31,"security"),i.Nb(),i.Ob(32,"h1",7),i.tc(33,"Permissions"),i.Nb(),i.Nb(),i.Ob(34,"mat-list-item",11),i.Ob(35,"mat-icon",6),i.tc(36,"security"),i.Nb(),i.Ob(37,"h1",7),i.tc(38,"Auth"),i.Nb(),i.Nb(),i.Nb(),i.Nb(),i.Ob(39,"mat-sidenav-content"),i.Ob(40,"mat-toolbar"),i.Ob(41,"mat-toolbar-row"),i.Ob(42,"mat-icon"),i.tc(43),i.Yb(44,"async"),i.Nb(),i.Ob(45,"h1",12),i.tc(46),i.Yb(47,"async"),i.Nb(),i.Nb(),i.Nb(),i.Ob(48,"div",13),i.Kb(49,"router-outlet"),i.Nb(),i.Nb(),i.Nb()}var r,o,a;2&t&&(i.zb(6),i.uc(null==(r=i.Zb(7,4,e.pageInfo$))?null:r.title),i.zb(3),i.uc(e.version),i.zb(34),i.uc(null==(o=i.Zb(44,6,e.pageInfo$))?null:o.pageIcon),i.zb(3),i.uc(null==(a=i.Zb(47,8,e.pageInfo$))?null:a.pageTitle))},directives:[Vt,Lt,s.a,c.a,It,At,D,V,Ce.d,Ce.e,L,h.f,Tt,Ce.g],pipes:[a.b],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;align-items:stretch;height:100%}[_nghost-%COMP%] h1.app-name[_ngcontent-%COMP%]{flex:1;margin-left:8px}[_nghost-%COMP%] mat-sidenav-container[_ngcontent-%COMP%]{flex:1 1 100%}[_nghost-%COMP%] .page-container[_ngcontent-%COMP%]{padding:1em;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] mat-list-item[_ngcontent-%COMP%]{border-left:3px solid}[_nghost-%COMP%] mat-list-item[_ngcontent-%COMP%]:not(.active){border-left-color:transparent!important}"]}),ke),Ae=r("hCJx"),je=r("8Cu2"),Ie=((we=function t(){p(this,t)}).\u0275mod=i.Hb({type:we,bootstrap:[Te]}),we.\u0275inj=i.Gb({factory:function(t){return new(t||we)},providers:[{provide:a.i,useClass:a.e},{provide:Ht.a,useValue:{coreLibraryLoader:function(){return r.e(11).then(r.t.bind(null,"ECCn",7))},languages:{typescript:function(){return r.e(13).then(r.t.bind(null,"r0Rl",7))},scss:function(){return r.e(12).then(r.t.bind(null,"YROV",7))},xml:function(){return r.e(14).then(r.t.bind(null,"jctj",7))}}}}],imports:[[o.b,Ee,Ut.c,Mt,Nt,M,s.b,c.b,Ht.c,zt.a.forRoot(),Bt.a.forRoot({subjectRoles:{provide:Ae.b,useClass:Ae.c}}),qt.a.forRoot({subjectPermissions:{provide:je.b,useClass:je.c}}),Se.forRoot({passwordFlow:{tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret",useHttpBasicAuth:!0},implicitFlow:{loginUrl:"loginUrl",clientId:"clientId"},authorizationCodeFlow:{loginUrl:"loginUrl",tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret",useHttpBasicAuth:!0},clientCredentialsFlow:{tokenUrl:"tokenUrl",clientId:"clientId",clientSecret:"clientSecret"},tokens:{mapper:function(t){return{accessToken:(t=t||{}).access_token||t.accessToken||null,refreshToken:t.refresh_token||t.refreshToken||null}}},subject:{mapper:function(t){return{principal:(t=t||{}).user_name||t.username||t.email||null,authorities:t.authorities||[],details:t}}},interceptor:{whitelistedUrls:[new RegExp(".*/my-api.*")]}})]]}),we),Re=r("jhN1");Object(i.S)(),Re.c().bootstrapModule(Ie).catch(function(t){return console.log(t)})},zx2A:function(t,e,n){"use strict";n.d(e,"a",function(){return a}),n.d(e,"b",function(){return s}),n.d(e,"c",function(){return c});var r=n("7o/Q"),i=n("HDdC"),o=n("SeVD"),a=function(t){u(n,t);var e=l(n);function n(t){var r;return p(this,n),(r=e.call(this)).parent=t,r}return y(n,[{key:"_next",value:function(t){this.parent.notifyNext(t)}},{key:"_error",value:function(t){this.parent.notifyError(t),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(r.a),s=function(t){u(n,t);var e=l(n);function n(){return p(this,n),e.apply(this,arguments)}return y(n,[{key:"notifyNext",value:function(t){this.destination.next(t)}},{key:"notifyError",value:function(t){this.destination.error(t)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(r.a);function c(t,e){if(!e.closed)return t instanceof i.a?t.subscribe(e):Object(o.a)(t)(e)}}},[[0,1]]])}(); \ No newline at end of file