(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{"+0xr":function(t,e,n){"use strict";n.d(e,"a",(function(){return D})),n.d(e,"b",(function(){return y})),n.d(e,"c",(function(){return A})),n.d(e,"d",(function(){return x})),n.d(e,"e",(function(){return w})),n.d(e,"f",(function(){return F})),n.d(e,"g",(function(){return O})),n.d(e,"h",(function(){return j})),n.d(e,"i",(function(){return I})),n.d(e,"j",(function(){return b})),n.d(e,"k",(function(){return H})),n.d(e,"l",(function(){return B}));var i=n("f6nW"),s=n("0EQZ"),r=n("FKr1"),o=n("8LU1"),a=n("2Vo4"),c=n("XNiG"),l=n("quSY"),h=n("VRyK"),u=n("LRne"),d=n("itXk"),p=n("lJxs"),f=n("fXoL");const g=[[["caption"]],[["colgroup"],["col"]]],m=["caption","colgroup, col"];let b=(()=>{class t extends i.q{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return _(e||t)},t.\u0275cmp=f.Gb({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],exportAs:["matTable"],features:[f.Ab([{provide:s.g,useClass:s.e},{provide:i.q,useExisting:t},{provide:i.a,useExisting:t},{provide:i.x,useClass:i.y}]),f.yb],ngContentSelectors:m,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(f.ic(g),f.hc(0),f.hc(1,1),f.Ob(2,0),f.Ob(3,1),f.Ob(4,2),f.Ob(5,3))},directives:[i.v,i.t,i.w,i.u],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky;position:sticky}\n'],encapsulation:2}),t})();const _=f.Ub(b);let y=(()=>{class t extends i.c{}return t.\u0275fac=function(e){return v(e||t)},t.\u0275dir=f.Hb({type:t,selectors:[["","matCellDef",""]],features:[f.Ab([{provide:i.c,useExisting:t}]),f.yb]}),t})();const v=f.Ub(y);let w=(()=>{class t extends i.k{}return t.\u0275fac=function(e){return S(e||t)},t.\u0275dir=f.Hb({type:t,selectors:[["","matHeaderCellDef",""]],features:[f.Ab([{provide:i.k,useExisting:t}]),f.yb]}),t})();const S=f.Ub(w);let A=(()=>{class t extends i.e{get name(){return this._name}set name(t){this._setNameInput(t)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push("mat-column-"+this.cssClassFriendlyName)}}return t.\u0275fac=function(e){return C(e||t)},t.\u0275dir=f.Hb({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[f.Ab([{provide:i.e,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),f.yb]}),t})();const C=f.Ub(A);let x=(()=>{class t extends i.j{}return t.\u0275fac=function(e){return E(e||t)},t.\u0275dir=f.Hb({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[f.yb]}),t})();const E=f.Ub(x);let D=(()=>{class t extends i.b{}return t.\u0275fac=function(e){return k(e||t)},t.\u0275dir=f.Hb({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[f.yb]}),t})();const k=f.Ub(D);let O=(()=>{class t extends i.m{}return t.\u0275fac=function(e){return R(e||t)},t.\u0275dir=f.Hb({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[f.Ab([{provide:i.m,useExisting:t}]),f.yb]}),t})();const R=f.Ub(O);let I=(()=>{class t extends i.p{}return t.\u0275fac=function(e){return T(e||t)},t.\u0275dir=f.Hb({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[f.Ab([{provide:i.p,useExisting:t}]),f.yb]}),t})();const T=f.Ub(I);let F=(()=>{class t extends i.l{}return t.\u0275fac=function(e){return P(e||t)},t.\u0275cmp=f.Gb({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[f.Ab([{provide:i.l,useExisting:t}]),f.yb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&f.Ob(0,0)},directives:[i.d],encapsulation:2}),t})();const P=f.Ub(F);let j=(()=>{class t extends i.o{}return t.\u0275fac=function(e){return M(e||t)},t.\u0275cmp=f.Gb({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[f.Ab([{provide:i.o,useExisting:t}]),f.yb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&f.Ob(0,0)},directives:[i.d],encapsulation:2}),t})();const M=f.Ub(j);let B=(()=>{class t{}return t.\u0275mod=f.Kb({type:t}),t.\u0275inj=f.Jb({factory:function(e){return new(e||t)},imports:[[i.r,r.j],r.j]}),t})();class H extends s.b{constructor(t=[]){super(),this._renderData=new a.a([]),this._filter=new a.a(""),this._internalPageChanges=new c.a,this._renderChangesSubscription=l.a.EMPTY,this.sortingDataAccessor=(t,e)=>{const n=t[e];if(Object(o.a)(n)){const t=Number(n);return t<9007199254740991?t:n}return n},this.sortData=(t,e)=>{const n=e.active,i=e.direction;return n&&""!=i?t.sort((t,e)=>{let s=this.sortingDataAccessor(t,n),r=this.sortingDataAccessor(e,n);const o=typeof s,a=typeof r;o!==a&&("number"===o&&(s+=""),"number"===a&&(r+=""));let c=0;return null!=s&&null!=r?s>r?c=1:s{const n=Object.keys(t).reduce((e,n)=>e+t[n]+"\u25ec","").toLowerCase(),i=e.trim().toLowerCase();return-1!=n.indexOf(i)},this._data=new a.a(t),this._updateChangeSubscription()}get data(){return this._data.value}set data(t){this._data.next(t)}get filter(){return this._filter.value}set filter(t){this._filter.next(t)}get sort(){return this._sort}set sort(t){this._sort=t,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(t){this._paginator=t,this._updateChangeSubscription()}_updateChangeSubscription(){const t=this._sort?Object(h.a)(this._sort.sortChange,this._sort.initialized):Object(u.a)(null),e=this._paginator?Object(h.a)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Object(u.a)(null),n=this._data,i=Object(d.a)([n,this._filter]).pipe(Object(p.a)(([t])=>this._filterData(t))),s=Object(d.a)([i,t]).pipe(Object(p.a)(([t])=>this._orderData(t))),r=Object(d.a)([s,e]).pipe(Object(p.a)(([t])=>this._pageData(t)));this._renderChangesSubscription.unsubscribe(),this._renderChangesSubscription=r.subscribe(t=>this._renderData.next(t))}_filterData(t){return this.filteredData=this.filter?t.filter(t=>this.filterPredicate(t,this.filter)):t,this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(t){return this.sort?this.sortData(t.slice(),this.sort):t}_pageData(t){if(!this.paginator)return t;const e=this.paginator.pageIndex*this.paginator.pageSize;return t.slice(e,e+this.paginator.pageSize)}_updatePaginator(t){Promise.resolve().then(()=>{const e=this.paginator;if(e&&(e.length=t,e.pageIndex>0)){const t=Math.ceil(e.length/e.pageSize)-1||0,n=Math.min(e.pageIndex,t);n!==e.pageIndex&&(e.pageIndex=n,this._internalPageChanges.next())}})}connect(){return this._renderData}disconnect(){}}},"+rOU":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 d})),n.d(e,"d",(function(){return o})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return p})),n.d(e,"g",(function(){return g})),n.d(e,"h",(function(){return a}));var i=n("fXoL"),s=n("ofXK");class r{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class o extends r{constructor(t,e,n,i){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=i}}class a extends r{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class c extends r{constructor(t){super(),this.element=t instanceof i.l?t.nativeElement:t}}class l{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof a?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof c?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class h extends l{constructor(t,e,n,i,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=i,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let u=(()=>{class t extends a{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.N),i.Mb(i.R))},t.\u0275dir=i.Hb({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[i.yb]}),t})(),d=(()=>{class t extends l{constructor(t,e,n){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new i.o,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(n,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=n}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,n=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(n,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.j),i.Mb(i.R),i.Mb(s.d))},t.\u0275dir=i.Hb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[i.yb]}),t})(),p=(()=>{class t extends d{}return t.\u0275fac=function(e){return f(e||t)},t.\u0275dir=i.Hb({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[i.Ab([{provide:d,useExisting:t}]),i.yb]}),t})();const f=i.Ub(p);let g=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)}}),t})()},"/1cH":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n("u47x"),n("8LU1");var i=n("fXoL"),s=n("FKr1"),r=(n("quSY"),n("XNiG"),n("NXyV"),n("VRyK"),n("LRne"),n("xgIS"),n("ofXK")),o=n("rDax"),a=n("vxfF");n("FtGj"),n("nLfN"),n("+rOU"),n("3Pt+"),n("kmnG"),n("IzEk"),n("eIep"),n("pLZG"),n("lJxs"),n("vkgz"),n("3E0/"),n("cH1L");const c={provide:new i.s("mat-autocomplete-scroll-strategy"),deps:[o.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let l=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:[c],imports:[[o.f,s.o,s.j,r.c],a.b,s.o,s.j]}),t})()},"/uUt":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");function s(t,e){return n=>n.lift(new r(t,e))}class r{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 i.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(i){return this.destination.error(i)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(i){return this.destination.error(i)}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 a})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return f})),n.d(e,"h",(function(){return c}));var i=n("7+OI"),s=n("LRne"),r=n("XNiG"),o=n("fXoL");class a{}function c(t){return t&&"function"==typeof t.connect}class l extends a{constructor(t){super(),this._data=t}connect(){return Object(i.a)(this._data)?this._data:Object(s.a)(this._data)}disconnect(){}}class h{applyChanges(t,e,n,i,s){t.forEachOperation((t,i,r)=>{let o,a;if(null==t.previousIndex){const s=n(t,i,r);o=e.createEmbeddedView(s.templateRef,s.context,s.index),a=1}else null==r?(e.remove(i),a=3):(o=e.get(i),e.move(o,r),a=2);s&&s({context:null==o?void 0:o.context,operation:a,record:t})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,n,i,s){t.forEachOperation((t,r,o)=>{let a,c;null==t.previousIndex?(a=this._insertView(()=>n(t,r,o),o,e,i(t)),c=a?1:0):null==o?(this._detachAndCacheView(r,e),c=3):(a=this._moveView(r,o,e,i(t)),c=2),s&&s({context:null==a?void 0:a.context,operation:c,record:t})})}detach(){for(const t of this._viewCache)t.destroy()}_insertView(t,e,n,i){let s=this._insertViewFromCache(e,n);if(s)return void(s.context.$implicit=i);const r=t();return n.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const n=this._detachView(t,e);this._maybeCacheView(n,e)}_moveView(t,e,n,i){const s=n.get(t);return n.move(s,e),s.context.$implicit=i,s}_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){}}let p=(()=>{class t{constructor(){this._listeners=[]}notify(t,e){for(let n of this._listeners)n(t,e)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(e=>t!==e)}}ngOnDestroy(){this._listeners=[]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(o.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const f=new o.s("_ViewRepeater")},"0EUg":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("bHdf");function s(){return Object(i.a)(1)}},"0IaG":function(t,e,n){"use strict";n.d(e,"a",(function(){return T})),n.d(e,"b",(function(){return F}));var i=n("rDax"),s=n("+rOU"),r=n("fXoL"),o=n("FKr1"),a=n("cH1L"),c=n("ofXK"),l=n("XNiG"),h=n("NXyV"),u=n("LRne"),d=n("pLZG"),p=n("IzEk"),f=n("JX91"),g=n("R0Ic"),m=n("FtGj"),b=n("u47x");function _(t,e){}class y{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const v={dialogContainer:Object(g.n)("dialogContainer",[Object(g.k)("void, exit",Object(g.l)({opacity:0,transform:"scale(0.7)"})),Object(g.k)("enter",Object(g.l)({transform:"none"})),Object(g.m)("* => enter",Object(g.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(g.l)({transform:"none",opacity:1}))),Object(g.m)("* => void, * => exit",Object(g.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(g.l)({opacity:0})))])};let w=(()=>{class t extends s.a{constructor(t,e,n,i,s,o){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=n,this._config=s,this._focusMonitor=o,this._animationStateChanged=new r.o,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=t=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(t)),this._ariaLabelledBy=s.ariaLabelledBy||null,this._document=i}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){const e=this._document.activeElement,n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.l),r.Mb(b.i),r.Mb(r.h),r.Mb(c.d,8),r.Mb(y),r.Mb(b.h))},t.\u0275dir=r.Hb({type:t,viewQuery:function(t,e){var n;1&t&&r.xc(s.c,!0),2&t&&r.pc(n=r.ac())&&(e._portalOutlet=n.first)},features:[r.yb]}),t})(),S=(()=>{class t extends w{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:t,totalTime:e}){"enter"===t?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})):"exit"===t&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:e}))}_onAnimationStart({toState:t,totalTime:e}){"enter"===t?this._animationStateChanged.next({state:"opening",totalTime:e}):"exit"!==t&&"void"!==t||this._animationStateChanged.next({state:"closing",totalTime:e})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return A(e||t)},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&r.Ac("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(r.Vb("id",e._id),r.Cb("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.Bc("@dialogContainer",e._state))},features:[r.yb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.Cc(0,_,0,0,"ng-template",0)},directives:[s.c],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[v.dialogContainer]}}),t})();const A=r.Ub(S);let C=0;class x{constructor(t,e,n="mat-dialog-"+C++){this._overlayRef=t,this._containerInstance=e,this.id=n,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new l.a,this._afterClosed=new l.a,this._beforeClosed=new l.a,this._state=0,e._id=n,e._animationStateChanged.pipe(Object(d.a)(t=>"opened"===t.state),Object(p.a)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),e._animationStateChanged.pipe(Object(d.a)(t=>"closed"===t.state),Object(p.a)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),t.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),t.keydownEvents().pipe(Object(d.a)(t=>t.keyCode===m.h&&!this.disableClose&&!Object(m.t)(t))).subscribe(t=>{t.preventDefault(),E(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():E(this,"mouse")})}close(t){this._result=t,this._containerInstance._animationStateChanged.pipe(Object(d.a)(t=>"closing"===t.state),Object(p.a)(1)).subscribe(e=>{this._beforeClosed.next(t),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(t){let e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(t="",e=""){return this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this}addPanelClass(t){return this._overlayRef.addPanelClass(t),this}removePanelClass(t){return this._overlayRef.removePanelClass(t),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function E(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}const D=new r.s("MatDialogData"),k=new r.s("mat-dialog-default-options"),O=new r.s("mat-dialog-scroll-strategy"),R={provide:O,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.block()}};let I=(()=>{class t{constructor(t,e,n,i,s,r,o,a,c){this._overlay=t,this._injector=e,this._defaultOptions=n,this._parentDialog=i,this._overlayContainer=s,this._dialogRefConstructor=o,this._dialogContainerType=a,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new l.a,this._afterOpenedAtThisLevel=new l.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(h.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(f.a)(void 0))),this._scrollStrategy=r}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(t,e){(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new y)).id&&this.getDialogById(e.id);const n=this._createOverlay(e),i=this._attachDialogContainer(n,e),s=this._attachDialogContent(t,i,n,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),i._initializeWithAttachedContent(),s}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(e=>e.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(t){const e=this._getOverlayConfig(t);return this._overlay.create(e)}_getOverlayConfig(t){const e=new i.d({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}_attachDialogContainer(t,e){const n=r.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),i=new s.d(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}_attachDialogContent(t,e,n,i){const o=new this._dialogRefConstructor(n,e,i.id);if(t instanceof r.N)e.attachTemplatePortal(new s.h(t,null,{$implicit:i.data,dialogRef:o}));else{const n=this._createInjector(i,o,e),r=e.attachComponentPortal(new s.d(t,i.viewContainerRef,n));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o}_createInjector(t,e,n){const i=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(a.b,null)||s.push({provide:a.b,useValue:{value:t.direction,change:Object(u.a)()}}),r.t.create({parent:i||this._injector,providers:s})}_removeOpenDialog(t){const e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const t=this._overlayContainer.getContainerElement();if(t.parentElement){const e=t.parentElement.children;for(let n=e.length-1;n>-1;n--){let i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}}_closeDialogs(t){let e=t.length;for(;e--;)t[e].close()}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(i.c),r.Mb(r.t),r.Mb(void 0),r.Mb(void 0),r.Mb(i.e),r.Mb(void 0),r.Mb(r.P),r.Mb(r.P),r.Mb(r.s))},t.\u0275dir=r.Hb({type:t}),t})(),T=(()=>{class t extends I{constructor(t,e,n,i,s,r,o){super(t,e,i,r,o,s,x,S,D)}}return t.\u0275fac=function(e){return new(e||t)(r.Wb(i.c),r.Wb(r.t),r.Wb(c.h,8),r.Wb(k,8),r.Wb(O),r.Wb(t,12),r.Wb(i.e))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[T,R],imports:[[i.f,s.g,o.j],o.j]}),t})()},"0MNC":function(t,e,n){"use strict";n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return C}));var i=n("fXoL"),s=n("8LU1"),r=n("XNiG"),o=n("itXk"),a=n("GyhO"),c=n("HDdC"),l=n("IzEk"),h=n("7o/Q");class u{constructor(t){this.total=t}call(t,e){return e.subscribe(new d(t,this.total))}}class d extends h.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var p=n("Kj3r"),f=n("lJxs"),g=n("JX91"),m=n("1G5W"),b=n("nLfN");const _=new Set;let y,v=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):w}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!_.has(t))try{y||(y=document.createElement("style"),y.setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),_.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(b.a))},t.\u0275prov=Object(i.Ib)({factory:function(){return new t(Object(i.Wb)(b.a))},token:t,providedIn:"root"}),t})();function w(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let S=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new r.a}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return A(Object(s.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=A(Object(s.b)(t)).map(t=>this._registerQuery(t).observable);let n=Object(o.a)(e);return n=Object(a.a)(n.pipe(Object(l.a)(1)),n.pipe(t=>t.lift(new u(1)),Object(p.a)(0))),n.pipe(Object(f.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new c.a(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Object(g.a)(e),Object(f.a)(({matches:e})=>({query:t,matches:e})),Object(m.a)(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(v),i.Wb(i.B))},t.\u0275prov=Object(i.Ib)({factory:function(){return new t(Object(i.Wb)(v),Object(i.Wb)(i.B))},token:t,providedIn:"root"}),t})();function A(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const C={XSmall:"(max-width: 599.99px)",Small:"(min-width: 600px) and (max-width: 959.99px)",Medium:"(min-width: 960px) and (max-width: 1279.99px)",Large:"(min-width: 1280px) and (max-width: 1919.99px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.99px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.99px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.99px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.99px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},"1G5W":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("l7GE"),s=n("ZUHj");function r(t){return e=>e.lift(new o(t))}class o{constructor(t){this.notifier=t}call(t,e){const n=new a(t),i=Object(s.a)(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}class a extends i.a{constructor(t){super(t),this.seenValue=!1}notifyNext(t,e,n,i,s){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1IWC":function(t,e,n){var i,s,r;!function(o){if("object"==typeof t.exports){var a=o(0,e);void 0!==a&&(t.exports=a)}else s=[n,e],void 0===(r="function"==typeof(i=o)?i.apply(e,s):i)||(t.exports=r)}((function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=void 0;e.default=["it",[["m.","p."],["AM","PM"],n],n,[["D","L","M","M","G","V","S"],["dom","lun","mar","mer","gio","ven","sab"],["domenica","luned\xec","marted\xec","mercoled\xec","gioved\xec","venerd\xec","sabato"],["dom","lun","mar","mer","gio","ven","sab"]],n,[["G","F","M","A","M","G","L","A","S","O","N","D"],["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]],n,[["aC","dC"],["a.C.","d.C."],["avanti Cristo","dopo Cristo"]],1,[6,0],["dd/MM/yy","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",n,"{1} {0}",n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","#,##0.00\xa0\xa4","#E0"],"EUR","\u20ac","euro",{BRL:[n,"R$"],BYN:[n,"Br"],EGP:[n,"\xa3E"],HKD:[n,"$"],JPY:[n,"\xa5"],KRW:[n,"\u20a9"],MXN:[n,"$"],NOK:[n,"NKr"],THB:["\u0e3f"],TWD:[n,"NT$"],USD:[n,"$"]},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}]}))},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("XNiG"),s=n("9ppp");class r extends i.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 s.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));let i=!1;const s={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 i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},"3E0/":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("D0XW"),s=n("mlxB"),r=n("7o/Q"),o=n("WMd4");function a(t,e=i.a){const n=Object(s.a)(t)?+t-e.now():Math.abs(t);return t=>t.lift(new c(n,e))}class c{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))}}class l extends r.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,i=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-i.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(l.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new h(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(o.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(o.a.createComplete()),this.unsubscribe()}}class h{constructor(t,e){this.time=t,this.notification=e}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("quSY");class s extends i.a{constructor(t,e){super()}schedule(t,e=0){return this}}class r extends s{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,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,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,i=void 0;try{this.work(t)}catch(s){n=!0,i=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),i}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,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 h})),n.d(e,"b",(function(){return Et})),n.d(e,"c",(function(){return g})),n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return Ot})),n.d(e,"f",(function(){return ot})),n.d(e,"g",(function(){return St})),n.d(e,"h",(function(){return Rt})),n.d(e,"i",(function(){return S})),n.d(e,"j",(function(){return c})),n.d(e,"k",(function(){return _})),n.d(e,"l",(function(){return y})),n.d(e,"m",(function(){return ut})),n.d(e,"n",(function(){return yt})),n.d(e,"o",(function(){return It})),n.d(e,"p",(function(){return x}));var i=n("fXoL"),s=n("ofXK"),r=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const c=new i.s("NgValueAccessor"),l={provide:c,useExisting:Object(i.V)(()=>h),multi:!0};let h=(()=>{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)(i.Mb(i.G),i.Mb(i.l))},t.\u0275dir=i.Hb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&i.Zb("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[i.Ab([l])]}),t})();const u={provide:c,useExisting:Object(i.V)(()=>p),multi:!0},d=new i.s("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(s.z)()?Object(s.z)().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)(i.Mb(i.G),i.Mb(i.l),i.Mb(d,8))},t.\u0275dir=i.Hb({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.Zb("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.Ab([u])]}),t})(),f=(()=>{class t{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}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=i.Hb({type:t}),t})(),g=(()=>{class t extends f{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return m(e||t)},t.\u0275dir=i.Hb({type:t,features:[i.yb]}),t})();const m=i.Ub(g);function b(){throw new Error("unimplemented")}class _ extends f{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){return b()}get asyncValidator(){return b()}}let y=(()=>{class t extends class{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}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(_,2))},t.\u0275dir=i.Hb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&i.Eb("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.yb]}),t})();function v(t){return null==t||0===t.length}function w(t){return null!=t&&"number"==typeof t.length}const S=new i.s("NgValidators"),A=new i.s("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])?)*$/;class x{static min(t){return e=>{if(v(e.value)||v(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(v(e.value)||v(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return v(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return v(t.value)||C.test(t.value)?null:{email:!0}}static minLength(t){return e=>v(e.value)||!w(e.value)?null:e.value.lengthw(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return x.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(v(t.value))return null;const i=t.value;return e.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(E);return 0==e.length?null:function(t){return k(O(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(E);return 0==e.length?null:function(t){const n=O(t,e).map(D);return Object(r.a)(n).pipe(Object(a.a)(k))}}}function E(t){return null!=t}function D(t){const e=Object(i.tb)(t)?Object(o.a)(t):t;if(!Object(i.sb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function k(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 O(t,e){return e.map(e=>e(t))}function R(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const I={provide:c,useExisting:Object(i.V)(()=>T),multi:!0};let T=(()=>{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)(i.Mb(i.G),i.Mb(i.l))},t.\u0275dir=i.Hb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&i.Zb("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[i.Ab([I])]}),t})();const F={provide:c,useExisting:Object(i.V)(()=>j),multi:!0};let P=(()=>{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=i.Ib({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{constructor(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(_),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&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}_throwNameError(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.G),i.Mb(i.l),i.Mb(P),i.Mb(i.t))},t.\u0275dir=i.Hb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&i.Zb("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.Ab([F])]}),t})();const M={provide:c,useExisting:Object(i.V)(()=>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)(i.Mb(i.G),i.Mb(i.l))},t.\u0275dir=i.Hb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&i.Zb("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.Ab([M])]}),t})();const H='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',L='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',N='\n
\n
\n \n
\n
',V={provide:c,useExisting:Object(i.V)(()=>U),multi:!0};let U=(()=>{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){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(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)(i.Mb(i.G),i.Mb(i.l))},t.\u0275dir=i.Hb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&i.Zb("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[i.Ab([V])]}),t})();const K={provide:c,useExisting:Object(i.V)(()=>z),multi:!0};let z=(()=>{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){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(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&&G(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&G(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function G(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Y(t,e){null==t&&X(e,"Cannot find control with"),t.validator=x.compose([t.validator,e.validator]),t.asyncValidator=x.composeAsync([t.asyncValidator,e.asyncValidator])}function Q(t){return X(t,"There is no FormControl instance attached to form control element with")}function X(t,e){let n;throw n=t.path.length>1?`path: '${t.path.join(" -> ")}'`:t.path[0]?`name: '${t.path}'`:"unspecified name attribute",new Error(`${e} ${n}`)}function Z(t){return null!=t?x.compose(R(t)):null}function J(t){return null!=t?x.composeAsync(R(t)):null}const $=[h,B,T,U,z,j];function tt(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function et(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function nt(t){const e=st(t)?t.validators:t;return Array.isArray(e)?Z(e):e||null}function it(t,e){const n=st(e)?e.asyncValidators:t;return Array.isArray(n)?J(n):n||null}function st(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class rt{constructor(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}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.validator=nt(t)}setAsyncValidators(t){this.asyncValidator=it(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";const e=D(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>this.setErrors(e,{emitEvent:t}))}}_cancelExistingSubscription(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}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 i=t;return e.forEach(t=>{i=i instanceof at?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof ct&&i.at(t)||null}),i}(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 i.o,this.statusChanges=new i.o}_calculateStatus(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":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){st(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class ot extends rt{constructor(t=null,e,n){super(nt(e),it(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}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)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(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 at extends rt{constructor(t,e,n){super(nt(e),it(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}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,i)=>{n.reset(t[i],{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 ot?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,i)=>{n=e(n,t,i)}),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 ct extends rt{constructor(t,e,n){super(nt(e),it(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}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,i)=>{n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof ot?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 lt={provide:g,useExisting:Object(i.V)(()=>ut)},ht=(()=>Promise.resolve(null))();let ut=(()=>{class t extends g{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.o,this.form=new at({},Z(t),J(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){ht.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),q(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){ht.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),et(this._directives,t)})}addFormGroup(t){ht.then(()=>{const e=this._findContainer(t.path),n=new at({});Y(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){ht.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){ht.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,tt(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)(i.Mb(S,10),i.Mb(A,10))},t.\u0275dir=i.Hb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&i.Zb("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Ab([lt]),i.yb]}),t})(),dt=(()=>{class t extends g{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return W(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Z(this._validators)}get asyncValidator(){return J(this._asyncValidators)}_checkParentType(){}}return t.\u0275fac=function(e){return pt(e||t)},t.\u0275dir=i.Hb({type:t,features:[i.yb]}),t})();const pt=i.Ub(dt);class ft{static modelParentException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup's partner directive "formControlName" instead. Example:\n\n ${H}\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n `)}static formGroupNameException(){throw new Error(`\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ${L}\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ${N}`)}static missingNameException(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}static modelGroupParentException(){throw new Error(`\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ${L}\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ${N}`)}}const gt={provide:g,useExisting:Object(i.V)(()=>mt)};let mt=(()=>{class t extends dt{constructor(t,e,n){super(),this._parent=t,this._validators=e,this._asyncValidators=n}_checkParentType(){this._parent instanceof t||this._parent instanceof ut||ft.modelGroupParentException()}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(g,5),i.Mb(S,10),i.Mb(A,10))},t.\u0275dir=i.Hb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[i.Ab([gt]),i.yb]}),t})();const bt={provide:_,useExisting:Object(i.V)(()=>yt)},_t=(()=>Promise.resolve(null))();let yt=(()=>{class t extends _{constructor(t,e,n,s){super(),this.control=new ot,this._registered=!1,this.update=new i.o,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||X(t,"Value accessor was not provided as an array for form control with");let n=void 0,i=void 0,s=void 0;return e.forEach(e=>{var r;e.constructor===p?n=e:(r=e,$.some(t=>r.constructor===t)?(i&&X(t,"More than one built-in value accessor matches form control with"),i=e):(s&&X(t,"More than one custom value accessor matches form control with"),s=e))}),s||i||n||(X(t,"No valid value accessor for form control with"),null)}(this,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),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._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?W(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Z(this._rawValidators)}get asyncValidator(){return J(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){q(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){!(this._parent instanceof mt)&&this._parent instanceof dt?ft.formGroupNameException():this._parent instanceof mt||this._parent instanceof ut||ft.modelParentException()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||ft.missingNameException()}_updateValue(t){_t.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;_t.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(g,9),i.Mb(S,10),i.Mb(A,10),i.Mb(c,10))},t.\u0275dir=i.Hb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[i.Ab([bt]),i.yb,i.zb]}),t})();const vt=new i.s("NgModelWithFormControlWarning"),wt={provide:g,useExisting:Object(i.V)(()=>St)};let St=(()=>{class t extends g{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new i.o}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return q(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){et(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,tt(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){e.valueAccessor.registerOnChange(()=>Q(e)),e.valueAccessor.registerOnTouched(()=>Q(e)),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&q(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=Z(this._validators);this.form.validator=x.compose([this.form.validator,t]);const e=J(this._asyncValidators);this.form.asyncValidator=x.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){this.form||class{static controlParentException(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+H)}static ngModelGroupException(){throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n ${L}\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n ${N}`)}static missingFormException(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+H)}static groupParentException(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+L)}static arrayParentException(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')}static disabledAttrWarning(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n\n Example:\n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")}static ngModelWarning(t){console.warn(`\n It looks like you're using ngModel on the same form field as ${t}.\n Support for using the ngModel input property and ngModelChange event with\n reactive form directives has been deprecated in Angular v6 and will be removed\n in a future version of Angular.\n\n For more information on this, see our API docs here:\n https://angular.io/api/forms/${"formControl"===t?"FormControlDirective":"FormControlName"}#use-with-ngmodel\n `)}}.missingFormException()}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(S,10),i.Mb(A,10))},t.\u0275dir=i.Hb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&i.Zb("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.Ab([wt]),i.yb,i.zb]}),t})();const At={provide:S,useExisting:Object(i.V)(()=>xt),multi:!0},Ct={provide:S,useExisting:Object(i.V)(()=>Et),multi:!0};let xt=(()=>{class t{constructor(){this._required=!1}get required(){return this._required}set required(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()}validate(t){return this.required?x.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Hb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&i.Cb("required",e.required?"":null)},inputs:{required:"required"},features:[i.Ab([At])]}),t})(),Et=(()=>{class t extends xt{validate(t){return this.required?x.requiredTrue(t):null}}return t.\u0275fac=function(e){return Dt(e||t)},t.\u0275dir=i.Hb({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&i.Cb("required",e.required?"":null)},features:[i.Ab([Ct]),i.yb]}),t})();const Dt=i.Ub(Et);let kt=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)}}),t})(),Ot=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let i=null,s=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new at(n,{asyncValidators:s,updateOn:r,validators:i})}control(t,e,n){return new ot(t,e,n)}array(t,e,n){const i=t.map(t=>this._createControl(t));return new ct(i,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof ot||t instanceof at||t instanceof ct?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=i.Ib({token:t,factory:t.\u0275fac}),t})(),Rt=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:[P],imports:[kt]}),t})(),It=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:vt,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:[Ot,P],imports:[kt]}),t})()},"3UD+":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},"3UWI":function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("D0XW"),s=n("l7GE"),r=n("ZUHj");class o{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends s.a{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 i=Object(r.a)(this,n);!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))}notifyNext(t,e,n,i){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var c=n("PqYM");function l(t,e=i.a){return n=()=>Object(c.a)(t,e),function(t){return t.lift(new o(n))};var n}},"3ljP":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("AYtA"),s=n("ibrm"),r=n("fXoL");let o=(()=>{class t{constructor(t,e){this.dictionary=t,this.apiCalle=e}transform(t){return this.dictionary.getLang(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(s.a),r.Mb(i.a))},t.\u0275pipe=r.Lb({name:"lang",type:t,pure:!0}),t})()},"4I5i":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>{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 c}));var i=n("ZUHj"),s=n("l7GE"),r=n("51Dv"),o=n("lJxs"),a=n("Cfvw");function c(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(c((n,i)=>Object(a.a)(t(n,i)).pipe(Object(o.a)((t,s)=>e(n,t,i,s))),n)):("number"==typeof e&&(n=e),e=>e.lift(new l(t,n)))}class l{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new h(t,this.project,this.concurrent))}}class h extends s.a{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(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"51Dv":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");class s 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()}}},"7+OI":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("HDdC");function s(t){return!!t&&(t instanceof i.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7EHt":function(t,e,n){"use strict";n.d(e,"a",(function(){return U})),n.d(e,"b",(function(){return z})),n.d(e,"c",(function(){return H})),n.d(e,"d",(function(){return N})),n.d(e,"e",(function(){return L})),n.d(e,"f",(function(){return V}));var i=n("fXoL"),s=n("8LU1"),r=n("XNiG"),o=n("quSY"),a=n("0EQZ");let c=0;const l=new i.s("CdkAccordion");let h=(()=>{class t{constructor(){this._stateChanges=new r.a,this._openCloseAllActions=new r.a,this.id="cdk-accordion-"+c++,this._multi=!1}get multi(){return this._multi}set multi(t){this._multi=Object(s.c)(t)}openAll(){this._openCloseAll(!0)}closeAll(){this._openCloseAll(!1)}ngOnChanges(t){this._stateChanges.next(t)}ngOnDestroy(){this._stateChanges.complete()}_openCloseAll(t){this.multi&&this._openCloseAllActions.next(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Hb({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[i.Ab([{provide:l,useExisting:t}]),i.zb]}),t})(),u=0,d=(()=>{class t{constructor(t,e,n){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=o.a.EMPTY,this.closed=new i.o,this.opened=new i.o,this.destroyed=new i.o,this.expandedChange=new i.o,this.id="cdk-accordion-child-"+u++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=n.listen((t,e)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===e&&this.id!==t&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(t){t=Object(s.c)(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(s.c)(t)}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(t=>{this.disabled||(this.expanded=t)})}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(l,12),i.Mb(i.h),i.Mb(a.d))},t.\u0275dir=i.Hb({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[i.Ab([{provide:l,useValue:void 0}])]}),t})(),p=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)}}),t})();var f=n("+rOU"),g=n("ofXK"),m=n("u47x"),b=n("/uUt"),_=n("JX91"),y=n("pLZG"),v=n("IzEk"),w=n("FtGj"),S=n("R1ws"),A=n("EY2u"),C=n("VRyK"),x=n("R0Ic");const E=["body"];function D(t,e){}const k=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],O=["mat-expansion-panel-header","*","mat-action-row"];function R(t,e){if(1&t&&i.Nb(0,"span",2),2&t){const t=i.dc();i.jc("@indicatorRotate",t._getExpandedState())}}const I=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],T=["mat-panel-title","mat-panel-description","*"],F=new i.s("MAT_ACCORDION"),P={indicatorRotate:Object(x.n)("indicatorRotate",[Object(x.k)("collapsed, void",Object(x.l)({transform:"rotate(0deg)"})),Object(x.k)("expanded",Object(x.l)({transform:"rotate(180deg)"})),Object(x.m)("expanded <=> collapsed, void => collapsed",Object(x.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),bodyExpansion:Object(x.n)("bodyExpansion",[Object(x.k)("collapsed, void",Object(x.l)({height:"0px",visibility:"hidden"})),Object(x.k)("expanded",Object(x.l)({height:"*",visibility:"visible"})),Object(x.m)("expanded <=> collapsed, void => collapsed",Object(x.e)("225ms cubic-bezier(0.4,0.0,0.2,1)"))])};let j=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.N))},t.\u0275dir=i.Hb({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),M=0;const B=new i.s("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let H=(()=>{class t extends d{constructor(t,e,n,s,o,a,c){super(t,e,n),this._viewContainerRef=s,this._animationMode=a,this._hideToggle=!1,this.afterExpand=new i.o,this.afterCollapse=new i.o,this._inputChanges=new r.a,this._headerId="mat-expansion-panel-header-"+M++,this._bodyAnimationDone=new r.a,this.accordion=t,this._document=o,this._bodyAnimationDone.pipe(Object(b.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{"void"!==t.fromState&&("expanded"===t.toState?this.afterExpand.emit():"collapsed"===t.toState&&this.afterCollapse.emit())}),c&&(this.hideToggle=c.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(t){this._hideToggle=Object(s.c)(t)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(t){this._togglePosition=t}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this.opened.pipe(Object(_.a)(null),Object(y.a)(()=>this.expanded&&!this._portal),Object(v.a)(1)).subscribe(()=>{this._portal=new f.h(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(t){this._inputChanges.next(t)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(F,12),i.Mb(i.h),i.Mb(a.d),i.Mb(i.R),i.Mb(g.d),i.Mb(S.a,8),i.Mb(B,8))},t.\u0275cmp=i.Gb({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var s;1&t&&i.Fb(n,j,!0),2&t&&i.pc(s=i.ac())&&(e._lazyContent=s.first)},viewQuery:function(t,e){var n;1&t&&i.Ic(E,!0),2&t&&i.pc(n=i.ac())&&(e._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&i.Eb("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[i.Ab([{provide:F,useValue:void 0}]),i.yb,i.zb],ngContentSelectors:O,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(i.ic(k),i.hc(0),i.Sb(1,"div",0,1),i.Zb("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),i.Sb(3,"div",2),i.hc(4,1),i.Cc(5,D,0,0,"ng-template",3),i.Rb(),i.hc(6,2),i.Rb()),2&t&&(i.Bb(1),i.jc("@bodyExpansion",e._getExpandedState())("id",e.id),i.Cb("aria-labelledby",e._headerId),i.Bb(4),i.jc("cdkPortalOutlet",e._portal))},directives:[f.c],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base,.mat-action-row button.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base,[dir=rtl] .mat-action-row button.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[P.bodyExpansion]},changeDetection:0}),t})(),L=(()=>{class t{constructor(t,e,n,i,s,r){this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._animationMode=r,this._parentChangeSubscription=o.a.EMPTY;const a=t.accordion?t.accordion._stateChanges.pipe(Object(y.a)(t=>!(!t.hideToggle&&!t.togglePosition))):A.a;this._parentChangeSubscription=Object(C.a)(t.opened,t.closed,a,t._inputChanges.pipe(Object(y.a)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Object(y.a)(()=>t._containsFocus())).subscribe(()=>n.focusVia(e,"program")),s&&(this.expandedHeight=s.expandedHeight,this.collapsedHeight=s.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const t=this._isExpanded();return t&&this.expandedHeight?this.expandedHeight:!t&&this.collapsedHeight?this.collapsedHeight:null}_keydown(t){switch(t.keyCode){case w.o:case w.g:Object(w.t)(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}}focus(t="program",e){this._focusMonitor.focusVia(this._element,t,e)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(t=>{t&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(H,1),i.Mb(i.l),i.Mb(m.h),i.Mb(i.h),i.Mb(B,8),i.Mb(S.a,8))},t.\u0275cmp=i.Gb({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&i.Zb("click",(function(){return e._toggle()}))("keydown",(function(t){return e._keydown(t)})),2&t&&(i.Cb("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),i.zc("height",e._getHeaderHeight()),i.Eb("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:T,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(i.ic(I),i.Sb(0,"span",0),i.hc(1),i.hc(2,1),i.hc(3,2),i.Rb(),i.Cc(4,R,1,1,"span",1)),2&t&&(i.Bb(4),i.jc("ngIf",e._showToggle()))},directives:[g.l],styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}\n'],encapsulation:2,data:{animation:[P.indicatorRotate]},changeDetection:0}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Hb({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t})(),V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Hb({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),U=(()=>{class t extends h{constructor(){super(...arguments),this._ownHeaders=new i.F,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(t){this._hideToggle=Object(s.c)(t)}ngAfterContentInit(){this._headers.changes.pipe(Object(_.a)(this._headers)).subscribe(t=>{this._ownHeaders.reset(t.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new m.g(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(t){this._keyManager.onKeydown(t)}_handleHeaderFocus(t){this._keyManager.updateActiveItem(t)}}return t.\u0275fac=function(e){return K(e||t)},t.\u0275dir=i.Hb({type:t,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var s;1&t&&i.Fb(n,L,!0),2&t&&i.pc(s=i.ac())&&(e._headers=s)},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,e){2&t&&i.Eb("mat-accordion-multi",e.multi)},inputs:{multi:"multi",displayMode:"displayMode",togglePosition:"togglePosition",hideToggle:"hideToggle"},exportAs:["matAccordion"],features:[i.Ab([{provide:F,useExisting:t}]),i.yb]}),t})();const K=i.Ub(U);let z=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[g.c,p,f.g]]}),t})()},"7Hc7":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));let i=1;const s=(()=>Promise.resolve())(),r={};function o(t){return t in r&&(delete r[t],!0)}const a={setImmediate(t){const e=i++;return r[e]=!0,s.then(()=>o(e)&&t()),e},clearImmediate(t){o(t)}};var c=n("3N8a");class l extends c.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=a.setImmediate(t.flush.bind(t,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&&(a.clearImmediate(e),t.scheduled=void 0)}}var h=n("IjjT");class u extends h.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++ithis._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(c.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(i){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(Object(c.a)(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"8LU1":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 s})),n.d(e,"d",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"f",(function(){return r}));var i=n("fXoL");function s(t){return null!=t&&""+t!="false"}function r(t,e=0){return o(t)?Number(t):e}function o(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function a(t){return Array.isArray(t)?t:[t]}function c(t){return null==t?"":"string"==typeof t?t:t+"px"}function l(t){return t instanceof i.l?t.nativeElement:t}},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},AYtA:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("sroB"),s=n("fXoL"),r=n("tk/3"),o=n("tyNb");let a=(()=>{class t{constructor(t,e){this.http=t,this.router=e,this._API=window.location.href.indexOf("localhost")>0?"http://localhost:8080/beEndPoint/api":"/beEndPoint/api",this.baseUrl=window.location.href.indexOf("localhost")>0?"http://localhost:8080/beEndPoint":"/beEndPoint"}getHrOrManFlag(t,e){return this.http.get(this._API+"/manager/checkUsersRoles/"+t+"/"+e).toPromise().then(t=>t).catch(t=>{throw t})}getPrivacyUrl(t){return this.http.get(this._API+"/privacy/file/"+t).toPromise().then(t=>t).catch(t=>{throw t})}getUserStatusList(){return this.http.get(this._API+"/manager/userStatusList").toPromise().then(t=>t).catch(t=>{throw t})}getToken(t){return this.http.post(this.baseUrl+"/getToken",{code:t}).toPromise().then(t=>t).catch(t=>{throw t})}getLang(){return new Promise(t=>{this.http.get(this._API+"/langLabels/getLanguage").toPromise().then(e=>{t(e)}).catch(t=>{throw t})})}getAdfsConnection(){return new Promise(t=>{this.http.get(this._API+"/adfs/configDetail").toPromise().then(e=>{t(e.configDetail)}).catch(t=>{throw t})})}getMedicalCenterList(){return new Promise(t=>{this.http.get(this._API+"/medicalCenter/listbyregion").toPromise().then(e=>{t(e.medicalCenters)}).catch(t=>{throw t})})}getUserForLogin(t){return new Promise(e=>{this.http.get(this._API+"/manager/getUserForLogin/"+t).toPromise().then(t=>{e(t.data)}).catch(t=>{throw localStorage.setItem("userNotFound","true"),t})})}getDetailManager(t){return new Promise(e=>{this.http.get(this._API+"/manager/get/"+t).toPromise().then(t=>{e(t)}).catch(t=>{throw t})})}getListManager(t){return new Promise(e=>{this.http.get(this._API+"/manager/list/"+t).toPromise().then(t=>{e(t)}).catch(t=>{throw t})})}getManagerPrivacyFlag(t){return new Promise(e=>{this.http.get(this._API+"/manager/privacy/get"+t).toPromise().then(t=>{e(t)}).catch(t=>{throw t})})}getManagerLastCheckup(t){return new Promise(e=>{this.http.get(this._API+"/manager/lastCheckup/"+t).toPromise().then(t=>{e(t)}).catch(t=>{throw t})})}getListManagerLike(t){console.log(JSON.stringify(i.a.loggedUser.get()));let e=i.a.loggedUser.get().holding?i.a.loggedUser.get().holding:"",n=this._API+"/manager/list/like/"+t+"/holding/";return new Promise(t=>{this.http.get(n+e).toPromise().then(e=>{t(e)}).catch(t=>{throw t})})}setManager(t){return new Promise(e=>{this.http.put(this._API+"/manager/set/"+t.networkId,{userdata:t}).toPromise().then(t=>{e(t)}).catch(t=>{throw t})})}setManagerPrivacySet(t,e){return this.http.put(this._API+"/manager/privacy/set",{networkid:t.networkid,value:e}).toPromise().then(t=>t).catch(t=>{throw t})}reservCheckup(t,e){return new Promise(n=>{this.http.put(this._API+"/checkup/reserve",{checkupuser:e,checkupdata:t}).toPromise().then(t=>{n(t)}).catch(t=>{throw t})})}resetCheckup(t,e){return new Promise(n=>{this.http.put(this._API+"/checkup/reset",{networkId:e,lastCheckupDate:t}).toPromise().then(t=>{n(t)}).catch(t=>{throw t})})}uploadCheckupList(t){return new Promise(e=>{this.http.put(this._API+"/checkup/upload",{uploadlist:t}).toPromise().then(t=>{e(t)}).catch(t=>{throw t})})}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(r.b),s.Wb(o.c))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},Cfvw:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("HDdC"),s=n("SeVD"),r=n("quSY"),o=n("kJWO"),a=n("jZKg"),c=n("Lhse"),l=n("c2HN"),h=n("I55L");function u(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new i.a(n=>{const i=new r.a;return i.add(e.schedule(()=>{const s=t[o.a]();i.add(s.subscribe({next(t){i.add(e.schedule(()=>n.next(t)))},error(t){i.add(e.schedule(()=>n.error(t)))},complete(){i.add(e.schedule(()=>n.complete()))}}))})),i})}(t,e);if(Object(l.a)(t))return function(t,e){return new i.a(n=>{const i=new r.a;return i.add(e.schedule(()=>t.then(t=>{i.add(e.schedule(()=>{n.next(t),i.add(e.schedule(()=>n.complete()))}))},t=>{i.add(e.schedule(()=>n.error(t)))}))),i})}(t,e);if(Object(h.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new i.a(n=>{const i=new r.a;let s;return i.add(()=>{s&&"function"==typeof s.return&&s.return()}),i.add(e.schedule(()=>{s=t[c.a](),i.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(i){return void n.error(i)}e?n.complete():(n.next(t),this.schedule())})))})),i})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof i.a?t:new i.a(Object(s.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("3N8a");const s=new(n("IjjT").a)(i.a)},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},Dh3D:function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return x})),n.d(e,"c",(function(){return E}));var i=n("fXoL"),s=n("8LU1"),r=n("FKr1"),o=n("FtGj"),a=n("XNiG"),c=n("VRyK"),l=n("R0Ic"),h=n("ofXK"),u=n("u47x");const d=["mat-sort-header",""];function p(t,e){if(1&t){const t=i.Tb();i.Sb(0,"div",3),i.Zb("@arrowPosition.start",(function(){return i.sc(t),i.dc()._disableViewStateAnimation=!0}))("@arrowPosition.done",(function(){return i.sc(t),i.dc()._disableViewStateAnimation=!1})),i.Nb(1,"div",4),i.Sb(2,"div",5),i.Nb(3,"div",6),i.Nb(4,"div",7),i.Nb(5,"div",8),i.Rb(),i.Rb()}if(2&t){const t=i.dc();i.jc("@arrowOpacity",t._getArrowViewState())("@arrowPosition",t._getArrowViewState())("@allowChildren",t._getArrowDirectionState()),i.Bb(2),i.jc("@indicator",t._getArrowDirectionState()),i.Bb(1),i.jc("@leftPointer",t._getArrowDirectionState()),i.Bb(1),i.jc("@rightPointer",t._getArrowDirectionState())}}const f=["*"];class g{}const m=Object(r.B)(Object(r.z)(g));let b=(()=>{class t extends m{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new a.a,this.start="asc",this._direction="",this.sortChange=new i.o}get direction(){return this._direction}set direction(t){this._direction=t}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Object(s.c)(t)}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let e=function(t,e){let n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),n=e.indexOf(this.direction)+1;return n>=e.length&&(n=0),e[n]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return _(e||t)},t.\u0275dir=i.Hb({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[i.yb,i.zb]}),t})();const _=i.Ub(b),y=r.b.ENTERING+" "+r.a.STANDARD_CURVE,v={indicator:Object(l.n)("indicator",[Object(l.k)("active-asc, asc",Object(l.l)({transform:"translateY(0px)"})),Object(l.k)("active-desc, desc",Object(l.l)({transform:"translateY(10px)"})),Object(l.m)("active-asc <=> active-desc",Object(l.e)(y))]),leftPointer:Object(l.n)("leftPointer",[Object(l.k)("active-asc, asc",Object(l.l)({transform:"rotate(-45deg)"})),Object(l.k)("active-desc, desc",Object(l.l)({transform:"rotate(45deg)"})),Object(l.m)("active-asc <=> active-desc",Object(l.e)(y))]),rightPointer:Object(l.n)("rightPointer",[Object(l.k)("active-asc, asc",Object(l.l)({transform:"rotate(45deg)"})),Object(l.k)("active-desc, desc",Object(l.l)({transform:"rotate(-45deg)"})),Object(l.m)("active-asc <=> active-desc",Object(l.e)(y))]),arrowOpacity:Object(l.n)("arrowOpacity",[Object(l.k)("desc-to-active, asc-to-active, active",Object(l.l)({opacity:1})),Object(l.k)("desc-to-hint, asc-to-hint, hint",Object(l.l)({opacity:.54})),Object(l.k)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Object(l.l)({opacity:0})),Object(l.m)("* => asc, * => desc, * => active, * => hint, * => void",Object(l.e)("0ms")),Object(l.m)("* <=> *",Object(l.e)(y))]),arrowPosition:Object(l.n)("arrowPosition",[Object(l.m)("* => desc-to-hint, * => desc-to-active",Object(l.e)(y,Object(l.h)([Object(l.l)({transform:"translateY(-25%)"}),Object(l.l)({transform:"translateY(0)"})]))),Object(l.m)("* => hint-to-desc, * => active-to-desc",Object(l.e)(y,Object(l.h)([Object(l.l)({transform:"translateY(0)"}),Object(l.l)({transform:"translateY(25%)"})]))),Object(l.m)("* => asc-to-hint, * => asc-to-active",Object(l.e)(y,Object(l.h)([Object(l.l)({transform:"translateY(25%)"}),Object(l.l)({transform:"translateY(0)"})]))),Object(l.m)("* => hint-to-asc, * => active-to-asc",Object(l.e)(y,Object(l.h)([Object(l.l)({transform:"translateY(0)"}),Object(l.l)({transform:"translateY(-25%)"})]))),Object(l.k)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Object(l.l)({transform:"translateY(0)"})),Object(l.k)("hint-to-desc, active-to-desc, desc",Object(l.l)({transform:"translateY(-25%)"})),Object(l.k)("hint-to-asc, active-to-asc, asc",Object(l.l)({transform:"translateY(25%)"}))]),allowChildren:Object(l.n)("allowChildren",[Object(l.m)("* <=> *",[Object(l.i)("@*",Object(l.f)(),{optional:!0})])])};let w=(()=>{class t{constructor(){this.changes=new a.a,this.sortButtonLabel=t=>"Change sorting for "+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const S={provide:w,deps:[[new i.C,new i.L,w]],useFactory:function(t){return t||new w}};class A{}const C=Object(r.z)(A);let x=(()=>{class t extends C{constructor(t,e,n,i,s,r){super(),this._intl=t,this._sort=n,this._columnDef=i,this._focusMonitor=s,this._elementRef=r,this._showIndicatorHint=!1,this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._rerenderSubscription=Object(c.a)(n.sortChange,n._stateChanges,t.changes).subscribe(()=>{this._isSorted()&&this._updateArrowDirection(),!this._isSorted()&&this._viewState&&"active"===this._viewState.toState&&(this._disableViewStateAnimation=!1,this._setAnimationTransitionState({fromState:"active",toState:this._arrowDirection})),e.markForCheck()})}get disableClear(){return this._disableClear}set disableClear(t){this._disableClear=Object(s.c)(t)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>this._setIndicatorHintVisible(!!t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}_toggleOnInteraction(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);const t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}_handleClick(){this._isDisabled()||this._toggleOnInteraction()}_handleKeydown(t){this._isDisabled()||t.keyCode!==o.o&&t.keyCode!==o.g||(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}_getArrowDirectionState(){return`${this._isSorted()?"active-":""}${this._arrowDirection}`}_getArrowViewState(){const t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState}_updateArrowDirection(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(w),i.Mb(i.h),i.Mb(b,8),i.Mb("MAT_SORT_HEADER_COLUMN_DEF",8),i.Mb(u.h),i.Mb(i.l))},t.\u0275cmp=i.Gb({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&i.Zb("click",(function(){return e._handleClick()}))("keydown",(function(t){return e._handleKeydown(t)}))("mouseenter",(function(){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(){return e._setIndicatorHintVisible(!1)})),2&t&&(i.Cb("aria-sort",e._getAriaSortAttribute()),i.Eb("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[i.yb],attrs:d,ngContentSelectors:f,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(i.ic(),i.Sb(0,"div",0),i.Sb(1,"div",1),i.hc(2),i.Rb(),i.Cc(3,p,6,6,"div",2),i.Rb()),2&t&&(i.Eb("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),i.Cb("tabindex",e._isDisabled()?null:0),i.Bb(3),i.jc("ngIf",e._renderArrow()))},directives:[h.l],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[v.indicator,v.leftPointer,v.rightPointer,v.arrowOpacity,v.arrowPosition,v.allowChildren]},changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:[S],imports:[[h.c]]}),t})()},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return r}));var i=n("HDdC");const s=new i.a(t=>t.complete());function r(t){return t?function(t){return new i.a(e=>t.schedule(()=>e.complete()))}(t):s}},FKr1:function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return _})),n.d(e,"c",(function(){return O})),n.d(e,"d",(function(){return V})),n.d(e,"e",(function(){return R})),n.d(e,"f",(function(){return bt})),n.d(e,"g",(function(){return ct})),n.d(e,"h",(function(){return ut})),n.d(e,"i",(function(){return J})),n.d(e,"j",(function(){return w})),n.d(e,"k",(function(){return U})),n.d(e,"l",(function(){return W})),n.d(e,"m",(function(){return N})),n.d(e,"n",(function(){return pt})),n.d(e,"o",(function(){return mt})),n.d(e,"p",(function(){return ht})),n.d(e,"q",(function(){return et})),n.d(e,"r",(function(){return nt})),n.d(e,"s",(function(){return $})),n.d(e,"t",(function(){return tt})),n.d(e,"u",(function(){return Z})),n.d(e,"v",(function(){return ft})),n.d(e,"w",(function(){return gt})),n.d(e,"x",(function(){return A})),n.d(e,"y",(function(){return C})),n.d(e,"z",(function(){return S})),n.d(e,"A",(function(){return E})),n.d(e,"B",(function(){return D})),n.d(e,"C",(function(){return x})),n.d(e,"D",(function(){return K}));var i=n("fXoL"),s=n("u47x"),r=n("cH1L");const o=new i.Q("10.2.4");var a=n("ofXK"),c=n("8LU1"),l=n("XNiG"),h=n("HDdC"),u=n("nLfN"),d=n("JX91"),p=n("R1ws"),f=n("FtGj");function g(t,e){if(1&t&&i.Nb(0,"mat-pseudo-checkbox",3),2&t){const t=i.dc();i.jc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const m=["*"];let b=(()=>{class t{}return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t})(),_=(()=>{class t{}return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t})();const y=new i.Q("10.2.4"),v=new i.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let w=(()=>{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)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Object(i.X)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const i=getComputedStyle(n);i&&"none"!==i.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&y.full!==o.full&&console.warn("The Angular Material version ("+y.full+") does not match the Angular CDK version ("+o.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)(i.Wb(s.j),i.Wb(v,8),i.Wb(a.d,8))},imports:[[r.a],r.a]}),t})();function S(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(c.c)(t)}}}function A(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 C(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(c.c)(t)}}}function x(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(c.f)(t):this.defaultTabIndex}}}function E(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new l.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())}}}function D(t){return class extends t{constructor(...t){super(...t),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.a(t=>{this._isInitialized?this._notifySubscriber(t):this._pendingSubscribers.push(t)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(t){t.next(),t.complete()}}}const k=new i.s("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(i.W)(i.w)}});class O{constructor(){this._localeChanges=new l.a,this.localeChanges=this._localeChanges}getValidDateOrNull(t){return this.isDateInstance(t)&&this.isValid(t)?t:null}deserialize(t){return null==t||this.isDateInstance(t)&&this.isValid(t)?t:this.invalid()}setLocale(t){this.locale=t,this._localeChanges.next()}compareDate(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)}sameDate(t,e){if(t&&e){let n=this.isValid(t),i=this.isValid(e);return n&&i?!this.compareDate(t,e):n==i}return t==e}clampDate(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t}}const R=new i.s("mat-date-formats");let I;try{I="undefined"!=typeof Intl}catch(_t){I=!1}const T={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},F=M(31,t=>String(t+1)),P={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},j=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function M(t,e){const n=Array(t);for(let i=0;i{class t extends O{constructor(t,e){super(),this.useUtcForDisplay=!0,super.setLocale(t),this.useUtcForDisplay=!e.TRIDENT,this._clampDate=e.TRIDENT||e.EDGE}getYear(t){return t.getFullYear()}getMonth(t){return t.getMonth()}getDate(t){return t.getDate()}getDayOfWeek(t){return t.getDay()}getMonthNames(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return M(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return T[t]}getDateNames(){if(I){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return M(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return F}getDayOfWeekNames(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return M(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return P[t]}getYearName(t){if(I){const e=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._stripDirectionalityCharacters(this._format(e,t))}return String(this.getYear(t))}getFirstDayOfWeek(){return 0}getNumDaysInMonth(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))}clone(t){return new Date(t.getTime())}createDate(t,e,n){let i=this._createDateWithOverflow(t,e,n);return i.getMonth(),i}today(){return new Date}parse(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null}format(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(I){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});const n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}addCalendarDays(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}toIso8601(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}deserialize(t){if("string"==typeof t){if(!t)return null;if(j.test(t)){let e=new Date(t);if(this.isValid(e))return e}}return super.deserialize(t)}isDateInstance(t){return t instanceof Date}isValid(t){return!isNaN(t.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(t,e,n){const i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(k,8),i.Wb(u.a))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})(),H=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:[{provide:O,useClass:B}],imports:[[u.b]]}),t})();const L={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let N=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:[{provide:R,useValue:L}],imports:[[H]]}),t})(),V=(()=>{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(i.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=i.Hb({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function K(t,e,n="mat"){t.changes.pipe(Object(d.a)(t)).subscribe(({length:t})=>{z(e,n+"-2-line",!1),z(e,n+"-3-line",!1),z(e,n+"-multi-line",!1),2===t||3===t?z(e,`${n}-${t}-line`,!0):t>3&&z(e,n+"-multi-line",!0)})}function z(t,e,n){const i=t.nativeElement.classList;n?i.add(e):i.remove(e)}let W=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[w],w]}),t})();class q{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const G={enterDuration:450,exitDuration:400},Y=Object(u.f)({passive:!0}),Q=["mousedown","touchstart"],X=["mouseup","mouseleave","touchend","touchcancel"];class Z{constructor(t,e,n,i){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,i.isBrowser&&(this._containerElement=Object(c.e)(n))}fadeInRipple(t,e,n={}){const i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},G),n.animation);n.centered&&(t=i.left+i.width/2,e=i.top+i.height/2);const r=n.radius||function(t,e,n){const i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),s=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+s*s)}(t,e,i),o=t-i.left,a=e-i.top,c=s.enterDuration,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=o-r+"px",l.style.top=a-r+"px",l.style.height=2*r+"px",l.style.width=2*r+"px",null!=n.color&&(l.style.backgroundColor=n.color),l.style.transitionDuration=c+"ms",this._containerElement.appendChild(l),window.getComputedStyle(l).getPropertyValue("opacity"),l.style.transform="scale(1)";const h=new q(this,l,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},c),h}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,i=Object.assign(Object.assign({},G),t.config.animation);n.style.transitionDuration=i.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(c.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Q))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(X),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(s.l)(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,Y)})})}_removeTriggerEvents(){this._triggerElement&&(Q.forEach(t=>{this._triggerElement.removeEventListener(t,this,Y)}),this._pointerUpEventsRegistered&&X.forEach(t=>{this._triggerElement.removeEventListener(t,this,Y)}))}}const J=new i.s("mat-ripple-global-options");let $=(()=>{class t{constructor(t,e,n,i,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Z(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)(i.Mb(i.l),i.Mb(i.B),i.Mb(u.a),i.Mb(J,8),i.Mb(p.a,8))},t.\u0275dir=i.Hb({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&i.Eb("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})(),tt=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[w,u.b],w]}),t})(),et=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(p.a,8))},t.\u0275cmp=i.Gb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&i.Eb("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})(),nt=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)}}),t})();class it{}const st=S(it);let rt=0,ot=(()=>{class t extends st{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+rt++}}return t.\u0275fac=function(e){return at(e||t)},t.\u0275dir=i.Hb({type:t,inputs:{label:"label"},features:[i.yb]}),t})();const at=i.Ub(ot),ct=new i.s("MatOptgroup");let lt=0;class ht{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const ut=new i.s("MAT_OPTION_PARENT_COMPONENT");let dt=(()=>{class t{constructor(t,e,n,s){this._element=t,this._changeDetectorRef=e,this._parent=n,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+lt++,this.onSelectionChange=new i.o,this._stateChanges=new l.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(c.c)(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!==f.g&&t.keyCode!==f.o||Object(f.t)(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 ht(this,t))}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.l),i.Mb(i.h),i.Mb(void 0),i.Mb(ot))},t.\u0275dir=i.Hb({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.l),i.Mb(i.h),i.Mb(ut,8),i.Mb(ct,8))},t.\u0275cmp=i.Gb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&i.Zb("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(i.Vb("id",e.id),i.Cb("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),i.Eb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[i.yb],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&&(i.ic(),i.Cc(0,g,1,2,"mat-pseudo-checkbox",0),i.Sb(1,"span",1),i.hc(2),i.Rb(),i.Nb(3,"div",2)),2&t&&(i.jc("ngIf",e.multiple),i.Bb(3),i.jc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[a.l,$,et],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 ft(t,e,n){if(n.length){let i=e.toArray(),s=n.toArray(),r=0;for(let e=0;en+i?Math.max(0,t-i+e):n}let mt=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[tt,a.c,nt]]}),t})();const bt=new i.s("mat-label-global-options")},FtGj:function(t,e,n){"use strict";n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return w})),n.d(e,"d",(function(){return m})),n.d(e,"e",(function(){return g})),n.d(e,"f",(function(){return h})),n.d(e,"g",(function(){return r})),n.d(e,"h",(function(){return o})),n.d(e,"i",(function(){return u})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return _})),n.d(e,"l",(function(){return l})),n.d(e,"m",(function(){return c})),n.d(e,"n",(function(){return f})),n.d(e,"o",(function(){return a})),n.d(e,"p",(function(){return s})),n.d(e,"q",(function(){return p})),n.d(e,"r",(function(){return v})),n.d(e,"s",(function(){return b})),n.d(e,"t",(function(){return S}));const i=8,s=9,r=13,o=27,a=32,c=33,l=34,h=35,u=36,d=37,p=38,f=39,g=40,m=46,b=48,_=57,y=65,v=90,w=188;function S(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 h})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return u}));var i=n("8LU1"),s=n("fXoL"),r=n("HDdC"),o=n("XNiG"),a=n("Kj3r");let c=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),l=(()=>{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(i.e)(t);return new r.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)(s.Wb(c))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(c))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new s.o,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(i.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(i.f)(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(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(l),s.Mb(s.l),s.Mb(s.B))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),u=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[c]}),t})()},GyhO:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("LRne"),s=n("0EUg");function r(...t){return Object(s.a)()(Object(i.a)(...t))}},HDdC:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("7o/Q"),s=n("2QA8"),r=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),c=n("2fFW");let l=(()=>{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 i.a)return t;if(t[s.a])return t[s.a]()}return t||e||n?new i.a(t,e,n):new i.a(r.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof i.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=h(e))((e,n)=>{let i;i=this.subscribe(e=>{try{t(e)}catch(s){n(s),i&&i.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=h(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function h(t){if(t||(t=c.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 i}));const i=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IjjT:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));let i=(()=>{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 s extends i{constructor(t,e=i.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.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 i=n("7o/Q"),s=n("4I5i"),r=n("EY2u");function o(t){return e=>0===t?Object(r.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends i.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 o}));var i=n("l7GE"),s=n("51Dv"),r=n("ZUHj");function o(t){return function(e){const n=new a(t),i=e.lift(n);return n.caught=i}}class a{constructor(t){this.selector=t}call(t,e){return e.subscribe(new c(t,this.selector,this.caught))}}class c extends i.a{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 i=new s.a(this,void 0,void 0);this.add(i);const o=Object(r.a)(this,n,void 0,void 0,i);o!==i&&this.add(o)}}}},JX91:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("GyhO"),s=n("z+Ro");function r(...t){const e=t[t.length-1];return Object(s.a)(e)?(t.pop(),n=>Object(i.a)(t,n,e)):e=>Object(i.a)(t,e)}},Kj3r:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("7o/Q"),s=n("D0XW");function r(t,e=s.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 i.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(c,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 c(t){t.debouncedNext()}},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("z+Ro"),s=n("yCtX"),r=n("jZKg");function o(...t){let e=t[t.length-1];return Object(i.a)(e)?(t.pop(),Object(r.a)(t,e)):Object(s.a)(t)}},LgUO:function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",(function(){return AbstractValidationHandler})),__webpack_require__.d(__webpack_exports__,"b",(function(){return OAuthModule})),__webpack_require__.d(__webpack_exports__,"c",(function(){return OAuthService}));var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("fXoL"),_angular_common__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("ofXK"),_angular_common_http__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("tk/3"),tslib__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("mrSG"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("XNiG"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("LRne"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("Cfvw"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("Nv8m"),rxjs__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("z6cu"),rxjs__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("itXk"),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("VRyK"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("pLZG"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("vkgz"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("Kj3r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("3E0/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("eIep"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("lJxs"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("SxV6"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("JIr8"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("tS1D"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("IzEk"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("5+tZ");class LoginOptions{constructor(){this.preventClearHashAfterLogin=!1}}class OAuthLogger{}class OAuthStorage{}let MemoryStorage=(()=>{class t{constructor(){this.data=new Map}getItem(t){return this.data.get(t)}removeItem(t){this.data.delete(t)}setItem(t,e){this.data.set(t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ib({token:t,factory:t.\u0275fac}),t})();class ReceivedTokens{}function b64DecodeUnicode(t){const e=t.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(e).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join(""))}function base64UrlEncode(t){return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}class ValidationHandler{}class AbstractValidationHandler{validateAtHash(t){return Object(tslib__WEBPACK_IMPORTED_MODULE_3__.a)(this,void 0,void 0,(function*(){let e=this.inferHashAlgorithm(t.idTokenHeader),n=yield this.calcHash(t.accessToken,e),i=base64UrlEncode(n.substr(0,n.length/2)),s=t.idTokenClaims.at_hash.replace(/=/g,"");return i!==s&&(console.error("exptected at_hash: "+i),console.error("actual at_hash: "+s)),i===s}))}inferHashAlgorithm(t){let e=t.alg;if(!e.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+e);return"sha-"+e.substr(2)}}let UrlHelperService=(()=>{class t{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),this.parseQueryString(e)}parseQueryString(t){const e={};let n,i,s,r,o,a,c;if(null===t)return e;n=t.split("&");for(let l=0;l{location.href=t},t&&Object.assign(this,t)}}class WebHttpUrlEncodingCodec{encodeKey(t){return encodeURIComponent(t)}encodeValue(t){return encodeURIComponent(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&__webpack_require__("PDX0"),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(n){return new Sha256(e,!0).update(n)[t]()}};const \u02750=createOutputMethod;var createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var n=0;n>6,o[c++]=128|63&r):r<55296||r>=57344?(o[c++]=224|r>>12,o[c++]=128|r>>6&63,o[c++]=128|63&r):(r=65536+((1023&r)<<10|1023&t.charCodeAt(++i)),o[c++]=240|r>>18,o[c++]=128|r>>12&63,o[c++]=128|r>>6&63,o[c++]=128|63&r);t=o}else{if("object"!==s)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var l=[],h=[];for(i=0;i<64;++i){var u=t[i]||0;l[i]=92^u,h[i]=54^u}Sha256.call(this,e,n),this.update(h),this.oKeyPad=l,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(t){if(!this.finalized){var e,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var i,s,r=0,o=t.length,a=this.blocks;r>2]|=t[r]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(a[s>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=64?(this.block=a[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,n,i,s,r,o=this.h0,a=this.h1,c=this.h2,l=this.h3,h=this.h4,u=this.h5,d=this.h6,p=this.h7,f=this.blocks;for(t=16;t<64;++t)f[t]=f[t-16]+(((e=f[t-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+f[t-7]+(((e=f[t-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)<<0;for(r=a&c,t=0;t<64;t+=4)this.first?(this.is224?(n=300032,p=(e=f[0]-1413257819)-150054599<<0,l=e+24177077<<0):(n=704751109,p=(e=f[0]-210244248)-1521486534<<0,l=e+143694565<<0),this.first=!1):(p=l+(e=p+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&u^~h&d)+K[t]+f[t])<<0,l=e+(((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((n=o&a)^o&c^r))<<0),d=c+(e=d+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&h^~p&u)+K[t+1]+f[t+1])<<0,c=e+(((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+((i=l&o)^l&a^n))<<0,u=a+(e=u+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&p^~d&h)+K[t+2]+f[t+2])<<0,a=e+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((s=c&l)^c&o^i))<<0,h=o+(e=h+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&d^~u&p)+K[t+3]+f[t+3])<<0,o=e+(((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+((r=a&c)^a&l^s))<<0;this.h0=this.h0+o<<0,this.h1=this.h1+a<<0,this.h2=this.h2+c<<0,this.h3=this.h3+l<<0,this.h4=this.h4+h<<0,this.h5=this.h5+u<<0,this.h6=this.h6+d<<0,this.h7=this.h7+p<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3,s=this.h4,r=this.h5,o=this.h6,a=this.h7,c=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o];return this.is224||(c+=HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,i=this.h3,s=this.h4,r=this.h5,o=this.h6,a=this.h7,c=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,s>>24&255,s>>16&255,s>>8&255,255&s,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||c.push(a>>24&255,a>>16&255,a>>8&255,255&a),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);class HashHandler{}let DefaultHashHandler=(()=>{class t{calcHash(t,e){return Object(tslib__WEBPACK_IMPORTED_MODULE_3__.a)(this,void 0,void 0,(function*(){const e=exports.array(t);return this.toHashString2(e)}))}toHashString2(t){let e="";for(let n of t)e+=String.fromCharCode(n);return e}toHashString(t){const e=new Uint8Array(t);let n="";for(let i of e)n+=String.fromCharCode(i);return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ib({token:t,factory:t.\u0275fac}),t})(),OAuthService=(()=>{class t extends AuthConfig{constructor(t,e,n,i,s,r,o,a,c){var l;super(),this.ngZone=t,this.http=e,this.config=s,this.urlHelper=r,this.logger=o,this.crypto=a,this.discoveryDocumentLoaded=!1,this.state="",this.eventsSubject=new rxjs__WEBPACK_IMPORTED_MODULE_4__.a,this.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_4__.a,this.grantTypesSupported=[],this.inImplicitFlow=!1,this.saveNoncesInLocalStorage=!1,this.debug("angular-oauth2-oidc v10"),this.document=c,s||(s={}),this.discoveryDocumentLoaded$=this.discoveryDocumentLoadedSubject.asObservable(),this.events=this.eventsSubject.asObservable(),i&&(this.tokenValidationHandler=i),s&&this.configure(s);try{n?this.setStorage(n):"undefined"!=typeof sessionStorage&&this.setStorage(sessionStorage)}catch(h){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",h)}if("undefined"!=typeof window&&void 0!==window.localStorage){const t=null===(l=null===window||void 0===window?void 0:window.navigator)||void 0===l?void 0:l.userAgent;((null==t?void 0:t.includes("MSIE "))||(null==t?void 0:t.includes("Trident")))&&(this.saveNoncesInLocalStorage=!0)}this.setupRefreshTimer()}configure(t){Object.assign(this,new AuthConfig,t),this.config=Object.assign({},new AuthConfig,t),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}configChanged(){this.setupRefreshTimer()}restartSessionChecksIfStillLoggedIn(){this.hasValidIdToken()&&this.initSessionCheck()}restartRefreshTimerIfStillLoggedIn(){this.setupExpirationTimers()}setupSessionCheck(){this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>"token_received"===t.type)).subscribe(t=>{this.initSessionCheck()})}setupAutomaticSilentRefresh(t={},e,n=!0){let i=!0;this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(t=>{"token_received"===t.type?i=!0:"logout"===t.type&&(i=!1)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>"token_expires"===t.type),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(1e3)).subscribe(s=>{null!=e&&"any"!==e&&s.info!==e||!i||this.refreshInternal(t,n).catch(t=>{this.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}refreshInternal(t,e){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(t,e):this.refreshToken()}loadDiscoveryDocumentAndTryLogin(t=null){return this.loadDiscoveryDocument().then(e=>this.tryLogin(t))}loadDiscoveryDocumentAndLogin(t=null){return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(e=>!(!this.hasValidIdToken()||!this.hasValidAccessToken())||(this.initLoginFlow("string"==typeof t.state?t.state:""),!1))}debug(...t){this.showDebugInformation&&this.logger.debug.apply(this.logger,t)}validateUrlFromDiscoveryDocument(t){const e=[],n=this.validateUrlForHttps(t),i=this.validateUrlAgainstIssuer(t);return n||e.push("https for all urls required. Also for urls received by discovery."),i||e.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),e}validateUrlForHttps(t){if(!t)return!0;const e=t.toLowerCase();return!1===this.requireHttps||!(!e.match(/^http:\/\/localhost($|[:\/])/)&&!e.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps)||e.startsWith("https://")}assertUrlNotNullAndCorrectProtocol(t,e){if(!t)throw new Error(`'${e}' should not be null`);if(!this.validateUrlForHttps(t))throw new Error(`'${e}' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).`)}validateUrlAgainstIssuer(t){return!this.strictDiscoveryDocumentValidation||!t||t.toLowerCase().startsWith(this.issuer.toLowerCase())}setupRefreshTimer(){"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>"token_received"===t.type)).subscribe(t=>{this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}setupExpirationTimers(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}setupAccessTokenTimer(){const t=this.getAccessTokenExpiration(),e=this.getAccessTokenStoredAt(),n=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.accessTokenTimeoutSubscription=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(new OAuthInfoEvent("token_expires","access_token")).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(n)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}setupIdTokenTimer(){const t=this.getIdTokenExpiration(),e=this.getIdTokenStoredAt(),n=this.calcTimeout(e,t);this.ngZone.runOutsideAngular(()=>{this.idTokenTimeoutSubscription=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(new OAuthInfoEvent("token_expires","id_token")).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(n)).subscribe(t=>{this.ngZone.run(()=>{this.eventsSubject.next(t)})})})}stopAutomaticRefresh(){this.clearAccessTokenTimer(),this.clearIdTokenTimer()}clearAccessTokenTimer(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}clearIdTokenTimer(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}calcTimeout(t,e){const n=Date.now();return Math.max(0,(e-t)*this.timeoutFactor-(n-t))}setStorage(t){this._storage=t,this.configChanged()}loadDiscoveryDocument(t=null){return new Promise((e,n)=>{t||((t=this.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),this.validateUrlForHttps(t)?this.http.get(t).subscribe(t=>{if(!this.validateDiscoveryDocument(t))return this.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void n("discovery_document_validation_error");this.loginUrl=t.authorization_endpoint,this.logoutUrl=t.end_session_endpoint||this.logoutUrl,this.grantTypesSupported=t.grant_types_supported,this.issuer=t.issuer,this.tokenEndpoint=t.token_endpoint,this.userinfoEndpoint=t.userinfo_endpoint||this.userinfoEndpoint,this.jwksUri=t.jwks_uri,this.sessionCheckIFrameUrl=t.check_session_iframe||this.sessionCheckIFrameUrl,this.discoveryDocumentLoaded=!0,this.discoveryDocumentLoadedSubject.next(t),this.revocationEndpoint=t.revocation_endpoint,this.sessionChecksEnabled&&this.restartSessionChecksIfStillLoggedIn(),this.loadJwks().then(n=>{const i=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:n});this.eventsSubject.next(i),e(i)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),n(t)})},t=>{this.logger.error("error loading discovery document",t),this.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),n(t)}):n("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}loadJwks(){return new Promise((t,e)=>{this.jwksUri?this.http.get(this.jwksUri).subscribe(e=>{this.jwks=e,this.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(e)},t=>{this.logger.error("error loading jwks",t),this.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),e(t)}):t(null)})}validateDiscoveryDocument(t){let e;return this.skipIssuerCheck||t.issuer===this.issuer?(e=this.validateUrlFromDiscoveryDocument(t.authorization_endpoint),e.length>0?(this.logger.error("error validating authorization_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.end_session_endpoint),e.length>0?(this.logger.error("error validating end_session_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.token_endpoint),e.length>0&&this.logger.error("error validating token_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.revocation_endpoint),e.length>0&&this.logger.error("error validating revocation_endpoint in discovery document",e),e=this.validateUrlFromDiscoveryDocument(t.userinfo_endpoint),e.length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",e),!1):(e=this.validateUrlFromDiscoveryDocument(t.jwks_uri),e.length>0?(this.logger.error("error validating jwks_uri in discovery document",e),!1):(this.sessionChecksEnabled&&!t.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0))))):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+t.issuer),!1)}fetchTokenUsingPasswordFlowAndLoadUserProfile(t,e,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.d){return this.fetchTokenUsingPasswordFlow(t,e,n).then(()=>this.loadUserProfile())}loadUserProfile(){if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise((t,e)=>{const n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.d).set("Authorization","Bearer "+this.getAccessToken());this.http.get(this.userinfoEndpoint,{headers:n}).subscribe(n=>{this.debug("userinfo received",n);const i=this.getIdentityClaims()||{};this.skipSubjectCheck||!this.oidc||i.sub&&n.sub===i.sub?(n=Object.assign({},i,n),this._storage.setItem("id_token_claims_obj",JSON.stringify(n)),this.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(n)):e("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to false")},t=>{this.logger.error("error loading user info",t),this.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),e(t)})})}fetchTokenUsingPasswordFlow(t,e,n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.d){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((i,s)=>{let r=new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.e({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","password").set("scope",this.scope).set("username",t).set("password",e);if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);n=n.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(r=r.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(r=r.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const t of Object.getOwnPropertyNames(this.customQueryParams))r=r.set(t,this.customQueryParams[t]);n=n.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(this.tokenEndpoint,r,{headers:n}).subscribe(t=>{this.debug("tokenResponse",t),this.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,t.scope,this.extractRecognizedCustomParameters(t)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),i(t)},t=>{this.logger.error("Error performing password flow",t),this.eventsSubject.next(new OAuthErrorEvent("token_error",t)),s(t)})})}refreshToken(){return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise((t,e)=>{let n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.e).set("grant_type","refresh_token").set("scope",this.scope).set("refresh_token",this._storage.getItem("refresh_token")),i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.d).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);i=i.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(n=n.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(n=n.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const s of Object.getOwnPropertyNames(this.customQueryParams))n=n.set(s,this.customQueryParams[s]);this.http.post(this.tokenEndpoint,n,{headers:i}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(t=>t.id_token?Object(rxjs__WEBPACK_IMPORTED_MODULE_6__.a)(this.processIdToken(t.id_token,t.access_token,!0)).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(t=>this.storeIdToken(t)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(e=>t)):Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(t))).subscribe(e=>{this.debug("refresh tokenResponse",e),this.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,e.scope,this.extractRecognizedCustomParameters(e)),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),t(e)},t=>{this.logger.error("Error refreshing token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),e(t)})})}removeSilentRefreshEventListener(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}setupSilentRefreshEventListener(){this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=t=>{const e=this.processMessageEventMessage(t);this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri||this.redirectUri}).catch(t=>this.debug("tryLogin during silent refresh failed",t))},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}silentRefresh(t={},e=!0){const n=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(t.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");const i=this.document.getElementById(this.silentRefreshIFrameName);i&&this.document.body.removeChild(i),this.silentRefreshSubject=n.sub;const s=this.document.createElement("iframe");s.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,e,t).then(t=>{s.setAttribute("src",t),this.silentRefreshShowIFrame||(s.style.display="none"),this.document.body.appendChild(s)});const r=this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>t instanceof OAuthErrorEvent),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)()),o=this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>"token_received"===t.type),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)()),a=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(this.silentRefreshTimeout));return Object(rxjs__WEBPACK_IMPORTED_MODULE_7__.a)([r,o,a]).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(t=>{if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),this.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),this.eventsSubject.next(t)),t})).toPromise()}initImplicitFlowInPopup(t){return this.initLoginFlowInPopup(t)}initLoginFlowInPopup(t){return t=t||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(e=>new Promise((n,i)=>{let s,r=window.open(e,"_blank",this.calculatePopupFeatures(t));r?s=window.setInterval(()=>{r&&!r.closed||(o(),i(new OAuthErrorEvent("popup_closed",{})))},500):i(new OAuthErrorEvent("popup_blocked",{}));const o=()=>{window.clearInterval(s),window.removeEventListener("message",a),null!==r&&r.close(),r=null},a=t=>{const e=this.processMessageEventMessage(t);e&&null!==e?this.tryLogin({customHashFragment:e,preventClearHashAfterLogin:!0,customRedirectUri:this.silentRefreshRedirectUri}).then(()=>{o(),n()},t=>{o(),i(t)}):console.log("false event firing")};window.addEventListener("message",a)}))}calculatePopupFeatures(t){const e=t.height||470,n=t.width||500,i=window.screenLeft+(window.outerWidth-n)/2;return`location=no,toolbar=no,width=${n},height=${e},top=${window.screenTop+(window.outerHeight-e)/2},left=${i}`}processMessageEventMessage(t){let e="#";if(this.silentRefreshMessagePrefix&&(e+=this.silentRefreshMessagePrefix),!t||!t.data||"string"!=typeof t.data)return;const n=t.data;return n.startsWith(e)?"#"+n.substr(e.length):void 0}canPerformSessionCheck(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.getSessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}setupSessionCheckEventListener(){this.removeSessionCheckEventListener(),this.sessionCheckEventListener=t=>{const e=t.origin.toLowerCase(),n=this.issuer.toLowerCase();if(this.debug("sessionCheckEventListener"),n.startsWith(e)){switch(t.data){case"unchanged":this.handleSessionUnchanged();break;case"changed":this.ngZone.run(()=>{this.handleSessionChange()});break;case"error":this.ngZone.run(()=>{this.handleSessionError()})}this.debug("got info from session check inframe",t)}else this.debug("sessionCheckEventListener","wrong origin",e,"expected",n,"event",t)},this.ngZone.runOutsideAngular(()=>{window.addEventListener("message",this.sessionCheckEventListener)})}handleSessionUnchanged(){this.debug("session check","session unchanged")}handleSessionChange(){this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(t=>this.debug("silent refresh failed after session changed")),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(t=>{this.debug("token refresh after session change worked")}).catch(t=>{this.debug("token refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)})}waitForSilentRefreshAfterSessionChange(){this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>"silently_refreshed"===t.type||"silent_refresh_timeout"===t.type||"silent_refresh_error"===t.type),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)()).subscribe(t=>{"silently_refreshed"!==t.type&&(this.debug("silent refresh did not work after session changed"),this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0))})}handleSessionError(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}removeSessionCheckEventListener(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}initSessionCheck(){if(!this.canPerformSessionCheck())return;const t=this.document.getElementById(this.sessionCheckIFrameName);t&&this.document.body.removeChild(t);const e=this.document.createElement("iframe");e.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),e.setAttribute("src",this.sessionCheckIFrameUrl),e.style.display="none",this.document.body.appendChild(e),this.startSessionCheckTimer()}startSessionCheckTimer(){this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(()=>{this.sessionCheckTimer=setInterval(this.checkSession.bind(this),this.sessionCheckIntervall)})}stopSessionCheckTimer(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}checkSession(){const t=this.document.getElementById(this.sessionCheckIFrameName);t||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);const e=this.getSessionState();e||this.stopSessionCheckTimer(),t.contentWindow.postMessage(this.clientId+" "+e,this.issuer)}createLoginUrl(t="",e="",n="",i=!1,s={}){return Object(tslib__WEBPACK_IMPORTED_MODULE_3__.a)(this,void 0,void 0,(function*(){let r;r=n||this.redirectUri;const o=yield this.createAndSaveNonce();if(t=t?o+this.config.nonceStateSeparator+encodeURIComponent(t):o,!this.requestAccessToken&&!this.oidc)throw new Error("Either requestAccessToken or oidc or both must be true");this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token";const a=this.loginUrl.indexOf("?")>-1?"&":"?";let c=this.scope;this.oidc&&!c.match(/(^|\s)openid($|\s)/)&&(c="openid "+c);let l=this.loginUrl+a+"response_type="+encodeURIComponent(this.responseType)+"&client_id="+encodeURIComponent(this.clientId)+"&state="+encodeURIComponent(t)+"&redirect_uri="+encodeURIComponent(r)+"&scope="+encodeURIComponent(c);if(this.responseType.includes("code")&&!this.disablePKCE){const[t,e]=yield this.createChallangeVerifierPairForPKCE();this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",e):this._storage.setItem("PKCE_verifier",e),l+="&code_challenge="+t,l+="&code_challenge_method=S256"}e&&(l+="&login_hint="+encodeURIComponent(e)),this.resource&&(l+="&resource="+encodeURIComponent(this.resource)),this.oidc&&(l+="&nonce="+encodeURIComponent(o)),i&&(l+="&prompt=none");for(const t of Object.keys(s))l+="&"+encodeURIComponent(t)+"="+encodeURIComponent(s[t]);if(this.customQueryParams)for(const t of Object.getOwnPropertyNames(this.customQueryParams))l+="&"+t+"="+encodeURIComponent(this.customQueryParams[t]);return l}))}initImplicitFlowInternal(t="",e=""){if(this.inImplicitFlow)return;if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");let n={},i=null;"string"==typeof e?i=e:"object"==typeof e&&(n=e),this.createLoginUrl(t,i,null,!1,n).then(this.config.openUri).catch(t=>{console.error("Error in initImplicitFlow",t),this.inImplicitFlow=!1})}initImplicitFlow(t="",e=""){""!==this.loginUrl?this.initImplicitFlowInternal(t,e):this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>"discovery_document_loaded"===t.type)).subscribe(n=>this.initImplicitFlowInternal(t,e))}resetImplicitFlow(){this.inImplicitFlow=!1}callOnTokenReceivedIfExists(t){const e=this;if(t.onTokenReceived){const n={idClaims:e.getIdentityClaims(),idToken:e.getIdToken(),accessToken:e.getAccessToken(),state:e.state};t.onTokenReceived(n)}}storeAccessTokenResponse(t,e,n,i,s){if(this._storage.setItem("access_token",t),i&&!Array.isArray(i)?this._storage.setItem("granted_scopes",JSON.stringify(i.split("+"))):i&&Array.isArray(i)&&this._storage.setItem("granted_scopes",JSON.stringify(i)),this._storage.setItem("access_token_stored_at",""+Date.now()),n){const t=1e3*n,e=(new Date).getTime()+t;this._storage.setItem("expires_at",""+e)}e&&this._storage.setItem("refresh_token",e),s&&s.forEach((t,e)=>{this._storage.setItem(e,t)})}tryLogin(t=null){return"code"===this.config.responseType?this.tryLoginCodeFlow(t).then(t=>!0):this.tryLoginImplicitFlow(t)}parseQueryString(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):{}}tryLoginCodeFlow(t=null){const e=(t=t||{}).customHashFragment?t.customHashFragment.substring(1):window.location.search,n=this.getCodePartsFromUrl(e),i=n.code,s=n.state,r=n.session_state;if(!t.preventClearHashAfterLogin){const t=location.href.replace(/[&\?]code=[^&\$]*/,"").replace(/[&\?]scope=[^&\$]*/,"").replace(/[&\?]state=[^&\$]*/,"").replace(/[&\?]session_state=[^&\$]*/,"");history.replaceState(null,window.name,t)}let[o,a]=this.parseState(s);if(this.state=a,n.error){this.debug("error trying to login"),this.handleLoginError({},n);const t=new OAuthErrorEvent("code_error",{},n);return this.eventsSubject.next(t),Promise.reject(t)}if(!o)return Promise.resolve();if(!this.validateNonce(o)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.storeSessionState(r),i?this.getTokenFromCode(i,t).then(t=>null):Promise.resolve()}getCodePartsFromUrl(t){return t&&0!==t.length?("?"===t.charAt(0)&&(t=t.substr(1)),this.urlHelper.parseQueryString(t)):this.urlHelper.getHashFragmentParams()}getTokenFromCode(t,e){let n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.e).set("grant_type","authorization_code").set("code",t).set("redirect_uri",e.customRedirectUri||this.redirectUri);if(!this.disablePKCE){let t;t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"),t?n=n.set("code_verifier",t):console.warn("No PKCE verifier found in oauth storage!")}return this.fetchAndProcessToken(n)}fetchAndProcessToken(t){this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");let e=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.d).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);e=e.set("Authorization","Basic "+t)}return this.useHttpBasicAuth||(t=t.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(t=t.set("client_secret",this.dummyClientSecret)),new Promise((n,i)=>{if(this.customQueryParams)for(let e of Object.getOwnPropertyNames(this.customQueryParams))t=t.set(e,this.customQueryParams[e]);this.http.post(this.tokenEndpoint,t,{headers:e}).subscribe(t=>{this.debug("refresh tokenResponse",t),this.storeAccessTokenResponse(t.access_token,t.refresh_token,t.expires_in||this.fallbackAccessTokenExpirationTimeInSec,t.scope,this.extractRecognizedCustomParameters(t)),this.oidc&&t.id_token?this.processIdToken(t.id_token,t.access_token).then(e=>{this.storeIdToken(e),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t)}).catch(t=>{this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),console.error("Error validating tokens"),console.error(t),i(t)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),n(t))},t=>{console.error("Error getting token",t),this.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),i(t)})})}tryLoginImplicitFlow(t=null){let e;e=(t=t||{}).customHashFragment?this.urlHelper.getHashFragmentParams(t.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);const n=e.state;let[i,s]=this.parseState(n);if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(t,e);const n=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(n),Promise.reject(n)}const r=e.access_token,o=e.id_token,a=e.session_state,c=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!r)return Promise.resolve(!1);if(this.requestAccessToken&&!t.disableOAuth2StateCheck&&!n)return Promise.resolve(!1);if(this.oidc&&!o)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!a&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!t.disableOAuth2StateCheck&&!this.validateNonce(i)){const t=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(t),Promise.reject(t)}return this.requestAccessToken&&this.storeAccessTokenResponse(r,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,c),this.oidc?this.processIdToken(o,r).then(e=>t.validationHandler?t.validationHandler({accessToken:r,idClaims:e.idTokenClaims,idToken:e.idToken,state:n}).then(t=>e):e).then(e=>(this.storeIdToken(e),this.storeSessionState(a),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&(location.hash=""),this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.callOnTokenReceivedIfExists(t),this.inImplicitFlow=!1,!0)).catch(t=>(this.eventsSubject.next(new OAuthErrorEvent("token_validation_error",t)),this.logger.error("Error validating tokens"),this.logger.error(t),Promise.reject(t))):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&(location.hash=""),this.callOnTokenReceivedIfExists(t),Promise.resolve(!0))}parseState(t){let e=t,n="";if(t){const i=t.indexOf(this.config.nonceStateSeparator);i>-1&&(e=t.substr(0,i),n=t.substr(i+this.config.nonceStateSeparator.length))}return[e,n]}validateNonce(t){let e;return e=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),e===t||(console.error("Validating access_token failed, wrong state/nonce.",e,t),!1)}storeIdToken(t){this._storage.setItem("id_token",t.idToken),this._storage.setItem("id_token_claims_obj",t.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+t.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+Date.now())}storeSessionState(t){this._storage.setItem("session_state",t)}getSessionState(){return this._storage.getItem("session_state")}handleLoginError(t,e){t.onLoginError&&t.onLoginError(e),this.clearHashAfterLogin&&!t.preventClearHashAfterLogin&&(location.hash="")}processIdToken(t,e,n=!1){const i=t.split("."),s=b64DecodeUnicode(this.padBase64(i[0])),r=JSON.parse(s),o=b64DecodeUnicode(this.padBase64(i[1])),a=JSON.parse(o);let c;if(c=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(a.aud)){if(a.aud.every(t=>t!==this.clientId)){const t="Wrong audience: "+a.aud.join(",");return this.logger.warn(t),Promise.reject(t)}}else if(a.aud!==this.clientId){const t="Wrong audience: "+a.aud;return this.logger.warn(t),Promise.reject(t)}if(!a.sub){const t="No sub claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==a.sub){const t=`After refreshing, we got an id_token for another user (sub). Expected sub: ${this.silentRefreshSubject}, received sub: ${a.sub}`;return this.logger.warn(t),Promise.reject(t)}if(!a.iat){const t="No iat claim in id_token";return this.logger.warn(t),Promise.reject(t)}if(!this.skipIssuerCheck&&a.iss!==this.issuer){const t="Wrong issuer: "+a.iss;return this.logger.warn(t),Promise.reject(t)}if(!n&&a.nonce!==c){const t="Wrong nonce: "+a.nonce;return this.logger.warn(t),Promise.reject(t)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!a.at_hash){const t="An at_hash is needed!";return this.logger.warn(t),Promise.reject(t)}const l=Date.now(),h=1e3*a.iat,u=1e3*a.exp,d=1e3*(this.clockSkewInSec||600);if(h-d>=l||u+d<=l){const t="Token has expired";return console.error(t),console.error({now:l,issuedAtMSec:h,expiresAtMSec:u}),Promise.reject(t)}const p={accessToken:e,idToken:t,jwks:this.jwks,idTokenClaims:a,idTokenHeader:r,loadKeys:()=>this.loadJwks()};return this.disableAtHashCheck?this.checkSignature(p).then(e=>({idToken:t,idTokenClaims:a,idTokenClaimsJson:o,idTokenHeader:r,idTokenHeaderJson:s,idTokenExpiresAt:u})):this.checkAtHash(p).then(e=>{if(!this.disableAtHashCheck&&this.requestAccessToken&&!e){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return this.checkSignature(p).then(e=>{const n={idToken:t,idTokenClaims:a,idTokenClaimsJson:o,idTokenHeader:r,idTokenHeaderJson:s,idTokenExpiresAt:u};return this.disableAtHashCheck?n:this.checkAtHash(p).then(t=>{if(this.requestAccessToken&&!t){const t="Wrong at_hash";return this.logger.warn(t),Promise.reject(t)}return n})})})}getIdentityClaims(){const t=this._storage.getItem("id_token_claims_obj");return t?JSON.parse(t):null}getGrantedScopes(){const t=this._storage.getItem("granted_scopes");return t?JSON.parse(t):null}getIdToken(){return this._storage?this._storage.getItem("id_token"):null}padBase64(t){for(;t.length%4!=0;)t+="=";return t}getAccessToken(){return this._storage?this._storage.getItem("access_token"):null}getRefreshToken(){return this._storage?this._storage.getItem("refresh_token"):null}getAccessTokenExpiration(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}getAccessTokenStoredAt(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}getIdTokenStoredAt(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}getIdTokenExpiration(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}hasValidAccessToken(){if(this.getAccessToken()){const t=this._storage.getItem("expires_at"),e=new Date;return!(t&&parseInt(t,10)=0&&null!==this._storage.getItem(t)?JSON.parse(this._storage.getItem(t)):null}authorizationHeader(){return"Bearer "+this.getAccessToken()}logOut(t={},e=""){let n=!1;"boolean"==typeof t&&(n=t,t={});const i=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(t=>this._storage.removeItem(t)),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),!this.logoutUrl)return;if(n)return;if(!i&&!this.postLogoutRedirectUri)return;let s;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)s=this.logoutUrl.replace(/\{\{id_token\}\}/,i).replace(/\{\{client_id\}\}/,this.clientId);else{let n=new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.e;i&&(n=n.set("id_token_hint",i));const r=this.postLogoutRedirectUri||this.redirectUri;r&&(n=n.set("post_logout_redirect_uri",r),e&&(n=n.set("state",e)));for(let e in t)n=n.set(e,t[e]);s=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+n.toString()}this.config.openUri(s)}createAndSaveNonce(){const t=this;return this.createNonce().then((function(e){return t.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",e):t._storage.setItem("nonce",e),e}))}ngOnDestroy(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();const t=this.document.getElementById(this.silentRefreshIFrameName);t&&t.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();const e=this.document.getElementById(this.sessionCheckIFrameName);e&&e.remove()}createNonce(){return new Promise(t=>{if(this.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~";let n=45,i="";const s="undefined"==typeof self?null:self.crypto||self.msCrypto;if(s){let t=new Uint8Array(n);s.getRandomValues(t),t.map||(t.map=Array.prototype.map),t=t.map(t=>e.charCodeAt(t%e.length)),i=String.fromCharCode.apply(null,t)}else for(;0"discovery_document_loaded"===t.type)).subscribe(n=>this.initCodeFlowInternal(t,e))}initCodeFlowInternal(t="",e={}){if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");this.createLoginUrl(t,"",null,!1,e).then(this.config.openUri).catch(t=>{console.error("Error in initAuthorizationCodeFlow"),console.error(t)})}createChallangeVerifierPairForPKCE(){return Object(tslib__WEBPACK_IMPORTED_MODULE_3__.a)(this,void 0,void 0,(function*(){if(!this.crypto)throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");const t=yield this.createNonce();return[base64UrlEncode(yield this.crypto.calcHash(t,"sha-256")),t]}))}extractRecognizedCustomParameters(t){let e=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(n=>{t[n]&&e.set(n,JSON.stringify(t[n]))}),e):e}revokeTokenAndLogout(t={},e=!1){let n=this.revocationEndpoint,i=this.getAccessToken(),s=this.getRefreshToken();if(!i)return;let r=new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.e,o=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.d).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){const t=btoa(`${this.clientId}:${this.dummyClientSecret}`);o=o.set("Authorization","Basic "+t)}if(this.useHttpBasicAuth||(r=r.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(r=r.set("client_secret",this.dummyClientSecret)),this.customQueryParams)for(const a of Object.getOwnPropertyNames(this.customQueryParams))r=r.set(a,this.customQueryParams[a]);return new Promise((a,c)=>{let l,h;if(i){let t=r.set("token",i).set("token_type_hint","access_token");l=this.http.post(n,t,{headers:o})}else l=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(null);if(s){let t=r.set("token",s).set("token_type_hint","refresh_token");h=this.http.post(n,t,{headers:o})}else h=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(null);e&&(l=l.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(t=>0===t.status?Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(null):Object(rxjs__WEBPACK_IMPORTED_MODULE_8__.a)(t))),h=h.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(t=>0===t.status?Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(null):Object(rxjs__WEBPACK_IMPORTED_MODULE_8__.a)(t)))),Object(rxjs__WEBPACK_IMPORTED_MODULE_9__.a)([l,h]).subscribe(e=>{this.logOut(t),a(e),this.logger.info("Token successfully revoked")},t=>{this.logger.error("Error revoking token",t),this.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),c(t)})})}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(_angular_core__WEBPACK_IMPORTED_MODULE_0__.B),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(_angular_common__WEBPACK_IMPORTED_MODULE_1__.d))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ib({token:t,factory:t.\u0275fac}),t})();class OAuthModuleConfig{}class OAuthResourceServerConfig{}class OAuthResourceServerErrorHandler{}class OAuthNoopResourceServerErrorHandler{handleError(t){return Object(rxjs__WEBPACK_IMPORTED_MODULE_8__.a)(t)}}let DefaultOAuthInterceptor=(()=>{class t{constructor(t,e,n,i){this.authStorage=t,this.oAuthService=e,this.errorHandler=n,this.moduleConfig=i}checkUrl(t){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(t):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(e=>t.startsWith(e))}intercept(t,e){const n=t.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(n)?this.moduleConfig.resourceServer.sendAccessToken?Object(rxjs__WEBPACK_IMPORTED_MODULE_10__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(this.oAuthService.getAccessToken()).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>!!t)),this.oAuthService.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(t=>"token_received"===t.type),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.a)(this.oAuthService.waitForTokenInMsec||0),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(t=>Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(null)),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(t=>this.oAuthService.getAccessToken()))).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.a)(1),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(n=>{if(n){const e=t.headers.set("Authorization","Bearer "+n);t=t.clone({headers:e})}return e.handle(t).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(t=>this.errorHandler.handleError(t)))})):e.handle(t).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(t=>this.errorHandler.handleError(t))):e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(OAuthStorage),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.Wb(OAuthModuleConfig,8))},t.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Ib({token:t,factory:t.\u0275fac}),t})();class NullValidationHandler{validateSignature(t){return Promise.resolve(null)}validateAtHash(t){return Promise.resolve(!0)}}function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}let OAuthModule=(()=>{class t{static forRoot(e=null,n=NullValidationHandler){return{ngModule:t,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:n},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:e},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.a,useClass:DefaultOAuthInterceptor,multi:!0}]}}}return t.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Kb({type:t}),t.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Jb({factory:function(e){return new(e||t)},imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_1__.c]]}),t})();const err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n";class JwksValidationHandler extends NullValidationHandler{constructor(){super(),console.error(err)}}const AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.s("AUTH_CONFIG")}).call(this,__webpack_require__("3UD+")(module))},Lhse:function(t,e,n){"use strict";function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",(function(){return s}));const s=i()},M9IT:function(t,e,n){"use strict";n.d(e,"a",(function(){return A})),n.d(e,"b",(function(){return C}));var i=n("ofXK"),s=n("fXoL"),r=n("bTqV"),o=n("d3UM"),a=n("Qu3c"),c=n("8LU1"),l=n("XNiG"),h=n("FKr1"),u=n("kmnG");function d(t,e){if(1&t&&(s.Sb(0,"mat-option",19),s.Dc(1),s.Rb()),2&t){const t=e.$implicit;s.jc("value",t),s.Bb(1),s.Fc(" ",t," ")}}function p(t,e){if(1&t){const t=s.Tb();s.Sb(0,"mat-form-field",16),s.Sb(1,"mat-select",17),s.Zb("selectionChange",(function(e){return s.sc(t),s.dc(2)._changePageSize(e.value)})),s.Cc(2,d,2,2,"mat-option",18),s.Rb(),s.Rb()}if(2&t){const t=s.dc(2);s.jc("appearance",t._formFieldAppearance)("color",t.color),s.Bb(1),s.jc("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.Bb(1),s.jc("ngForOf",t._displayedPageSizeOptions)}}function f(t,e){if(1&t&&(s.Sb(0,"div",20),s.Dc(1),s.Rb()),2&t){const t=s.dc(2);s.Bb(1),s.Ec(t.pageSize)}}function g(t,e){if(1&t&&(s.Sb(0,"div",12),s.Sb(1,"div",13),s.Dc(2),s.Rb(),s.Cc(3,p,3,6,"mat-form-field",14),s.Cc(4,f,2,1,"div",15),s.Rb()),2&t){const t=s.dc();s.Bb(2),s.Fc(" ",t._intl.itemsPerPageLabel," "),s.Bb(1),s.jc("ngIf",t._displayedPageSizeOptions.length>1),s.Bb(1),s.jc("ngIf",t._displayedPageSizeOptions.length<=1)}}function m(t,e){if(1&t){const t=s.Tb();s.Sb(0,"button",21),s.Zb("click",(function(){return s.sc(t),s.dc().firstPage()})),s.cc(),s.Sb(1,"svg",7),s.Nb(2,"path",22),s.Rb(),s.Rb()}if(2&t){const t=s.dc();s.jc("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.Cb("aria-label",t._intl.firstPageLabel)}}function b(t,e){if(1&t){const t=s.Tb();s.cc(),s.bc(),s.Sb(0,"button",23),s.Zb("click",(function(){return s.sc(t),s.dc().lastPage()})),s.cc(),s.Sb(1,"svg",7),s.Nb(2,"path",24),s.Rb(),s.Rb()}if(2&t){const t=s.dc();s.jc("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.Cb("aria-label",t._intl.lastPageLabel)}}let _=(()=>{class t{constructor(){this.changes=new l.a,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(t,e,n)=>{if(0==n||0==e)return"0 of "+n;const i=t*e;return`${i+1} \u2013 ${i<(n=Math.max(n,0))?Math.min(i+e,n):i+e} of ${n}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const y={provide:_,deps:[[new s.C,new s.L,_]],useFactory:function(t){return t||new _}},v=new s.s("MAT_PAGINATOR_DEFAULT_OPTIONS");class w{}const S=Object(h.z)(Object(h.B)(w));let A=(()=>{class t extends S{constructor(t,e,n){if(super(),this._intl=t,this._changeDetectorRef=e,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new s.o,this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){const{pageSize:t,pageSizeOptions:e,hidePageSize:i,showFirstLastButtons:s,formFieldAppearance:r}=n;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=i&&(this._hidePageSize=i),null!=s&&(this._showFirstLastButtons=s),null!=r&&(this._formFieldAppearance=r)}}get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(Object(c.f)(t),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(t){this._length=Object(c.f)(t),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(Object(c.f)(t),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(t=>Object(c.f)(t)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(t){this._hidePageSize=Object(c.c)(t)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(t){this._showFirstLastButtons=Object(c.c)(t)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}previousPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}firstPage(){if(!this.hasPreviousPage())return;const t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}lastPage(){if(!this.hasNextPage())return;const t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const t=this.getNumberOfPages()-1;return this.pageIndext-e),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(_),s.Mb(s.h),s.Mb(v,8))},t.\u0275cmp=s.Gb({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},exportAs:["matPaginator"],features:[s.yb],decls:14,vars:14,consts:[[1,"mat-paginator-outer-container"],[1,"mat-paginator-container"],["class","mat-paginator-page-size",4,"ngIf"],[1,"mat-paginator-range-actions"],[1,"mat-paginator-range-label"],["mat-icon-button","","type","button","class","mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-previous",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["viewBox","0 0 24 24","focusable","false",1,"mat-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-next",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","class","mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click",4,"ngIf"],[1,"mat-paginator-page-size"],[1,"mat-paginator-page-size-label"],["class","mat-paginator-page-size-select",3,"appearance","color",4,"ngIf"],["class","mat-paginator-page-size-value",4,"ngIf"],[1,"mat-paginator-page-size-select",3,"appearance","color"],[3,"value","disabled","aria-label","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mat-paginator-page-size-value"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button",1,"mat-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","matTooltipPosition","disabled","click"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(t,e){1&t&&(s.Sb(0,"div",0),s.Sb(1,"div",1),s.Cc(2,g,5,3,"div",2),s.Sb(3,"div",3),s.Sb(4,"div",4),s.Dc(5),s.Rb(),s.Cc(6,m,3,5,"button",5),s.Sb(7,"button",6),s.Zb("click",(function(){return e.previousPage()})),s.cc(),s.Sb(8,"svg",7),s.Nb(9,"path",8),s.Rb(),s.Rb(),s.bc(),s.Sb(10,"button",9),s.Zb("click",(function(){return e.nextPage()})),s.cc(),s.Sb(11,"svg",7),s.Nb(12,"path",10),s.Rb(),s.Rb(),s.Cc(13,b,3,5,"button",11),s.Rb(),s.Rb(),s.Rb()),2&t&&(s.Bb(2),s.jc("ngIf",!e.hidePageSize),s.Bb(3),s.Fc(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.Bb(1),s.jc("ngIf",e.showFirstLastButtons),s.Bb(1),s.jc("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.Cb("aria-label",e._intl.previousPageLabel),s.Bb(3),s.jc("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.Cb("aria-label",e._intl.nextPageLabel),s.Bb(3),s.jc("ngIf",e.showFirstLastButtons))},directives:[i.l,r.a,a.a,u.b,o.a,i.k,h.n],styles:[".mat-paginator{display:block}.mat-paginator-outer-container{display:flex}.mat-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap-reverse;width:100%}.mat-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-paginator-page-size{margin-right:0;margin-left:8px}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:6px 4px 0 4px;width:56px}.mat-paginator-page-size-select.mat-form-field-appearance-outline{width:64px}.mat-paginator-page-size-select.mat-form-field-appearance-fill{width:64px}.mat-paginator-range-label{margin:0 32px 0 24px}.mat-paginator-range-actions{display:flex;align-items:center}.mat-paginator-icon{width:28px;fill:currentColor}[dir=rtl] .mat-paginator-icon{transform:rotate(180deg)}\n"],encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[y],imports:[[i.c,r.b,o.b,a.b]]}),t})()},NJ4a:function(t,e,n){"use strict";function i(t){setTimeout(()=>{throw t},0)}n.d(e,"a",(function(){return i}))},NXyV:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("HDdC"),s=n("Cfvw"),r=n("EY2u");function o(t){return new i.a(e=>{let n;try{n=t()}catch(i){return void e.error(i)}return(n?Object(s.a)(n):Object(r.b)()).subscribe(e)})}},Nv8m:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("DH7j"),s=n("yCtX"),r=n("l7GE"),o=n("ZUHj");function a(...t){if(1===t.length){if(!Object(i.a)(t[0]))return t[0];t=t[0]}return Object(s.a)(t,void 0).lift(new c)}class c{call(t,e){return e.subscribe(new l(t))}}class l extends r.a{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;n{const i=Object(r.a)(t)?t:+t-n.now();return n.schedule(c,i,{index:0,period:a,subscriber:e})})}function c(t){const{index:e,period:n,subscriber:i}=t;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}},Qu3c:function(t,e,n){"use strict";n.d(e,"a",(function(){return C})),n.d(e,"b",(function(){return E}));var i=n("rDax"),s=n("u47x"),r=n("ofXK"),o=n("fXoL"),a=n("FKr1"),c=n("vxfF"),l=n("8LU1"),h=n("FtGj"),u=n("0MNC"),d=n("nLfN"),p=n("+rOU"),f=n("XNiG"),g=n("1G5W"),m=n("IzEk"),b=n("R0Ic"),_=n("cH1L");const y={tooltipState:Object(b.n)("state",[Object(b.k)("initial, void, hidden",Object(b.l)({opacity:0,transform:"scale(0)"})),Object(b.k)("visible",Object(b.l)({transform:"scale(1)"})),Object(b.m)("* => visible",Object(b.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(b.h)([Object(b.l)({opacity:0,transform:"scale(0)",offset:0}),Object(b.l)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(b.l)({opacity:1,transform:"scale(1)",offset:1})]))),Object(b.m)("* => hidden",Object(b.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(b.l)({opacity:0})))])},v=Object(d.f)({passive:!0}),w=new o.s("mat-tooltip-scroll-strategy"),S={provide:w,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},A=new o.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let C=(()=>{class t{constructor(t,e,n,i,s,r,o,a,c,l,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=s,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=l,this._defaultOptions=u,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new f.a,this._handleKeydown=t=>{this._isTooltipVisible()&&t.keyCode===h.h&&!Object(h.t)(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=c,u&&(u.position&&(this.position=u.position),u.touchGestures&&(this.touchGestures=u.touchGestures)),s.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.c)(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Object(g.a)(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,v)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new p.d(x,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(g.a)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Object(g.a)(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Object(g.a)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:i,y:s}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:i,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:i,y:s}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:i,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object(m.a)(1),Object(g.a)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,v)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(i.c),o.Mb(o.l),o.Mb(c.c),o.Mb(o.R),o.Mb(o.B),o.Mb(d.a),o.Mb(s.c),o.Mb(s.h),o.Mb(w),o.Mb(_.b,8),o.Mb(A,8))},t.\u0275dir=o.Hb({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),x=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new f.a,this._isHandset=this._breakpointObserver.observe(u.b.Handset)}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.h),o.Mb(u.a))},t.\u0275cmp=o.Gb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&o.Zb("click",(function(){return e._handleBodyInteraction()}),!1,o.rc),2&t&&o.zc("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(o.Sb(0,"div",0),o.Zb("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),o.ec(1,"async"),o.Dc(2),o.Rb()),2&t&&(o.Eb("mat-tooltip-handset",null==(n=o.fc(1,5,e._isHandset))?null:n.matches),o.jc("ngClass",e.tooltipClass)("@state",e._visibility),o.Bb(2),o.Ec(e.message))},directives:[r.j],pipes:[r.b],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[y.tooltipState]},changeDetection:0}),t})(),E=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},providers:[S],imports:[[s.a,r.c,i.f,a.j],a.j,c.b]}),t})()},R0Ic:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return f})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return d})),n.d(e,"i",(function(){return g})),n.d(e,"j",(function(){return l})),n.d(e,"k",(function(){return u})),n.d(e,"l",(function(){return h})),n.d(e,"m",(function(){return p})),n.d(e,"n",(function(){return o})),n.d(e,"o",(function(){return _})),n.d(e,"p",(function(){return y}));class i{}class s{}const r="*";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 c(t,e=null){return{type:3,steps:t,options:e}}function l(t,e=null){return{type:2,steps:t,options:e}}function h(t){return{type:6,styles:t,offset:null}}function u(t,e,n){return{type:0,name:t,styles:e,options:n}}function d(t){return{type:5,steps:t}}function p(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function f(t=null){return{type:9,options:t}}function g(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function m(t){Promise.resolve(null).then(t)}class b{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,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(){m(()=>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){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _{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,i=0;const s=this.players.length;0==s?m(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++i==s&&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(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}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 y="!"},R1ws:function(t,e,n){"use strict";n.d(e,"a",(function(){return ge})),n.d(e,"b",(function(){return be}));var i=n("fXoL"),s=n("jhN1"),r=n("R0Ic");function o(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function a(t){switch(t.length){case 0:return new r.d;case 1:return t[0];default:return new r.o(t)}}function c(t,e,n,i,s={},o={}){const a=[],c=[];let l=-1,h=null;if(i.forEach(t=>{const n=t.offset,i=n==l,u=i&&h||{};Object.keys(t).forEach(n=>{let i=n,c=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),c){case r.p:c=s[n];break;case r.a:c=o[n];break;default:c=e.normalizeStyleValue(n,i,c,a)}u[i]=c}),i||c.push(u),h=u,l=n}),a.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${a.join(t)}`)}return c}function l(t,e,n,i){switch(e){case"start":t.onStart(()=>i(n&&h(n,"start",t)));break;case"done":t.onDone(()=>i(n&&h(n,"done",t)));break;case"destroy":t.onDestroy(()=>i(n&&h(n,"destroy",t)))}}function h(t,e,n){const i=n.totalTime,s=u(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),r=t._data;return null!=r&&(s._data=r),s}function u(t,e,n,i,s="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:i,phaseName:s,totalTime:r,disabled:!!o}}function d(t,e,n){let i;return t instanceof Map?(i=t.get(e),i||t.set(e,i=n)):(i=t[e],i||(i=t[e]=n)),i}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let f=(t,e)=>!1,g=(t,e)=>!1,m=(t,e,n)=>[];const b=o();(b||"undefined"!=typeof Element)&&(f=(t,e)=>t.contains(e),g=(()=>{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]):g}})(),m=(t,e,n)=>{let i=[];if(n)i.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&i.push(n)}return i});let _=null,y=!1;function v(t){_||(_=("undefined"!=typeof document?document.body:null)||{},y=!!_.style&&"WebkitAppearance"in _.style);let e=!0;return _.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in _.style,!e&&y)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in _.style),e}const w=g,S=f,A=m;function C(t){const e={};return Object.keys(t).forEach(n=>{const i=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[i]=t[n]}),e}let x=(()=>{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 A(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,i,s,o=[],a){return new r.d(n,i)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})(),E=(()=>{class t{}return t.NOOP=new x,t})();function D(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:k(parseFloat(e[1]),e[2])}function k(t,e){switch(e){case"s":return 1e3*t;default:return t}}function O(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,s=0,r="";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:""};i=k(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=k(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else i=t;if(!n){let n=!1,r=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:r}}(t,e,n)}function R(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function I(t,e,n={}){if(e)for(let i in t)n[i]=t[i];else R(t,n);return n}function T(t,e,n){return n?e+":"+n+";":""}function F(t){let e="";for(let n=0;n{const s=U(i);n&&!n.hasOwnProperty(i)&&(n[i]=t.style[s]),t.style[s]=e[i]}),o()&&F(t))}function j(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=U(e);t.style[n]=""}),o()&&F(t))}function M(t){return Array.isArray(t)?1==t.length?t[0]:Object(r.j)(t):t}const B=new RegExp("{{\\s*(.+?)\\s*}}","g");function H(t){let e=[];if("string"==typeof t){let n;for(;n=B.exec(t);)e.push(n[1]);B.lastIndex=0}return e}function L(t,e,n){const i=t.toString(),s=i.replace(B,(t,i)=>{let s=e[i];return e.hasOwnProperty(i)||(n.push("Please provide a value for the animation param "+i),s=""),s.toString()});return s==i?t:s}function N(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const V=/-+([a-z0-9])/g;function U(t){return t.replace(V,(...t)=>t[1].toUpperCase())}function K(t,e){return 0===t||0===e}function z(t,e,n){const i=Object.keys(n);if(i.length&&e.length){let r=e[0],o=[];if(i.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const i=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 i)return void e.push(i);t=i}const i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=i[1],r=i[2],o=i[3];e.push(X(s,o)),"<"!=r[0]||"*"==s&&"*"==o||e.push(X(o,s))}(t,n,e)):n.push(t),n}const Y=new Set(["true","1"]),Q=new Set(["false","0"]);function X(t,e){const n=Y.has(t)||Q.has(t),i=Y.has(e)||Q.has(e);return(s,r)=>{let o="*"==t||t==s,a="*"==e||e==r;return!o&&n&&"boolean"==typeof s&&(o=s?Y.has(t):Q.has(t)),!a&&i&&"boolean"==typeof r&&(a=r?Y.has(e):Q.has(e)),o&&a}}const Z=new RegExp("s*:selfs*,?","g");function J(t,e,n){return new $(t).build(e,n)}class ${constructor(t){this._driver=t}build(t,e){const n=new tt(e);return this._resetContextStyleTimingState(n),W(this,M(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,i=e.depCount=0;const s=[],r=[];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,i=n.name;i.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=i}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,i+=s.depCount,r.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:r,queryCount:n,depCount:i,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),i=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,r=i||{};if(n.styles.forEach(t=>{if(et(t)){const e=t;Object.keys(e).forEach(t=>{H(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=N(s.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:i?{params:i}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=W(this,M(t.animation),e);return{type:1,matchers:G(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=>W(this,t,e)),options:nt(t.options)}}visitGroup(t,e){const n=e.currentTime;let i=0;const s=t.steps.map(t=>{e.currentTime=n;const s=W(this,t,e);return i=Math.max(i,e.currentTime),s});return e.currentTime=i,{type:3,steps:s,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 it(O(t,e).duration,0,"");const i=t;if(i.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=it(0,0,"");return t.dynamic=!0,t.strValue=i,t}return n=n||O(i,e),it(n.duration,n.delay,n.easing)}(t.timings,e.errors);let i;e.currentAnimateTimings=n;let s=t.styles?t.styles:Object(r.l)({});if(5==s.type)i=this.visitKeyframes(s,e);else{let s=t.styles,o=!1;if(!s){o=!0;const t={};n.easing&&(t.easing=n.easing),s=Object(r.l)(t)}e.currentTime+=n.duration+n.delay;const a=this.visitStyle(s,e);a.isEmptyStep=o,i=a}return e.currentAnimateTimings=null,{type:4,timings:n,style:i,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==r.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let i=!1,s=null;return n.forEach(t=>{if(et(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!i)for(let t in e)if(e[t].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let i=e.currentTime,s=e.currentTime;n&&s>0&&(s-=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 r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(s!=i&&s>=o.startTime&&i<=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 "${s}ms" and "${i}ms"`),a=!1),s=o.startTime),a&&(r[n]={startTime:s,endTime:i}),e.options&&function(t,e,n){const i=e.params||{},s=H(t);s.length&&s.forEach(t=>{i.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 i=0;const s=[];let r=!1,o=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=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),l=0;return null!=c&&(i++,l=n.offset=c),o=o||l<0||l>1,r=r||l0&&i{const r=h>0?i==u?1:h*i:s[i],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:W(this,M(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,i=t.options||{};e.queryCount++,e.currentQuery=t;const[s,r]=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+" "+s:s,d(e.collectedStyles,e.currentQuerySelector,{});const o=W(this,M(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:r,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"}:O(t.timings,e.errors,!0);return{type:12,animation:W(this,M(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=R(t)).params&&(t.params=(e=t.params)?R(e):null):t={},t}function it(t,e,n){return{duration:t,delay:e,easing:n}}function st(t,e,n,i,s,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:s,delay:r,totalTime:s+r,easing:o,subTimeline:a}}class rt{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 ct(t,e,n,i,s,r={},o={},a,c,l=[]){return(new lt).buildKeyframes(t,e,n,i,s,r,o,a,c,l)}class lt{buildKeyframes(t,e,n,i,s,r,o,a,c,l=[]){c=c||new rt;const h=new ut(t,e,c,i,s,l,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),W(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[st(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 i=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,i,i.options);s!=r&&e.transformIntoNewTimeline(r)}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 i=e.currentTimeline.currentTime;const s=null!=n.duration?D(n.duration):null,r=null!=n.delay?D(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,r);i=Math.max(i,n.duration+n.delay)}),i}visitReference(t,e){e.updateOptions(t.options,!0),W(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let i=e;const s=t.options;if(s&&(s.params||s.delay)&&(i=e.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ht);const t=D(s.delay);i.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>W(this,t,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let i=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?D(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),W(this,r,o),i=Math.max(i,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(i),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return O(e.params?L(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),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,i=e.currentTimeline.duration,s=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*s),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(i+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,i=t.options||{},s=i.delay?D(i.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=ht);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,i)=>{e.currentQueryIndex=i;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),W(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,i=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;W(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)}}const ht={};class ut{constructor(t,e,n,i,s,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ht,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 i=this.options;null!=n.duration&&(i.duration=D(n.duration)),null!=n.delay&&(i.delay=D(n.delay));const s=n.params;if(s){let t=i.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=L(s[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 i=e||this.element,s=new ut(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=ht,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new pt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,i,s,r){let o=[];if(i&&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 s||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class dt{constructor(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,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(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]||r.a,this._currentKeyframe[t]=r.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,i){e&&(this._previousKeyframe.easing=e);const s=i&&i.params||{},o=function(t,e){const n={};let i;return t.forEach(t=>{"*"===t?(i=i||Object.keys(e),i.forEach(t=>{n[t]=r.a})):I(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(o).forEach(t=>{const e=L(o[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:r.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],i=t._styleSummary[e];(!n||i.time>n.time)&&this._updateStyle(e,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((s,o)=>{const a=I(s,!0);Object.keys(a).forEach(n=>{const i=a[n];i==r.p?t.add(n):i==r.a&&e.add(n)}),n||(a.offset=o/this.duration),i.push(a)});const s=t.size?N(t.values()):[],o=e.size?N(e.values()):[];if(n){const t=i[0],e=R(t);t.offset=0,e.offset=1,i=[t,e]}return st(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class pt extends dt{constructor(t,e,n,i,s,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=n+e,o=e/r,a=I(t[0],!1);a.offset=0,s.push(a);const c=I(t[0],!1);c.offset=ft(o),s.push(c);const l=t.length-1;for(let i=1;i<=l;i++){let o=I(t[i],!1);o.offset=ft((e+o.offset*n)/r),s.push(o)}n=r,e=0,i="",t=s}return st(this.element,t,this.preStyleProps,this.postStyleProps,n,e,i,!0)}}function ft(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class gt{}class mt extends gt{normalizePropertyName(t,e){return U(t)}normalizeStyleValue(t,e,n,i){let s="";const r=n.toString().trim();if(bt[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&i.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+s}}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,i,s,r,o,a,c,l,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:r,toState:i,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:h,totalTime:u,errors:d}}const yt={};class vt{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,i){return function(t,e,n,i,s){return t.some(t=>t(e,n,i,s))}(this.ast.matchers,t,e,n,i)}buildStyles(t,e,n){const i=this._stateStyles["*"],s=this._stateStyles[t],r=i?i.buildStyles(e,n):{};return s?s.buildStyles(e,n):r}build(t,e,n,i,s,r,o,a,c,l){const h=[],u=this.ast.options&&this.ast.options.params||yt,p=this.buildStyles(n,o&&o.params||yt,h),f=a&&a.params||yt,g=this.buildStyles(i,f,h),m=new Set,b=new Map,_=new Map,y="void"===i,v={params:Object.assign(Object.assign({},u),f)},w=l?[]:ct(t,e,this.ast.animation,s,r,p,g,v,c,h);let S=0;if(w.forEach(t=>{S=Math.max(t.duration+t.delay,S)}),h.length)return _t(e,this._triggerName,n,i,y,p,g,[],[],b,_,S,h);w.forEach(t=>{const n=t.element,i=d(b,n,{});t.preStyleProps.forEach(t=>i[t]=!0);const s=d(_,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const A=N(m.values());return _t(e,this._triggerName,n,i,y,p,g,w,A,b,_,S)}}class wt{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},i=R(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let r=s[t];r.length>1&&(r=L(r,i,e)),n[t]=r})}}),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||{})}),At(this.states,"true","1"),At(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,i){return this.transitionFactories.find(s=>s.match(t,e,n,i))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function At(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const Ct=new rt;class xt{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],i=J(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]=i}_buildPlayer(t,e,n){const i=t.element,s=c(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const i=[],s=this._animations[t];let o;const c=new Map;if(s?(o=ct(this._driver,e,s,"ng-enter","ng-leave",{},{},n,Ct,i),o.forEach(t=>{const e=d(c,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));c.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,r.a)})});const l=a(o.map(t=>{const e=c.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(()=>this.destroy(t)),this.players.push(l),l}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,i){const s=u(e,"","","");return l(this._getPlayer(t),n,s,i),()=>{}}command(t,e,n,i){if("register"==n)return void this.register(t,i[0]);if("create"==n)return void this.create(t,e,i[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}}const Et=[],Dt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},kt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Ot{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(i=n?t.value:t)?i:null,n){const e=R(t);delete e.value,this.options=e}else this.options={};var i;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 Rt=new Ot("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,Ht(e,this._hostClassName)}listen(t,e,n,i){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"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const r=d(this._elementListeners,t,[]),o={name:e,phase:n,callback:i};r.push(o);const a=d(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Ht(t,"ng-trigger"),Ht(t,"ng-trigger-"+e),a[e]=Rt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.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,i=!0){const s=this._getTrigger(e),r=new Ft(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Ht(t,"ng-trigger"),Ht(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new Ot(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=Rt),"void"!==c.value&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(let s=0;s{j(t,n),P(t,i)})}return}const l=d(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(a.value,c.value,t,c.params),u=!1;if(!h){if(!i)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:c,player:r,isFallbackTransition:u}),u||(Ht(t,"ng-animate-queued"),r.onStart(()=>{Lt(t,"ng-animate-queued")})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),l.push(r),r}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,i){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,"void",i);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&a(r).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 i=e.name;if(n.has(i))return;n.add(i);const s=this._triggers[i].fallbackTransition,r=this._engine.statesByElement.get(t)[i]||Rt,o=new Ot("void"),a=new Ft(this.id,i,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:i,transition:s,fromState:r,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 i=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)i=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(t),i)n.markElementAsRemoved(this.id,t,!1,e);else{const i=t.__ng_removed;i&&i!==Dt||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Ht(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const i=n.player;if(i.destroyed)return;const s=n.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==n.triggerName){const i=u(s,n.triggerName,n.fromState.value,n.toState.value);i._data=t,l(n.player,e.phase,i,e.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,i=e.transition.ast.depCount;return 0==n||0==i?n-i: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 Tt{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 i=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),i=!0;break}i||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 i=this._namespaceLookup[t];i&&i.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 i=0;i=0&&this.collectedLeaveElements.splice(t,1)}if(t){const i=this._fetchNamespace(t);i&&i.insertNode(e,n)}i&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ht(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Lt(t,"ng-animate-disabled"))}removeNode(t,e,n,i){if(Pt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,i)}}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,i,s){return Pt(e)?this._fetchNamespace(t).listen(e,n,i,s):()=>{}}_buildInstruction(t,e,n,i,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,s)}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=Dt,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 rt,i=[],s=new Map,o=[],c=new Map,l=new Map,h=new Map,u=new Set;this.disabledNodes.forEach(t=>{u.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n="ng-enter"+b++;m.set(e,n),t.forEach(t=>Ht(t,n))});const _=[],y=new Set,v=new Set;for(let r=0;ry.add(t)):v.add(t))}const w=new Map,S=Bt(f,Array.from(y));S.forEach((t,e)=>{const n="ng-leave"+b++;w.set(e,n),t.forEach(t=>Ht(t,n))}),t.push(()=>{g.forEach((t,e)=>{const n=m.get(e);t.forEach(t=>Lt(t,n))}),S.forEach((t,e)=>{const n=w.get(e);t.forEach(t=>Lt(t,n))}),_.forEach(t=>{this.processLeaveNode(t)})});const A=[],C=[];for(let r=this._namespaceList.length-1;r>=0;r--)this._namespaceList[r].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(A.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const r=!p||!this.driver.containsElement(p,s),a=w.get(s),u=m.get(s),f=this._buildInstruction(t,n,u,a,r);if(f.errors&&f.errors.length)C.push(f);else{if(r)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>P(s,f.toStyles)),void i.push(e);if(t.isFallbackTransition)return e.onStart(()=>j(s,f.fromStyles)),e.onDestroy(()=>P(s,f.toStyles)),void i.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,f.timelines),o.push({instruction:f,player:e,element:s}),f.queriedElements.forEach(t=>d(c,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=l.get(e);t||l.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let i=h.get(e);i||h.set(e,i=new Set),n.forEach(t=>i.add(t))})}});if(C.length){const t=[];C.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),A.forEach(t=>t.destroy()),this.reportError(t)}const x=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,x))}),i.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(x,e,[]).push(t),t.destroy()})});const D=_.filter(t=>Vt(t,l,h)),k=new Map;Mt(k,this.driver,v,h,r.a).forEach(t=>{Vt(t,l,h)&&D.push(t)});const O=new Map;g.forEach((t,e)=>{Mt(O,this.driver,new Set(t),l,r.p)}),D.forEach(t=>{const e=k.get(t),n=O.get(t);k.set(t,Object.assign(Object.assign({},e),n))});const R=[],I=[],T={};o.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(u.has(e))return r.onDestroy(()=>P(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void i.push(r);let t=T;if(E.size>1){let n=e;const i=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}i.push(n)}i.forEach(e=>E.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,x,s,O,k);if(r.setRealPlayer(n),t===T)R.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=a(e)),i.push(r)}}else j(e,o.fromStyles),r.onDestroy(()=>P(e,o.toStyles)),I.push(r),u.has(e)&&i.push(r)}),I.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=a(e);t.setRealPlayer(n)}}),i.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let r=0;r<_.length;r++){const t=_[r],e=t.__ng_removed;if(Lt(t,"ng-leave"),e&&e.hasAnimation)continue;let n=[];if(c.size){let e=c.get(t);e&&e.length&&n.push(...e);let i=this.driver.query(t,".ng-animating",!0);for(let t=0;t!t.destroyed);i.length?Nt(this,t,i):this.processLeaveNode(t)}return _.length=0,R.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),R}elementContainsData(t,e){let n=!1;const i=e.__ng_removed;return i&&i.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,i,s){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||"void"==s;e.forEach(e=>{e.queued||(t||e.triggerName==i)&&r.push(e)})}}return(n||i)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||i&&i!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const i=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==i,c=d(n,t,[]);this._getPreviousPlayers(t,a,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}j(i,e.fromStyles)}_buildAnimation(t,e,n,i,s,o){const l=e.triggerName,h=e.element,u=[],p=new Set,f=new Set,g=e.timelines.map(e=>{const a=e.element;p.add(a);const d=a.__ng_removed;if(d&&d.removedBeforeQueried)return new r.d(e.duration,e.delay);const g=a!==h,m=function(t){const e=[];return function t(e,n){for(let i=0;it.getRealPlayer())).filter(t=>!!t.element&&t.element===a),b=s.get(a),_=o.get(a),y=c(0,this._normalizer,0,e.keyframes,b,_),v=this._buildPlayer(e,y,m);if(e.subTimeline&&i&&f.add(a),g){const e=new Ft(t,l,a);e.setRealPlayer(v),u.push(e)}return v});u.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let i;if(t instanceof Map){if(i=t.get(e),i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&t.delete(e)}}else if(i=t[e],i){if(i.length){const t=i.indexOf(n);i.splice(t,1)}0==i.length&&delete t[e]}return i}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>Ht(t,"ng-animating"));const m=a(g);return m.onDestroy(()=>{p.forEach(t=>Lt(t,"ng-animating")),P(h,e.toStyles)}),f.forEach(t=>{d(i,t,[]).push(m)}),m}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new r.d(t.duration,t.delay)}}class Ft{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new r.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=>l(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 Pt(t){return t&&1===t.nodeType}function jt(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function Mt(t,e,n,i,s){const r=[];n.forEach(t=>r.push(jt(t)));const o=[];i.forEach((n,i)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(i,t,s);n&&0!=n.length||(i.__ng_removed=kt,o.push(i))}),t.set(i,r)});let a=0;return n.forEach(t=>jt(t,r[a++])),o}function Bt(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const i=new Set(e),s=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=s.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:i.has(o)?1:t(o),s.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function Ht(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Lt(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function Nt(t,e,n){a(n).onDone(()=>t.processLeaveNode(e))}function Vt(t,e,n){const i=n.get(t);if(!i)return!1;let s=e.get(t);return s?i.forEach(t=>s.add(t)):e.set(t,i),n.delete(t),!0}class Ut{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Tt(t,e,n),this._timelineEngine=new xt(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,i,s){const r=t+"-"+i;let o=this._triggerCache[r];if(!o){const t=[],e=J(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new St(t,e)}(i,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,i,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)}onRemove(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,i){if("@"==n.charAt(0)){const[t,s]=p(n);this._timelineEngine.command(t,e,s,i)}else this._transitionEngine.trigger(t,e,n,i)}listen(t,e,n,i,s){if("@"==n.charAt(0)){const[t,i]=p(n);return this._timelineEngine.listen(t,e,i,s)}return this._transitionEngine.listen(t,e,n,i,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Kt(t,e){let n=null,i=null;return Array.isArray(e)&&e.length?(n=Wt(e[0]),e.length>1&&(i=Wt(e[e.length-1]))):e&&(n=Wt(e)),n||i?new zt(t,n,i):null}let zt=(()=>{class t{constructor(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&P(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(P(this._element,this._initialStyles),this._endStyles&&(P(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),P(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 i=0;ithis._handleCallback(t)}apply(){!function(t,e){const n=$t(t,"").trim();n.length&&(function(t,e){let n=0;for(let i=0;i=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Zt(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=$t(t,"").split(","),i=Xt(n,e);i>=0&&(n.splice(i,1),Jt(t,"",n.join(",")))}(this._element,this._name))}}function Yt(t,e,n){Jt(t,"PlayState",n,Qt(t,e))}function Qt(t,e){const n=$t(t,"");return n.indexOf(",")>0?Xt(n.split(","),e):Xt([n],e)}function Xt(t,e){for(let n=0;n=0)return n;return-1}function Zt(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Jt(t,e,n,i){const s="animation"+e;if(null!=i){const e=t.style[s];if(e.length){const t=e.split(",");t[i]=n,n=t.join(",")}}t.style[s]=n}function $t(t,e){return t.style["animation"+e]}class te{constructor(t,e,n,i,s,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=i+s,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]:q(this.element,n))})}this.currentSnapshot=t}}class ee extends r.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=C(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 ne{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return S(t,e)}query(t,e,n){return A(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>C(t));let i=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);i+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=`${s}animation-timing-function: ${n};\n`));default:return void(i+=`${s}${e}: ${n};\n`)}}),i+=s+"}\n"}),i+="}\n";const r=document.createElement("style");return r.innerHTML=i,r}animate(t,e,n,i,s,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof te),c={};K(n,i)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=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=z(t,e,c));if(0==n)return new ee(t,l);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=Kt(t,e),p=new te(t,e,h,n,i,s,l,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class ie{constructor(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,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=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]:q(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class se{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(re().toString()),this._cssKeyframesDriver=new ne}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return S(t,e)}query(t,e,n){return A(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,i,s,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,s,r);const a={duration:n,delay:i,fill:0==i?"both":"forwards"};s&&(a.easing=s);const c={},l=r.filter(t=>t instanceof ie);K(n,i)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const h=Kt(t,e=z(t,e=e.map(t=>I(t,!1)),c));return new ie(t,e,a,h)}}function re(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var oe=n("ofXK");let ae=(()=>{class t extends r.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:i.S.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(r.j)(t):t;return he(this._renderer,null,e,"register",[n]),new ce(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(i.H),i.Wb(oe.d))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})();class ce extends r.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new le(this._id,t,e||{},this._renderer)}}class le{constructor(t,e,n,i){this.id=t,this.element=e,this._renderer=i,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(){return 0}}function he(t,e,n,i,s){return t.setProperty(e,`@@${n}:${i}`,s)}let ue=(()=>{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 de("",n,this.engine),this._rendererCache.set(n,t)),t}const i=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(i,s,t,e.name,e)};return e.data.animation.forEach(r),new pe(this,s,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)(i.Wb(i.H),i.Wb(Ut),i.Wb(i.B))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})();class de{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){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}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,i){this.delegate.setAttribute(t,e,n,i)}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,i){this.delegate.setStyle(t,e,n,i)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class pe extends de{constructor(t,e,n,i){super(e,n,i),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 i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),r="";return"@"!=s.charAt(0)&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let fe=(()=>{class t extends Ut{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(oe.d),i.Wb(E),i.Wb(gt))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})();const ge=new i.s("AnimationModuleType"),me=[{provide:E,useFactory:function(){return"function"==typeof re()?new se:new ne}},{provide:ge,useValue:"BrowserAnimations"},{provide:r.b,useClass:ae},{provide:gt,useFactory:function(){return new mt}},{provide:Ut,useClass:fe},{provide:i.H,useFactory:function(t,e,n){return new ue(t,e,n)},deps:[s.d,Ut,i.B]}];let be=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:me,imports:[s.a]}),t})()},SeVD:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("ngJS"),s=n("NJ4a"),r=n("Lhse"),o=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const h=t=>{if(t&&"function"==typeof t[o.a])return h=t,t=>{const e=h[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(i.a)(t);if(Object(c.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[r.a])return e=t,t=>{const n=e[r.a]();for(;;){const e=n.next();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(l.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,h}},SpAZ:function(t,e,n){"use strict";function i(t){return t}n.d(e,"a",(function(){return i}))},SxV6:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("sVev"),s=n("pLZG"),r=n("IzEk"),o=n("xbPD"),a=n("XDbj"),c=n("SpAZ");function l(t,e){const n=arguments.length>=2;return l=>l.pipe(t?Object(s.a)((e,n)=>t(e,n,l)):c.a,Object(r.a)(1),n?Object(o.a)(e):Object(a.a)(()=>new i.a))}},VRyK:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("HDdC"),s=n("z+Ro"),r=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(s.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 i.a?t[0]:Object(r.a)(e)(Object(o.a)(t,n))}},WMd4:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("EY2u"),s=n("LRne"),r=n("z6cu");let o=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(s.a)(this.value);case"E":return Object(r.a)(this.error);case"C":return Object(i.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 r}));var i=n("sVev"),s=n("7o/Q");function r(t=c){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 s.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 c(){return new i.a}},XNiG:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var i=n("HDdC"),s=n("7o/Q"),r=n("quSY"),o=n("9ppp"),a=n("Ylt2"),c=n("2QA8");class l extends s.a{constructor(t){super(t),this.destination=t}}let h=(()=>{class t extends i.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(t){const e=new u(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,i=e.slice();for(let s=0;snew u(t,e),t})();class u extends h{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):r.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function i(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return i}))},Y7HM:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("DH7j");function s(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}},Ylt2:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("quSY");class s extends i.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)}}},ZUHj:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("51Dv"),s=n("SeVD"),r=n("HDdC");function o(t,e,n,o,a=new i.a(t,n,o)){if(!a.closed)return e instanceof r.a?e.subscribe(a):Object(s.a)(e)(a)}},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("5+tZ"),s=n("SpAZ");function r(t=Number.POSITIVE_INFINITY){return Object(i.a)(s.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5+tZ");function s(t,e){return Object(i.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 i=n("FKr1"),s=n("R1ws"),r=n("fXoL"),o=n("u47x");const a=["mat-button",""],c=["*"],l=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class h{constructor(t){this._elementRef=t}}const u=Object(i.x)(Object(i.z)(Object(i.y)(h)));let d=(()=>{class t extends u{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 i of l)this._hasHostAttributes(i)&&this._getHostElement().classList.add(i);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)(r.Mb(r.l),r.Mb(o.h),r.Mb(s.a,8))},t.\u0275cmp=r.Gb({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){var n;1&t&&r.Ic(i.s,!0),2&t&&r.pc(n=r.ac())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.Cb("disabled",e.disabled||null),r.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.yb],attrs:a,ngContentSelectors:c,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&&(r.ic(),r.Sb(0,"span",0),r.hc(1),r.Rb(),r.Nb(2,"span",1),r.Nb(3,"span",2)),2&t&&(r.Bb(2),r.Eb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.jc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[i.s],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}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.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}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[i.t,i.j],i.j]}),t})()},c2HN:function(t,e,n){"use strict";function i(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return i}))},cH1L:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));var i=n("fXoL"),s=n("ofXK");const r=new i.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.W)(s.d)}});let o=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new i.o,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)(i.Wb(r,8))},t.\u0275prov=Object(i.Ib)({factory:function(){return new t(Object(i.Wb)(r,8))},token:t,providedIn:"root"}),t})(),a=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)}}),t})()},cXe9:function(t,e,n){"use strict";n.d(e,"a",(function(){return Xt}));var i=n("u47x"),s=n("fXoL"),r=n("ofXK"),o=n("vxfF"),a=n("nLfN"),c=n("8LU1"),l=n("XNiG"),h=n("quSY"),u=n("HDdC"),d=n("D0XW"),p=n("Y7HM");function f(t){const{subscriber:e,counter:n,period:i}=t;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var g=n("eNwd"),m=(n("VRyK"),n("1G5W")),b=(n("JX91"),n("lJxs"),n("IzEk"),n("vkgz"),n("eIep"),n("cH1L"));function _(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function y(t,e){const n=e?"":"none";_(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:n,msUserSelect:n,webkitUserSelect:n,MozUserSelect:n})}function v(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function w(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function S(t){const e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}}function A(t,e,n){const{top:i,bottom:s,left:r,right:o}=t;return n>=i&&n<=s&&e>=r&&e<=o}function C(t,e,n){t.top+=e,t.bottom=t.top+t.height,t.left+=n,t.right=t.left+t.width}function x(t,e,n,i){const{top:s,right:r,bottom:o,left:a,width:c,height:l}=t,h=c*e,u=l*e;return i>s-u&&ia-h&&n{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:S(t)})})}handleScroll(t){const e=t.target,n=this.positions.get(e);if(!n)return null;const i=e===this._document?e.documentElement:e,s=n.scrollPosition;let r,o;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,o=t.left}else r=e.scrollTop,o=e.scrollLeft;const a=s.top-r,c=s.left-o;return this.positions.forEach((t,n)=>{t.clientRect&&e!==n&&i.contains(n)&&C(t.clientRect,a,c)}),s.top=r,s.left=o,{top:a,left:c}}}function D(t){const e=t.cloneNode(!0),n=e.querySelectorAll("[id]"),i=t.nodeName.toLowerCase();e.removeAttribute("id");for(let s=0;s{if(this.beforeStarted.next(),this._handles.length){const e=this._handles.find(e=>{const n=t.target;return!!n&&(n===e||e.contains(n))});!e||this._disabledHandles.has(e)||this.disabled||this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)},this._pointerMove=t=>{t.preventDefault();const e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging){if(Math.abs(e.x-this._pickupPositionOnPage.x)+Math.abs(e.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){if(!(Date.now()>=this._dragStartTime+this._getDragStartDelay(t)))return void this._endDragSequence(t);this._dropContainer&&this._dropContainer.isDragging()||(this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(t)))}return}this._boundaryElement&&(this._previewRect&&(this._previewRect.width||this._previewRect.height)||(this._previewRect=(this._preview||this._rootElement).getBoundingClientRect()));const n=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,e);else{const t=this._activeTransform;t.x=n.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=n.y-this._pickupPositionOnPage.y+this._passiveTransform.y,this._applyRootElementTransform(t.x,t.y),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&this._rootElement.setAttribute("transform",`translate(${t.x} ${t.y})`)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:t,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),this._parentPositions=new E(n,s),r.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=Object(c.c)(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions())}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){return this._handles=t.map(t=>Object(c.e)(t)),this._handles.forEach(t=>y(t,!1)),this._toggleNativeDragInteractions(),this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=Object(c.e)(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,F),e.addEventListener("touchstart",this._pointerDown,T)}),this._initialTransform=void 0,this._rootElement=e),"undefined"!=typeof SVGElement&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Object(c.e)(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&B(this._rootElement),B(this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){this._handles.indexOf(t)>-1&&this._disabledHandles.add(t)}enableHandle(t){this._disabledHandles.delete(t)}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview&&B(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&B(this._placeholder),this._placeholderRef&&this._placeholderRef.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging&&(this.released.next({source:this}),this._dropContainer?(this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)})):(this._passiveTransform.x=this._activeTransform.x,this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(this._getPointerPositionOnPage(t))})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this))))}_startDragSequence(t){H(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,s=this._preview=this._createPreviewElement(),r=this._placeholder=this._createPlaceholderElement(),o=this._anchor=this._anchor||this._document.createComment("");i.insertBefore(o,t),t.style.display="none",this._document.body.appendChild(i.replaceChild(r,t)),(n=this._document,n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body).appendChild(s),this.started.next({source:this}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this}),this._initialContainer=this._initialIndex=void 0;var n;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){e.stopPropagation();const n=this.isDragging(),i=H(e),s=!i&&0!==e.button,r=this._rootElement,o=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),n||s||o)return;this._handles.length&&(this._rootElementTapHighlight=r.style.webkitTapHighlightColor||"",r.style.webkitTapHighlightColor="transparent"),this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{this._updateOnScroll(t)}),this._boundaryElement&&(this._boundaryRect=S(this._boundaryElement));const a=this._previewTemplate;this._pickupPositionInElement=a&&a.template&&!a.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const c=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:c.x,y:c.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){this._rootElement.style.display="",this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._boundaryRect=this._previewRect=void 0,this._ngZone.run(()=>{const e=this._dropContainer,n=e.getItemIndex(this),i=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),r=e._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s}),e.drop(this,n,this._initialContainer,r,s,this._initialIndex),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:n,y:i}){let s=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!s&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(s=this._initialContainer),s&&s!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=s,this._dropContainer.enter(this,t,e,s===this._initialContainer&&s.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:s,currentIndex:s.getItemIndex(this)})}),this._dropContainer._startScrollingIfNecessary(n,i),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=j(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,n=t?t.template:null;let i;if(n&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(n,t.context);s.detectChanges(),i=L(s,this._document),this._previewRef=s,t.matchSize?N(i,e):i.style.transform=j(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;i=D(t),N(i,t.getBoundingClientRect())}return _(i.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),y(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>i.classList.add(t)):i.classList.add(e)),i}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=j(t.left,t.top);const e=function(t){const e=getComputedStyle(t),n=w(e,"transition-property"),i=n.find(t=>"transform"===t||"all"===t);if(!i)return 0;const s=n.indexOf(i),r=w(e,"transition-duration"),o=w(e,"transition-delay");return v(r[s])+v(o[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const n=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",n),t(),clearTimeout(i))},i=setTimeout(n,1.5*e);this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let n;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),n=L(this._placeholderRef,this._document)):n=D(this._rootElement),n.classList.add("cdk-drag-placeholder"),n}_getPointerPositionInElement(t,e){const n=this._rootElement.getBoundingClientRect(),i=t===this._rootElement?null:t,s=i?i.getBoundingClientRect():n,r=H(e)?e.targetTouches[0]:e,o=this._getViewportScrollPosition();return{x:s.left-n.left+(r.pageX-s.left-o.left),y:s.top-n.top+(r.pageY-s.top-o.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),n=H(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,i=n.pageX-e.left,s=n.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=i,e.y=s,e.matrixTransform(t.inverse())}}return{x:i,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:n,y:i}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?i=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(n=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,r=this._previewRect,o=s.top+e,a=s.bottom-(r.height-e);n=M(n,s.left+t,s.right-(r.width-t)),i=M(i,o,a)}return{x:n,y:i}}_updatePointerDirectionDelta(t){const{x:e,y:n}=t,i=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),o=Math.abs(n-s.y);return r>this._config.pointerDirectionChangeThreshold&&(i.x=e>s.x?1:-1,s.x=e),o>this._config.pointerDirectionChangeThreshold&&(i.y=n>s.y?1:-1,s.y=n),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,y(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,F),t.removeEventListener("touchstart",this._pointerDown,T)}_applyRootElementTransform(t,e){const n=j(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?n+" "+this._initialTransform:n}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const n=this._boundaryElement.getBoundingClientRect(),i=this._rootElement.getBoundingClientRect();if(0===n.width&&0===n.height||0===i.width&&0===i.height)return;const s=n.left-i.left,r=i.right-n.right,o=n.top-i.top,a=i.bottom-n.bottom;n.width>i.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,n.height>i.height?(o>0&&(e+=o),a>0&&(e-=a)):e=0,t===this._passiveTransform.x&&e===this._passiveTransform.y||this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:H(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const n=t.target;this._boundaryRect&&(n===this._document||n!==this._boundaryElement&&n.contains(this._boundaryElement))&&C(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){const t=this._parentPositions.positions.get(this._document);return t?t.scrollPosition:this._viewportRuler.getViewportScrollPosition()}}function j(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function M(t,e,n){return Math.max(e,Math.min(n,t))}function B(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function H(t){return"t"===t.type[0]}function L(t,e){const n=t.rootNodes;if(1===n.length&&n[0].nodeType===e.ELEMENT_NODE)return n[0];const i=e.createElement("div");return n.forEach(t=>i.appendChild(t)),i}function N(t,e){t.style.width=e.width+"px",t.style.height=e.height+"px",t.style.transform=j(e.left,e.top)}function V(t,e){return Math.max(0,Math.min(e,t))}class U{constructor(t,e,n,i,s){this._dragDropRegistry=e,this._ngZone=i,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=()=>!0,this.beforeStarted=new l.a,this.entered=new l.a,this.exited=new l.a,this.dropped=new l.a,this.sorted=new l.a,this._isDragging=!1,this._itemPositions=[],this._previousSwap={drag:null,delta:0,overlaps:!1},this._siblings=[],this._orientation="vertical",this._activeSiblings=new Set,this._direction="ltr",this._viewportScrollSubscription=h.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new l.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=d.a){return(!Object(p.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=d.a),new u.a(n=>(n.add(e.schedule(f,t,{subscriber:n,counter:0,period:t})),n))}(0,g.a).pipe(Object(m.a)(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?z(t,-2):2===this._verticalScrollDirection&&z(t,2),1===this._horizontalScrollDirection?W(t,-2):2===this._horizontalScrollDirection&&W(t,2)})},this.element=Object(c.e)(t),this._document=n,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new E(n,s)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){const t=Object(c.e)(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._cacheItems(),this._siblings.forEach(t=>t._startReceiving(this)),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}enter(t,e,n,i){let s;this.start(),null==i?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,n))):s=i;const r=this._activeDraggables,o=r.indexOf(t),a=t.getPlaceholderElement();let l=r[s];if(l===t&&(l=r[s+1]),o>-1&&r.splice(o,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(a,e),r.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,n)){const e=r[0].getRootElement();e.parentNode.insertBefore(a,e),r.unshift(t)}else Object(c.e)(this.element).appendChild(a),r.push(t);a.style.transform="",this._cacheItemPositions(),this._cacheParentPositions(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,n,i,s,r){this._reset(),null==r&&(r=n.getItemIndex(t)),this.dropped.next({item:t,currentIndex:e,previousIndex:r,container:this,previousContainer:n,isPointerOverContainer:i,distance:s})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(t=>t.isDragging()).every(e=>-1===t.indexOf(e))?this._reset():this._cacheItems()),this}withDirection(t){return this._direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._orientation=t,this}withScrollableParents(t){const e=Object(c.e)(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?K("horizontal"===this._orientation&&"rtl"===this._direction?this._itemPositions.slice().reverse():this._itemPositions,e=>e.drag===t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,n,i){if(this.sortingDisabled||!x(this._clientRect,.05,e,n))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,n,i);if(-1===r&&s.length>0)return;const o="horizontal"===this._orientation,a=K(s,e=>e.drag===t),c=s[r],l=c.clientRect,h=a>r?1:-1,u=this._getItemOffsetPx(s[a].clientRect,l,h),d=this._getSiblingOffsetPx(a,s,h),p=s.slice();!function(t,e,n){const i=V(e,t.length-1),s=V(n,t.length-1);if(i===s)return;const r=t[i],o=s{if(p[n]===e)return;const i=e.drag===t,s=i?u:d,r=i?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,o?(r.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,C(e.clientRect,0,s)):(r.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,C(e.clientRect,s,0))}),this._previousSwap.overlaps=A(l,e,n),this._previousSwap.drag=c.drag,this._previousSwap.delta=o?i.x:i.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let n,i=0,s=0;if(this._parentPositions.positions.forEach((r,o)=>{o!==this._document&&r.clientRect&&!n&&x(r.clientRect,.05,t,e)&&([i,s]=function(t,e,n,i){const s=q(e,i),r=G(e,n);let o=0,a=0;if(s){const e=t.scrollTop;1===s?e>0&&(o=1):t.scrollHeight-e>t.clientHeight&&(o=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(a=1):t.scrollWidth-e>t.clientWidth&&(a=2)}return[o,a]}(o,r.clientRect,t,e),(i||s)&&(n=o))}),!i&&!s){const{width:r,height:o}=this._viewportRuler.getViewportSize(),a={width:r,height:o,top:0,right:r,bottom:o,left:0};i=q(a,e),s=G(a,t),n=window}!n||i===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&n===this._scrollNode||(this._verticalScrollDirection=i,this._horizontalScrollDirection=s,this._scrollNode=n,(i||s)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_cacheParentPositions(){const t=Object(c.e)(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_cacheItemPositions(){const t="horizontal"===this._orientation;this._itemPositions=this._activeDraggables.map(t=>{const e=t.getVisibleElement();return{drag:t,offset:0,clientRect:S(e)}}).sort((e,n)=>t?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_reset(){this._isDragging=!1;const t=Object(c.e)(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._activeDraggables.forEach(t=>{const e=t.getRootElement();e&&(e.style.transform="")}),this._siblings.forEach(t=>t._stopReceiving(this)),this._activeDraggables=[],this._itemPositions=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1,this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_getSiblingOffsetPx(t,e,n){const i="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*n];let o=s[i?"width":"height"]*n;if(r){const t=i?"left":"top",e=i?"right":"bottom";-1===n?o-=r.clientRect[t]-s[e]:o+=s[t]-r.clientRect[e]}return o}_getItemOffsetPx(t,e,n){const i="horizontal"===this._orientation;let s=i?e.left-t.left:e.top-t.top;return-1===n&&(s+=i?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const n=this._itemPositions,i="horizontal"===this._orientation;if(n[0].drag!==this._activeDraggables[0]){const s=n[n.length-1].clientRect;return i?t>=s.right:e>=s.bottom}{const s=n[0].clientRect;return i?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,n,i){const s="horizontal"===this._orientation;return K(this._itemPositions,({drag:r,clientRect:o},a,c)=>{if(r===t)return c.length<2;if(i){const t=s?i.x:i.y;if(r===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(o.left)&&e=Math.floor(o.top)&&ni._canReceive(t,e,n))}_canReceive(t,e,n){if(!A(this._clientRect,e,n)||!this.enterPredicate(t,this))return!1;const i=this._getShadowRoot().elementFromPoint(e,n);if(!i)return!1;const s=Object(c.e)(this.element);return i===s||s.contains(i)}_startReceiving(t){const e=this._activeSiblings;e.has(t)||(e.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scroll.subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&(this._itemPositions.forEach(({clientRect:t})=>{C(t,e.top,e.left)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()}))}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=Object(a.c)(Object(c.e)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}function K(t,e){for(let n=0;n=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}function G(t,e){const{left:n,right:i,width:s}=t,r=.05*s;return e>=n-r&&e<=n+r?1:e>=i-r&&e<=i+r?2:0}const Y=Object(a.f)({passive:!1,capture:!0});let Q=(()=>{class t{constructor(t,e){this._ngZone=t,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=new Set,this._globalListeners=new Map,this.pointerMove=new l.a,this.pointerUp=new l.a,this.scroll=new l.a,this._preventDefaultWhileDragging=t=>{this._activeDragInstances.size&&t.preventDefault()},this._persistentTouchmoveListener=t=>{this._activeDragInstances.size&&(t.preventDefault(),this.pointerMove.next(t))},this._document=e}registerDropContainer(t){this._dropInstances.has(t)||this._dropInstances.add(t)}registerDragItem(t){this._dragInstances.add(t),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Y)})}removeDropContainer(t){this._dropInstances.delete(t)}removeDragItem(t){this._dragInstances.delete(t),this.stopDragging(t),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Y)}startDragging(t,e){if(!this._activeDragInstances.has(t)&&(this._activeDragInstances.add(t),1===this._activeDragInstances.size)){const t=e.type.startsWith("touch");this._globalListeners.set(t?"touchend":"mouseup",{handler:t=>this.pointerUp.next(t),options:!0}).set("scroll",{handler:t=>this.scroll.next(t),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Y}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:Y}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((t,e)=>{this._document.addEventListener(e,t.handler,t.options)})})}}stopDragging(t){this._activeDragInstances.delete(t),0===this._activeDragInstances.size&&this._clearGlobalListeners()}isDragging(t){return this._activeDragInstances.has(t)}ngOnDestroy(){this._dragInstances.forEach(t=>this.removeDragItem(t)),this._dropInstances.forEach(t=>this.removeDropContainer(t)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((t,e)=>{this._document.removeEventListener(e,t.handler,t.options)}),this._globalListeners.clear()}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(s.B),s.Wb(r.d))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(s.B),Object(s.Wb)(r.d))},token:t,providedIn:"root"}),t})();const X={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Z=(()=>{class t{constructor(t,e,n,i){this._document=t,this._ngZone=e,this._viewportRuler=n,this._dragDropRegistry=i}createDrag(t,e=X){return new P(t,e,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(t){return new U(t,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(r.d),s.Wb(s.B),s.Wb(o.e),s.Wb(Q))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(r.d),Object(s.Wb)(s.B),Object(s.Wb)(o.e),Object(s.Wb)(Q))},token:t,providedIn:"root"}),t})(),J=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[Z],imports:[o.b]}),t})();var $=n("+rOU"),tt=n("FtGj");n("LRne");let et=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[b.a]]}),t})();var nt=n("f6nW");n("0EQZ"),n("7+OI"),n("2Vo4"),n("pLZG");let it=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)}}),t})();var st=n("/1cH"),rt=n("FKr1");n("R1ws");let ot=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.a,rt.j],rt.j]}),t})();var at=n("rDax");n("0MNC"),n("R0Ic");let ct=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[at.f,rt.j,$.g],rt.j]}),t})();var lt=n("bTqV"),ht=n("3Pt+");let ut=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[rt.j,rt.t],rt.j]}),t})(),dt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[rt.j],rt.j]}),t})();var pt=n("GU7r");let ft=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)}}),t})(),gt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[rt.t,rt.j,pt.c,ft],rt.j,ft]}),t})();var mt=n("kmnG");const bt=new s.s("mat-chips-default-options"),_t={separatorKeyCodes:[tt.g]};let yt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[rt.d,{provide:bt,useValue:_t}]}),t})();var vt=n("iadO"),wt=n("0IaG");let St=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[rt.j],rt.j]}),t})();var At=n("7EHt"),Ct=n("zkoq");n("z6cu"),n("cp0P"),n("JIr8"),n("nYR2"),n("w1tV"),n("tk/3"),n("jhN1");let xt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[rt.j],rt.j]}),t})();var Et=n("qFsG");let Dt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[rt.l,rt.t,rt.j,rt.r,r.c],rt.l,rt.j,rt.r,St]}),t})();n("7Hc7"),n("3E0/");const kt={provide:new s.s("mat-menu-scroll-strategy"),deps:[at.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Ot=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[kt],imports:[rt.j]}),t})(),Rt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[kt],imports:[[r.c,rt.j,rt.t,at.f,Ot],o.b,rt.j,Ot]}),t})();var It=n("M9IT");n("xgIS");let Tt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[r.c,rt.j],rt.j]}),t})(),Ft=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[rt.j,r.c],rt.j]}),t})(),Pt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[rt.t,rt.j],rt.j]}),t})();var jt=n("d3UM");n("7o/Q"),n("/uUt"),n("Kj3r");let Mt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[r.c,rt.j,a.b,o.b],o.b,rt.j]}),t})(),Bt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)}}),t})(),Ht=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[Bt,rt.t,rt.j,pt.c],Bt,rt.j]}),t})(),Lt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[r.c,rt.j],rt.j]}),t})();var Nt=n("dNgK"),Vt=n("Dh3D");let Ut=(()=>{class t{constructor(){this.changes=new l.a,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Kt={provide:Ut,deps:[[new s.C,new s.L,Ut]],useFactory:function(t){return t||new Ut}};let zt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[Kt,rt.d],imports:[[rt.j,r.c,$.g,lt.b,et,xt,rt.t],rt.j]}),t})();var Wt=n("+0xr"),qt=n("wZkO");let Gt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[rt.j],rt.j]}),t})();var Yt=n("Qu3c");let Qt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[it,rt.j],rt.j]}),t})(),Xt=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[i.a,et,nt.r,it,J,st.a,ot,ct,lt.b,ut,dt,gt,yt,zt,vt.c,wt.b,St,At.b,Ct.b,xt,Et.c,Dt,Rt,rt.m,It.b,Tt,Ft,Pt,rt.t,jt.b,Mt,Lt,Ht,Nt.b,Vt.c,Wt.l,qt.c,Gt,Yt.b,Qt,$.g,o.d,mt.d,ht.o,ct,Lt,Ht,Dt,Mt,Lt,Ht]}),t})()},cp0P:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("HDdC"),s=n("DH7j"),r=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function c(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return l(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(r.a)(t=>e(...t)))}return l(t,null)}function l(t,e){return new i.a(n=>{const i=t.length;if(0===i)return void n.complete();const s=new Array(i);let r=0,o=0;for(let c=0;c{h||(h=!0,o++),s[c]=t},error:t=>n.error(t),complete:()=>{r++,r!==i&&h||(o===i&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}},d3UM:function(t,e,n){"use strict";n.d(e,"a",(function(){return z})),n.d(e,"b",(function(){return W}));var i=n("rDax"),s=n("ofXK"),r=n("fXoL"),o=n("FKr1"),a=n("kmnG"),c=n("vxfF"),l=n("u47x"),h=n("8LU1"),u=n("0EQZ"),d=n("FtGj"),p=n("XNiG"),f=n("NXyV"),g=n("VRyK"),m=n("JX91"),b=n("eIep"),_=n("IzEk"),y=n("pLZG"),v=n("lJxs"),w=n("/uUt"),S=n("1G5W"),A=n("R0Ic"),C=n("cH1L"),x=n("3Pt+");const E=["trigger"],D=["panel"];function k(t,e){if(1&t&&(r.Sb(0,"span",8),r.Dc(1),r.Rb()),2&t){const t=r.dc();r.Bb(1),r.Ec(t.placeholder||"\xa0")}}function O(t,e){if(1&t&&(r.Sb(0,"span"),r.Dc(1),r.Rb()),2&t){const t=r.dc(2);r.Bb(1),r.Ec(t.triggerValue||"\xa0")}}function R(t,e){1&t&&r.hc(0,0,["*ngSwitchCase","true"])}function I(t,e){if(1&t&&(r.Sb(0,"span",9),r.Cc(1,O,2,1,"span",10),r.Cc(2,R,1,0,"ng-content",11),r.Rb()),2&t){const t=r.dc();r.jc("ngSwitch",!!t.customTrigger),r.Bb(2),r.jc("ngSwitchCase",!0)}}function T(t,e){if(1&t){const t=r.Tb();r.Sb(0,"div",12),r.Sb(1,"div",13,14),r.Zb("@transformPanel.done",(function(e){return r.sc(t),r.dc()._panelDoneAnimatingStream.next(e.toState)}))("keydown",(function(e){return r.sc(t),r.dc()._handleKeydown(e)})),r.hc(3,1),r.Rb(),r.Rb()}if(2&t){const t=r.dc();r.jc("@transformPanelWrap",void 0),r.Bb(1),r.Db("mat-select-panel ",t._getPanelTheme(),""),r.zc("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.jc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.Cb("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const F=[[["mat-select-trigger"]],"*"],P=["mat-select-trigger","*"],j={transformPanelWrap:Object(A.n)("transformPanelWrap",[Object(A.m)("* => void",Object(A.i)("@transformPanel",[Object(A.f)()],{optional:!0}))]),transformPanel:Object(A.n)("transformPanel",[Object(A.k)("void",Object(A.l)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(A.k)("showing",Object(A.l)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(A.k)("showing-multiple",Object(A.l)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(A.m)("void => *",Object(A.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(A.m)("* => void",Object(A.e)("100ms 25ms linear",Object(A.l)({opacity:0})))])};let M=0;const B=new r.s("mat-select-scroll-strategy"),H=new r.s("MAT_SELECT_CONFIG"),L={provide:B,deps:[i.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class N{constructor(t,e){this.source=t,this.value=e}}class V{constructor(t,e,n,i,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=s}}const U=Object(o.y)(Object(o.C)(Object(o.z)(Object(o.A)(V)))),K=new r.s("MatSelectTrigger");let z=(()=>{class t extends U{constructor(t,e,n,i,s,o,a,c,l,h,u,d,w,S){super(s,i,a,c,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=n,this._dir=o,this._parentFormField=l,this.ngControl=h,this._liveAnnouncer=w,this._panelOpen=!1,this._required=!1,this._scrollTop=0,this._multiple=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+M++,this._triggerAriaLabelledBy=null,this._destroy=new p.a,this._triggerFontSize=0,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+M++,this._transformOrigin="top",this._panelDoneAnimatingStream=new p.a,this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],this._disableOptionCentering=!1,this._focused=!1,this.controlType="mat-select",this.ariaLabel="",this.optionSelectionChanges=Object(f.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(m.a)(t),Object(b.a)(()=>Object(g.a)(...t.map(t=>t.onSelectionChange)))):this._ngZone.onStable.pipe(Object(_.a)(1),Object(b.a)(()=>this.optionSelectionChanges))}),this.openedChange=new r.o,this._openedStream=this.openedChange.pipe(Object(y.a)(t=>t),Object(v.a)(()=>{})),this._closedStream=this.openedChange.pipe(Object(y.a)(t=>!t),Object(v.a)(()=>{})),this.selectionChange=new r.o,this.valueChange=new r.o,this.ngControl&&(this.ngControl.valueAccessor=this),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id,S&&(null!=S.disableOptionCentering&&(this.disableOptionCentering=S.disableOptionCentering),null!=S.typeaheadDebounceInterval&&(this.typeaheadDebounceInterval=S.typeaheadDebounceInterval))}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get required(){return this._required}set required(t){this._required=Object(h.c)(t),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(h.c)(t)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(t){this._disableOptionCentering=Object(h.c)(t)}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){t!==this._value&&(this.options&&this._setSelectionByValue(t),this._value=t)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(t){this._typeaheadDebounceInterval=Object(h.f)(t)}get id(){return this._id}set id(t){this._id=t||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new u.c(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Object(w.a)(),Object(S.a)(this._destroy)).subscribe(()=>{this.panelOpen?(this._scrollTop=0,this.openedChange.emit(!0)):(this.openedChange.emit(!1),this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck())}),this._viewportRuler.change().pipe(Object(S.a)(this._destroy)).subscribe(()=>{this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(S.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(m.a)(null),Object(S.a)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){const e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}ngOnChanges(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.pipe(Object(_.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(t){this.value=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const t=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}_handleClosedKeydown(t){const e=t.keyCode,n=e===d.e||e===d.q||e===d.j||e===d.n,i=e===d.g||e===d.o,s=this._keyManager;if(!s.isTyping()&&i&&!Object(d.t)(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const n=this.selected;n&&e!==n&&this._liveAnnouncer.announce(n.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,n=t.keyCode,i=n===d.e||n===d.q,s=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(s||n!==d.g&&n!==d.o||!e.activeItem||Object(d.t)(t))if(!s&&this._multiple&&n===d.a&&t.ctrlKey){t.preventDefault();const e=this.options.some(t=>!t.disabled&&!t.selected);this.options.forEach(t=>{t.disabled||(e?t.select():t.deselect())})}else{const n=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==n&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this.overlayDir.positionChange.pipe(Object(_.a)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this.multiple&&t)Array.isArray(t),this._selectionModel.clear(),t.forEach(t=>this._selectValue(t)),this._sortValues();else{this._selectionModel.clear();const e=this._selectValue(t);e?this._keyManager.updateActiveItem(e):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectValue(t){const e=this.options.find(e=>{try{return null!=e.value&&this._compareWith(e.value,t)}catch(n){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new l.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(S.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(S.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollActiveOptionIntoView():this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(g.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(S.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(g.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(S.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,n)=>this.sortComparator?this.sortComparator(e,n,t):t.indexOf(e)-t.indexOf(n)),this.stateChanges.next()}}_propagateChanges(t){let e=null;e=this.multiple?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new N(this,e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_scrollActiveOptionIntoView(){const t=this._keyManager.activeItemIndex||0,e=Object(o.v)(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=Object(o.w)((t+e)*n,n,this.panel.nativeElement.scrollTop,256)}focus(t){this._elementRef.nativeElement.focus(t)}_getOptionIndex(t){return this.options.reduce((e,n,i)=>void 0!==e?e:t===n?i:void 0,void 0)}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n;let s=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);s+=Object(o.v)(s,this.options,this.optionGroups);const r=n/2;this._scrollTop=this._calculateOverlayScroll(s,r,i),this._offsetY=this._calculateOverlayOffsetY(s,r,i),this._checkOverlayWithinViewport(i)}_calculateOverlayScroll(t,e,n){const i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const t=this._getLabelId();return this.ariaLabelledby?t+" "+this.ariaLabelledby:t}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getLabelId(){var t;return(null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId())||""}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),n=this._isRtl(),i=this.multiple?56:32;let s;if(this.multiple)s=40;else{let t=this._selectionModel.selected[0]||this.options.first;s=t&&t.group?32:16}n||(s*=-1);const r=0-(t.left+s-(n?i:0)),o=t.right+s-e.width+(n?0:i);r>0?s+=r+8:o>0&&(s-=o+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,n){const i=this._getItemHeight(),s=(i-this._triggerRect.height)/2,r=Math.floor(256/i);let o;return this._disableOptionCentering?0:(o=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-r))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*o-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,s=n.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),o=Math.min(this._getItemCount()*e,256)-r-this._triggerRect.height;o>s?this._adjustPanelUp(o,s):r>i?this._adjustPanelDown(r,i,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,n){const i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemCount(){return this.options.length+this.optionGroups.length}_getItemHeight(){return 3*this._triggerFontSize}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(c.e),r.Mb(r.h),r.Mb(r.B),r.Mb(o.d),r.Mb(r.l),r.Mb(C.b,8),r.Mb(x.m,8),r.Mb(x.g,8),r.Mb(a.a,8),r.Mb(x.k,10),r.Xb("tabindex"),r.Mb(B),r.Mb(l.k),r.Mb(H,8))},t.\u0275cmp=r.Gb({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(r.Fb(n,K,!0),r.Fb(n,o.n,!0),r.Fb(n,o.g,!0)),2&t&&(r.pc(i=r.ac())&&(e.customTrigger=i.first),r.pc(i=r.ac())&&(e.options=i),r.pc(i=r.ac())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(r.Ic(E,!0),r.Ic(D,!0),r.Ic(i.a,!0)),2&t&&(r.pc(n=r.ac())&&(e.trigger=n.first),r.pc(n=r.ac())&&(e.panel=n.first),r.pc(n=r.ac())&&(e.overlayDir=n.first))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.Zb("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(){return e._onFocus()}))("blur",(function(){return e._onBlur()})),2&t&&(r.Cb("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),r.Eb("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],id:"id",disableOptionCentering:"disableOptionCentering",typeaheadDebounceInterval:"typeaheadDebounceInterval",placeholder:"placeholder",required:"required",multiple:"multiple",compareWith:"compareWith",value:"value",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[r.Ab([{provide:a.c,useExisting:t},{provide:o.h,useExisting:t}]),r.yb,r.zb],ngContentSelectors:P,decls:9,vars:10,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(r.ic(F),r.Sb(0,"div",0,1),r.Zb("click",(function(){return e.toggle()})),r.Sb(3,"div",2),r.Cc(4,k,2,1,"span",3),r.Cc(5,I,3,2,"span",4),r.Rb(),r.Sb(6,"div",5),r.Nb(7,"div",6),r.Rb(),r.Rb(),r.Cc(8,T,4,14,"ng-template",7),r.Zb("backdropClick",(function(){return e.close()}))("attach",(function(){return e._onAttached()}))("detach",(function(){return e.close()}))),2&t){const t=r.qc(1);r.Bb(3),r.jc("ngSwitch",e.empty),r.Cb("id",e._valueId),r.Bb(1),r.jc("ngSwitchCase",!0),r.Bb(1),r.jc("ngSwitchCase",!1),r.Bb(3),r.jc("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[i.b,s.n,s.o,i.a,s.p,s.j],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[j.transformPanelWrap,j.transformPanel]},changeDetection:0}),t})(),W=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},providers:[L],imports:[[s.c,i.f,o.o,o.j],c.b,a.d,o.o,o.j]}),t})()},dNgK:function(t,e,n){"use strict";n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return C}));var i=n("rDax"),s=n("+rOU"),r=n("ofXK"),o=n("fXoL"),a=n("FKr1"),c=n("bTqV"),l=n("XNiG"),h=n("IzEk"),u=n("1G5W"),d=n("R0Ic"),p=n("u47x"),f=n("0MNC");function g(t,e){if(1&t){const t=o.Tb();o.Sb(0,"div",1),o.Sb(1,"button",2),o.Zb("click",(function(){return o.sc(t),o.dc().action()})),o.Dc(2),o.Rb(),o.Rb()}if(2&t){const t=o.dc();o.Bb(2),o.Ec(t.data.action)}}function m(t,e){}const b=new o.s("MatSnackBarData");class _{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const y=Math.pow(2,31)-1;class v{constructor(t,e){this._overlayRef=e,this._afterDismissed=new l.a,this._afterOpened=new l.a,this._onAction=new l.a,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe(()=>this.dismiss()),t._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())}closeWithAction(){this.dismissWithAction()}_dismissAfter(t){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(t,y))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}}let w=(()=>{class t{constructor(t,e){this.snackBarRef=t,this.data=e}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(v),o.Mb(b))},t.\u0275cmp=o.Gb({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(o.Sb(0,"span"),o.Dc(1),o.Rb(),o.Cc(2,g,3,1,"div",0)),2&t&&(o.Bb(1),o.Ec(e.data.message),o.Bb(1),o.jc("ngIf",e.hasAction))},directives:[r.l,c.a],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t})();const S={snackBarState:Object(d.n)("state",[Object(d.k)("void, hidden",Object(d.l)({transform:"scale(0.8)",opacity:0})),Object(d.k)("visible",Object(d.l)({transform:"scale(1)",opacity:1})),Object(d.m)("* => visible",Object(d.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(d.m)("* => void, * => hidden",Object(d.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(d.l)({opacity:0})))])};let A=(()=>{class t extends s.a{constructor(t,e,n,i){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=n,this.snackBarConfig=i,this._destroyed=!1,this._onExit=new l.a,this._onEnter=new l.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._role="assertive"!==i.politeness||i.announcementMessage?"off"===i.politeness?null:"status":"alert"}attachComponentPortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}onAnimationEnd(t){const{fromState:e,toState:n}=t;if(("void"===n&&"void"!==e||"hidden"===n)&&this._completeExit(),"visible"===n){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),this._onExit}ngOnDestroy(){this._destroyed=!0,this._completeExit()}_completeExit(){this._ngZone.onMicrotaskEmpty.pipe(Object(h.a)(1)).subscribe(()=>{this._onExit.next(),this._onExit.complete()})}_applySnackBarClasses(){const t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(e=>t.classList.add(e)):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}}return t.\u0275fac=function(e){return new(e||t)(o.Mb(o.B),o.Mb(o.l),o.Mb(o.h),o.Mb(_))},t.\u0275cmp=o.Gb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&o.xc(s.c,!0),2&t&&o.pc(n=o.ac())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&o.Ac("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(o.Cb("role",e._role),o.Bc("@state",e._animationState))},features:[o.yb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&o.Cc(0,m,0,0,"ng-template",0)},directives:[s.c],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[S.snackBarState]}}),t})(),C=(()=>{class t{}return t.\u0275mod=o.Kb({type:t}),t.\u0275inj=o.Jb({factory:function(e){return new(e||t)},imports:[[i.f,s.g,r.c,c.b,a.j],a.j]}),t})();const x=new o.s("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new _}});let E=(()=>{class t{constructor(t,e,n,i,s,r){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=s,this._defaultConfig=r,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=w,this.snackBarContainerComponent=A,this.handsetCssClass="mat-snack-bar-handset"}get _openedSnackBarRef(){const t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}openFromComponent(t,e){return this._attach(t,e)}openFromTemplate(t,e){return this._attach(t,e)}open(t,e="",n){const i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const n=o.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:_,useValue:e}]}),i=new s.d(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}_attach(t,e){const n=Object.assign(Object.assign(Object.assign({},new _),this._defaultConfig),e),i=this._createOverlay(n),r=this._attachSnackBarContainer(i,n),a=new v(r,i);if(t instanceof o.N){const e=new s.h(t,null,{$implicit:n.data,snackBarRef:a});a.instance=r.attachTemplatePortal(e)}else{const e=this._createInjector(n,a),i=new s.d(t,void 0,e),o=r.attachComponentPortal(i);a.instance=o.instance}return this._breakpointObserver.observe(f.b.HandsetPortrait).pipe(Object(u.a)(i.detachments())).subscribe(t=>{const e=i.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),this._animateSnackBar(a,n),this._openedSnackBarRef=a,this._openedSnackBarRef}_animateSnackBar(t,e){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),e.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(e.duration)),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)}_createOverlay(t){const e=new i.d;e.direction=t.direction;let n=this._overlay.position().global();const s="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!s||"end"===t.horizontalPosition&&s,o=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}_createInjector(t,e){return o.t.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:v,useValue:e},{provide:b,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(o.Wb(i.c),o.Wb(p.k),o.Wb(o.t),o.Wb(f.a),o.Wb(t,12),o.Wb(x))},t.\u0275prov=Object(o.Ib)({factory:function(){return new t(Object(o.Wb)(i.c),Object(o.Wb)(p.k),Object(o.Wb)(o.p),Object(o.Wb)(f.a),Object(o.Wb)(t,12),Object(o.Wb)(x))},token:t,providedIn:C}),t})()},eIep:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("l7GE"),s=n("51Dv"),r=n("ZUHj"),o=n("lJxs"),a=n("Cfvw");function c(t,e){return"function"==typeof e?n=>n.pipe(c((n,i)=>Object(a.a)(t(n,i)).pipe(Object(o.a)((t,s)=>e(n,t,i,s))))):e=>e.lift(new l(t))}class l{constructor(t){this.project=t}call(t,e){return e.subscribe(new h(t,this.project))}}class h extends i.a{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(i){return void this.destination.error(i)}this._innerSub(e,t,n)}_innerSub(t,e,n){const i=this.innerSubscription;i&&i.unsubscribe();const o=new s.a(this,e,n),a=this.destination;a.add(o),this.innerSubscription=Object(r.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&a.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(t){this.destination.remove(t),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(t,e,n,i,s){this.destination.next(e)}}},eNwd:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("3N8a");class s extends i.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 r=n("IjjT");class o extends r.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let n,i=-1,s=e.length;t=t||e.shift();do{if(n=t.execute(t.state,t.delay))break}while(++i{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkCellDef",""]]}),t})(),x=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),E=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class D{}const k=w(D);let O=(()=>{class t extends k{constructor(t){super(),this._table=t,this._stickyEnd=!1}get name(){return this._name}set name(t){this._setNameInput(t)}get stickyEnd(){return this._stickyEnd}set stickyEnd(t){const e=this._stickyEnd;this._stickyEnd=Object(i.c)(t),this._hasStickyChanged=e!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=["cdk-column-"+this.cssClassFriendlyName]}_setNameInput(t){t&&(this._name=t,this.cssClassFriendlyName=t.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(S,8))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,n){var i;1&t&&(r.Fb(n,C,!0),r.Fb(n,x,!0),r.Fb(n,E,!0)),2&t&&(r.pc(i=r.ac())&&(e.cell=i.first),r.pc(i=r.ac())&&(e.headerCell=i.first),r.pc(i=r.ac())&&(e.footerCell=i.first))},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[r.Ab([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),r.yb]}),t})();class R{constructor(t,e){const n=e.nativeElement.classList;for(const i of t._columnCssClassName)n.add(i)}}let I=(()=>{class t extends R{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(O),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[r.yb]}),t})(),T=(()=>{class t extends R{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(O),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[r.yb]}),t})(),F=(()=>{class t extends R{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(O),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[r.yb]}),t})();class P{constructor(){this.tasks=[],this.endTasks=[]}}const j=new r.s("_COALESCED_STYLE_SCHEDULER");let M=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new l.a}schedule(t){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(t)}scheduleEnd(t){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(t)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new P,this._getScheduleObservable().pipe(Object(f.a)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const t=this._currentSchedule;this._currentSchedule=new P;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Object(h.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(g.a)(1))}}return t.\u0275fac=function(e){return new(e||t)(r.Wb(r.B))},t.\u0275prov=r.Ib({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e){this.template=t,this._differs=e}ngOnChanges(t){if(!this._columnsDiffer){const e=t.columns&&t.columns.currentValue||[];this._columnsDiffer=this._differs.find(e).create(),this._columnsDiffer.diff(e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(t){return this instanceof N?t.headerCell.template:this instanceof K?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N),r.Mb(r.u))},t.\u0275dir=r.Hb({type:t,features:[r.zb]}),t})();class H extends B{}const L=w(H);let N=(()=>{class t extends L{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N),r.Mb(r.u),r.Mb(S,8))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[r.yb,r.zb]}),t})();class V extends B{}const U=w(V);let K=(()=>{class t extends U{constructor(t,e,n){super(t,e),this._table=n}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N),r.Mb(r.u),r.Mb(S,8))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[r.yb,r.zb]}),t})(),z=(()=>{class t extends B{constructor(t,e,n){super(t,e),this._table=n}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N),r.Mb(r.u),r.Mb(S,8))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[r.yb]}),t})(),W=(()=>{class t{constructor(e){this._viewContainer=e,t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.R))},t.\u0275dir=r.Hb({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),q=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Gb({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&r.Ob(0,0)},directives:[W],encapsulation:2}),t})(),G=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Gb({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&r.Ob(0,0)},directives:[W],encapsulation:2}),t})(),Y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Gb({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&r.Ob(0,0)},directives:[W],encapsulation:2}),t})(),Q=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.N))},t.\u0275dir=r.Hb({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const X=["top","bottom","left","right"];class Z{constructor(t,e,n,i,s=!0,r=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=n,this._coalescedStyleScheduler=i,this._isBrowser=s,this._needsPositionStickyOnElement=r}clearStickyPositioning(t,e){const n=[];for(const i of t)if(i.nodeType===i.ELEMENT_NODE){n.push(i);for(let t=0;t{for(const t of n)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,n){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!n.some(t=>t))return;const i=t[0],s=i.children.length,r=this._getCellWidths(i),o=this._getStickyStartColumnPositions(r,e),a=this._getStickyEndColumnPositions(r,n);this._scheduleStyleChanges(()=>{const i="rtl"===this.direction,r=i?"right":"left",c=i?"left":"right";for(const l of t)for(let t=0;t{for(let t=0;t{e.some(t=>!t)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0)})}_removeStickyStyle(t,e){for(const n of e)t.style[n]="";X.some(n=>-1===e.indexOf(n)&&t.style[n])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,n){t.classList.add(this._stickCellCss),t.style[e]=n+"px",t.style.zIndex=this._getCalculatedZIndex(t),this._needsPositionStickyOnElement&&(t.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(t){const e={top:100,bottom:10,left:1,right:1};let n=0;for(const i of X)t.style[i]&&(n+=e[i]);return n?""+n:""}_getCellWidths(t){const e=[],n=t.children;for(let i=0;i0;s--)e[s]&&(n[s]=i,i+=t[s]);return n}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}let J=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.R),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["","rowOutlet",""]]}),t})(),$=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.R),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["","headerRowOutlet",""]]}),t})(),tt=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.R),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["","footerRowOutlet",""]]}),t})(),et=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.R),r.Mb(r.l))},t.\u0275dir=r.Hb({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),nt=(()=>{class t{constructor(t,e,n,i,s,r,o,a,c){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=s,this._platform=o,this._viewRepeater=a,this._coalescedStyleScheduler=c,this._onDestroy=new l.a,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this.viewChange=new u.a({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=r,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(t){this._trackByFn=t}get dataSource(){return this._dataSource}set dataSource(t){this._dataSource!==t&&this._switchDataSource(t)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(t){this._multiTemplateDataRows=Object(i.c)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e)}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():t&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Object(s.h)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const t=this._dataDiffer.diff(this._renderRows);if(!t)return void this._updateNoDataRow();const e=this._rowOutlet.viewContainer;this._viewRepeater?this._viewRepeater.applyChanges(t,e,(t,e,n)=>this._getEmbeddedViewArgs(t.item,n),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation((t,n,i)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,i,{$implicit:e.data})}else if(null==i)e.remove(n);else{const t=e.get(n);e.move(t,i)}}),this._updateRowIndexContext(),t.forEachIdentityChange(t=>{e.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}addColumnDef(t){this._customColumnDefs.add(t)}removeColumnDef(t){this._customColumnDefs.delete(t)}addRowDef(t){this._customRowDefs.add(t)}removeRowDef(t){this._customRowDefs.delete(t)}addHeaderRowDef(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}removeHeaderRowDef(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}addFooterRowDef(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}removeFooterRowDef(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const n=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyFooterRowStyles(){const t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");const n=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),n=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning([...t,...e,...n],["left","right"]),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const n=[];for(let i=0;i{this._addStickyColumnStyles([t],this._footerRowDefs[e])}),Array.from(this._columnDefsByName.values()).forEach(t=>t.resetStickyChanged())}_getAllRenderRows(){const t=[],e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let n=0;n{const s=n&&n.has(i)?n.get(i):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:i,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),it(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=it(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=it(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=it(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const t=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=t[0]}_renderUpdatedColumns(){const t=(t,e)=>t||!!e.getColumnsDiff(),e=this._rowDefs.reduce(t,!1);e&&this._forceRenderDataRows();const n=this._headerRowDefs.reduce(t,!1);n&&this._forceRenderHeaderRows();const i=this._footerRowDefs.reduce(t,!1);return i&&this._forceRenderFooterRows(),e||n||i}_switchDataSource(t){this._data=[],Object(s.h)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t}_observeRenderChanges(){if(!this.dataSource)return;let t;Object(s.h)(this.dataSource)?t=this.dataSource.connect(this):Object(d.a)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(p.a)(this.dataSource)),this._renderChangeSubscription=t.pipe(Object(f.a)(this._onDestroy)).subscribe(t=>{this._data=t||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((t,e)=>this._renderRow(this._headerRowOutlet,t,e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((t,e)=>this._renderRow(this._footerRowOutlet,t,e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(t,e){const n=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),i=n.map(t=>t.sticky),s=n.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,i,s)}_getRenderedRows(t){const e=[];for(let n=0;n!n.when||n.when(e,t));else{let i=this._rowDefs.find(n=>n.when&&n.when(e,t))||this._defaultRowDef;i&&n.push(i)}return n}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,n,i={}){const s=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),s}_renderCellTemplateForItem(t,e){for(let n of this._getCellTemplates(t))W.mostRecentCellOutlet&&W.mostRecentCellOutlet._viewContainer.createEmbeddedView(n,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,n=t.length;e{const n=this._columnDefsByName.get(e);return t.extractCellTemplate(n)}):[]}_applyNativeTableSections(){const t=this._document.createDocumentFragment(),e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const n of e){const e=this._document.createElement(n.tag);e.setAttribute("role","rowgroup");for(const t of n.outlets)e.appendChild(t.elementRef.nativeElement);t.appendChild(e)}this._elementRef.nativeElement.appendChild(t)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const t=(t,e)=>t||e.hasStickyChanged();this._headerRowDefs.reduce(t,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(t,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(t,!1)&&this.updateStickyColumnStyles()}_setupStickyStyler(){this._stickyStyler=new Z(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Object(p.a)()).pipe(Object(f.a)(this._onDestroy)).subscribe(t=>{this._stickyStyler.direction=t,this.updateStickyColumnStyles()})}_getOwnDefs(t){return t.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){if(this._noDataRow){const t=0===this._rowOutlet.viewContainer.length;if(t!==this._isShowingNoDataRow){const e=this._noDataRowOutlet.viewContainer;t?e.createEmbeddedView(this._noDataRow.templateRef):e.clear(),this._isShowingNoDataRow=t}}}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(r.u),r.Mb(r.h),r.Mb(r.l),r.Xb("role"),r.Mb(o.b,8),r.Mb(c.d),r.Mb(a.a),r.Mb(s.g,8),r.Mb(j,8))},t.\u0275cmp=r.Gb({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,n){var i;1&t&&(r.Fb(n,Q,!0),r.Fb(n,O,!0),r.Fb(n,z,!0),r.Fb(n,N,!0),r.Fb(n,K,!0)),2&t&&(r.pc(i=r.ac())&&(e._noDataRow=i.first),r.pc(i=r.ac())&&(e._contentColumnDefs=i),r.pc(i=r.ac())&&(e._contentRowDefs=i),r.pc(i=r.ac())&&(e._contentHeaderRowDefs=i),r.pc(i=r.ac())&&(e._contentFooterRowDefs=i))},viewQuery:function(t,e){var n;1&t&&(r.xc(J,!0),r.xc($,!0),r.xc(tt,!0),r.xc(et,!0)),2&t&&(r.pc(n=r.ac())&&(e._rowOutlet=n.first),r.pc(n=r.ac())&&(e._headerRowOutlet=n.first),r.pc(n=r.ac())&&(e._footerRowOutlet=n.first),r.pc(n=r.ac())&&(e._noDataRowOutlet=n.first))},hostAttrs:[1,"cdk-table"],inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows"},exportAs:["cdkTable"],features:[r.Ab([{provide:S,useExisting:t},{provide:s.g,useClass:s.e},{provide:j,useClass:M}])],ngContentSelectors:_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(r.ic(b),r.hc(0),r.hc(1,1),r.Ob(2,0),r.Ob(3,1),r.Ob(4,2),r.Ob(5,3))},directives:[$,J,et,tt],encapsulation:2}),t})();function it(t,e){return t.concat(Array.from(e))}let st=(()=>{class t{constructor(t,e){this._table=t,this._options=e,this.justify="start",this._options=e||{}}get name(){return this._name}set name(t){this._name=t,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((t,e)=>t[e])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const t=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(t):t[0].toUpperCase()+t.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return t.\u0275fac=function(e){return new(e||t)(r.Mb(nt,8),r.Mb(A,8))},t.\u0275cmp=r.Gb({type:t,selectors:[["cdk-text-column"]],viewQuery:function(t,e){var n;1&t&&(r.xc(O,!0),r.xc(C,!0),r.xc(x,!0)),2&t&&(r.pc(n=r.ac())&&(e.columnDef=n.first),r.pc(n=r.ac())&&(e.cell=n.first),r.pc(n=r.ac())&&(e.headerCell=n.first))},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(t,e){1&t&&(r.Qb(0,0),r.Cc(1,y,2,3,"th",1),r.Cc(2,v,2,3,"td",2),r.Pb())},directives:[O,x,C,I,F],encapsulation:2}),t})(),rt=(()=>{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[m.d]]}),t})()},fXoL:function(t,e,n){"use strict";n.d(e,"a",(function(){return Tr})),n.d(e,"b",(function(){return Zc})),n.d(e,"c",(function(){return qc})),n.d(e,"d",(function(){return zc})),n.d(e,"e",(function(){return Wc})),n.d(e,"f",(function(){return Kl})),n.d(e,"g",(function(){return Il})),n.d(e,"h",(function(){return fr})),n.d(e,"i",(function(){return cl})),n.d(e,"j",(function(){return ma})),n.d(e,"k",(function(){return tl})),n.d(e,"l",(function(){return ba})),n.d(e,"m",(function(){return Ll})),n.d(e,"n",(function(){return On})),n.d(e,"o",(function(){return wc})),n.d(e,"p",(function(){return q})),n.d(e,"q",(function(){return h})),n.d(e,"r",(function(){return f})),n.d(e,"s",(function(){return W})),n.d(e,"t",(function(){return Ir})),n.d(e,"u",(function(){return Ma})),n.d(e,"v",(function(){return Ba})),n.d(e,"w",(function(){return $c})),n.d(e,"x",(function(){return at})),n.d(e,"y",(function(){return Fl})),n.d(e,"z",(function(){return ot})),n.d(e,"A",(function(){return El})),n.d(e,"B",(function(){return ul})),n.d(e,"C",(function(){return u})),n.d(e,"D",(function(){return Xc})),n.d(e,"E",(function(){return Qc})),n.d(e,"F",(function(){return Ac})),n.d(e,"G",(function(){return wa})),n.d(e,"H",(function(){return ya})),n.d(e,"I",(function(){return va})),n.d(e,"J",(function(){return Aa})),n.d(e,"K",(function(){return bi})),n.d(e,"L",(function(){return p})),n.d(e,"M",(function(){return Ml})),n.d(e,"N",(function(){return Va})),n.d(e,"O",(function(){return yl})),n.d(e,"P",(function(){return mr})),n.d(e,"Q",(function(){return Ca})),n.d(e,"R",(function(){return Ka})),n.d(e,"S",(function(){return mt})),n.d(e,"T",(function(){return Dl})),n.d(e,"U",(function(){return Gn})),n.d(e,"V",(function(){return R})),n.d(e,"W",(function(){return nt})),n.d(e,"X",(function(){return qn})),n.d(e,"Y",(function(){return Vl})),n.d(e,"Z",(function(){return Sl})),n.d(e,"ab",(function(){return Jc})),n.d(e,"bb",(function(){return br})),n.d(e,"cb",(function(){return rc})),n.d(e,"db",(function(){return gi})),n.d(e,"eb",(function(){return Jn})),n.d(e,"fb",(function(){return Bn})),n.d(e,"gb",(function(){return Ln})),n.d(e,"hb",(function(){return Kn})),n.d(e,"ib",(function(){return Vn})),n.d(e,"jb",(function(){return Nn})),n.d(e,"kb",(function(){return Un})),n.d(e,"lb",(function(){return ec})),n.d(e,"mb",(function(){return Nl})),n.d(e,"nb",(function(){return nc})),n.d(e,"ob",(function(){return ic})),n.d(e,"pb",(function(){return Hn})),n.d(e,"qb",(function(){return B})),n.d(e,"rb",(function(){return Br})),n.d(e,"sb",(function(){return ro})),n.d(e,"tb",(function(){return so})),n.d(e,"ub",(function(){return tc})),n.d(e,"vb",(function(){return qt})),n.d(e,"wb",(function(){return D})),n.d(e,"xb",(function(){return Mn})),n.d(e,"yb",(function(){return ea})),n.d(e,"zb",(function(){return Nt})),n.d(e,"Ab",(function(){return pa})),n.d(e,"Bb",(function(){return Ni})),n.d(e,"Cb",(function(){return Kr})),n.d(e,"Db",(function(){return Zo})),n.d(e,"Eb",(function(){return Io})),n.d(e,"Fb",(function(){return Mc})),n.d(e,"Gb",(function(){return vt})),n.d(e,"Hb",(function(){return Dt})),n.d(e,"Ib",(function(){return b})),n.d(e,"Jb",(function(){return _})),n.d(e,"Kb",(function(){return Ct})),n.d(e,"Lb",(function(){return kt})),n.d(e,"Mb",(function(){return Gr})),n.d(e,"Nb",(function(){return $r})),n.d(e,"Ob",(function(){return no})),n.d(e,"Pb",(function(){return eo})),n.d(e,"Qb",(function(){return to})),n.d(e,"Rb",(function(){return Jr})),n.d(e,"Sb",(function(){return Zr})),n.d(e,"Tb",(function(){return io})),n.d(e,"Ub",(function(){return xn})),n.d(e,"Vb",(function(){return Jo})),n.d(e,"Wb",(function(){return et})),n.d(e,"Xb",(function(){return Yr})),n.d(e,"Yb",(function(){return Kc})),n.d(e,"Zb",(function(){return oo})),n.d(e,"ac",(function(){return Lc})),n.d(e,"bc",(function(){return Le})),n.d(e,"cc",(function(){return He})),n.d(e,"dc",(function(){return uo})),n.d(e,"ec",(function(){return mc})),n.d(e,"fc",(function(){return bc})),n.d(e,"gc",(function(){return _c})),n.d(e,"hc",(function(){return go})),n.d(e,"ic",(function(){return fo})),n.d(e,"jc",(function(){return Qr})),n.d(e,"kc",(function(){return mo})),n.d(e,"lc",(function(){return bo})),n.d(e,"mc",(function(){return uc})),n.d(e,"nc",(function(){return dc})),n.d(e,"oc",(function(){return pc})),n.d(e,"pc",(function(){return Tc})),n.d(e,"qc",(function(){return qr})),n.d(e,"rc",(function(){return on})),n.d(e,"sc",(function(){return de})),n.d(e,"tc",(function(){return _i})),n.d(e,"uc",(function(){return yi})),n.d(e,"vc",(function(){return xt})),n.d(e,"wc",(function(){return Bc})),n.d(e,"xc",(function(){return Fc})),n.d(e,"yc",(function(){return To})),n.d(e,"zc",(function(){return Ro})),n.d(e,"Ac",(function(){return ao})),n.d(e,"Bc",(function(){return $o})),n.d(e,"Cc",(function(){return Wr})),n.d(e,"Dc",(function(){return qo})),n.d(e,"Ec",(function(){return Go})),n.d(e,"Fc",(function(){return Yo})),n.d(e,"Gc",(function(){return Qo})),n.d(e,"Hc",(function(){return Xo})),n.d(e,"Ic",(function(){return Pc}));var i=n("XNiG"),s=n("quSY"),r=n("HDdC"),o=n("VRyK"),a=n("w1tV");function c(t){return{toString:t}.toString()}function l(t,e,n){return c(()=>{const i=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return i.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,i){const s=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;for(;s.length<=i;)s.push(null);return(s[i]=s[i]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const h=l("Inject",t=>({token:t})),u=l("Optional"),d=l("Self"),p=l("SkipSelf");var f=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function g(t){for(let e in t)if(t[e]===g)return e;throw Error("Could not find renamed property on target object.")}function m(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function b(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function _(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function y(t){return v(t,t[S])||v(t,t[x])}function v(t,e){return e&&e.token===t?e:null}function w(t){return t&&(t.hasOwnProperty(A)||t.hasOwnProperty(E))?t[A]:null}const S=g({"\u0275prov":g}),A=g({"\u0275inj":g}),C=g({"\u0275provFallback":g}),x=g({ngInjectableDef:g}),E=g({ngInjectorDef:g});function D(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(D).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function k(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const O=g({__forward_ref__:g});function R(t){return t.__forward_ref__=R,t.toString=function(){return D(this())},t}function I(t){return T(t)?t():t}function T(t){return"function"==typeof t&&t.hasOwnProperty(O)&&t.__forward_ref__===R}const F="undefined"!=typeof globalThis&&globalThis,P="undefined"!=typeof window&&window,j="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,M="undefined"!=typeof global&&global,B=F||M||P||j,H=g({"\u0275cmp":g}),L=g({"\u0275dir":g}),N=g({"\u0275pipe":g}),V=g({"\u0275mod":g}),U=g({"\u0275loc":g}),K=g({"\u0275fac":g}),z=g({__NG_ELEMENT_ID__:g});class W{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=b({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const q=new W("INJECTOR",-1),G={},Y=/\n/gm,Q=g({provide:String,useValue:g});let X,Z=void 0;function J(t){const e=Z;return Z=t,e}function $(t){const e=X;return X=t,e}function tt(t,e=f.Default){if(void 0===Z)throw new Error("inject() must be called from an injection context");return null===Z?it(t,void 0,e):Z.get(t,e&f.Optional?null:void 0,e)}function et(t,e=f.Default){return(X||tt)(I(t),e)}const nt=et;function it(t,e,n){const i=y(t);if(i&&"root"==i.providedIn)return void 0===i.value?i.value=i.factory():i.value;if(n&f.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${D(t)}]`)}function st(t){const e=[];for(let n=0;nArray.isArray(t)?ct(t,e):e(t))}function lt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ht(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ut(t,e){const n=[];for(let i=0;i=0?t[1|i]=n:(i=~i,function(t,e,n,i){let s=t.length;if(s==e)t.push(n,i);else if(1===s)t.push(i,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=i}}(t,i,e,n)),i}function pt(t,e){const n=ft(t,e);if(n>=0)return t[1|n]}function ft(t,e){return function(t,e,n){let i=0,s=t.length>>1;for(;s!==i;){const n=i+(s-i>>1),r=t[n<<1];if(e===r)return n<<1;r>e?s=n:i=n+1}return~(s<<1)}(t,e)}var gt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),mt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const bt={},_t=[];let yt=0;function vt(t){return c(()=>{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===gt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||_t,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||mt.Emulated,id:"c",styles:t.styles||_t,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,r=t.pipes;return n.id+=yt++,n.inputs=Et(t.inputs,e),n.outputs=Et(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=i?()=>("function"==typeof i?i():i).map(wt):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(St):null,n})}function wt(t){return Ot(t)||function(t){return t[L]||null}(t)}function St(t){return function(t){return t[N]||null}(t)}const At={};function Ct(t){const e={type:t.type,bootstrap:t.bootstrap||_t,declarations:t.declarations||_t,imports:t.imports||_t,exports:t.exports||_t,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&c(()=>{At[t.id]=t.type}),e}function xt(t,e){return c(()=>{const n=It(t,!0);n.declarations=e.declarations||_t,n.imports=e.imports||_t,n.exports=e.exports||_t})}function Et(t,e){if(null==t)return bt;const n={};for(const i in t)if(t.hasOwnProperty(i)){let s=t[i],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),n[s]=i,e&&(e[s]=r)}return n}const Dt=vt;function kt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ot(t){return t[H]||null}function Rt(t,e){return t.hasOwnProperty(K)?t[K]:null}function It(t,e){const n=t[V]||null;if(!n&&!0===e)throw new Error(`Type ${D(t)} does not have '\u0275mod' property.`);return n}function Tt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ft(t){return Array.isArray(t)&&!0===t[1]}function Pt(t){return 0!=(8&t.flags)}function jt(t){return 2==(2&t.flags)}function Mt(t){return 1==(1&t.flags)}function Bt(t){return null!==t.template}function Ht(t){return 0!=(512&t[2])}class Lt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Nt(){return Vt}function Vt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Kt),Ut}function Ut(){const t=zt(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===bt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Kt(t,e,n,i){const s=zt(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:bt,current:null}),r=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],c=o[a];r[a]=new Lt(c&&c.currentValue,e,o===bt),t[i]=e}function zt(t){return t.__ngSimpleChanges__||null}Nt.ngInherit=!0;let Wt=void 0;function qt(t){Wt=t}function Gt(){return void 0!==Wt?Wt:"undefined"!=typeof document?document:void 0}function Yt(t){return!!t.listen}const Qt={createRenderer:(t,e)=>Gt()};function Xt(t){for(;Array.isArray(t);)t=t[0];return t}function Zt(t,e){return Xt(e[t+20])}function Jt(t,e){return Xt(e[t.index])}function $t(t,e){return t.data[e+20]}function te(t,e){return t[e+20]}function ee(t,e){const n=e[t];return Tt(n)?n:n[0]}function ne(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function ie(t){return 4==(4&t[2])}function se(t){return 128==(128&t[2])}function re(t,e){return null===t||null==e?null:t[e]}function oe(t){t[18]=0}function ae(t,e){t[5]+=e;let n=t,i=t[3];for(;null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}const ce={lFrame:Ie(null),bindingsEnabled:!0,checkNoChangesMode:!1};function le(){return ce.bindingsEnabled}function he(){return ce.lFrame.lView}function ue(){return ce.lFrame.tView}function de(t){ce.lFrame.contextLView=t}function pe(){return ce.lFrame.previousOrParentTNode}function fe(t,e){ce.lFrame.previousOrParentTNode=t,ce.lFrame.isParent=e}function ge(){return ce.lFrame.isParent}function me(){ce.lFrame.isParent=!1}function be(){return ce.checkNoChangesMode}function _e(t){ce.checkNoChangesMode=t}function ye(){const t=ce.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ve(){return ce.lFrame.bindingIndex}function we(){return ce.lFrame.bindingIndex++}function Se(t){const e=ce.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Ae(t,e){const n=ce.lFrame;n.bindingIndex=n.bindingRootIndex=t,Ce(e)}function Ce(t){ce.lFrame.currentDirectiveIndex=t}function xe(t){const e=ce.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Ee(){return ce.lFrame.currentQueryIndex}function De(t){ce.lFrame.currentQueryIndex=t}function ke(t,e){const n=Re();ce.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function Oe(t,e){const n=Re(),i=t[1];ce.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex}function Re(){const t=ce.lFrame,e=null===t?null:t.child;return null===e?Ie(t):e}function Ie(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Te(){const t=ce.lFrame;return ce.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const Fe=Te;function Pe(){const t=Te();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function je(){return ce.lFrame.selectedIndex}function Me(t){ce.lFrame.selectedIndex=t}function Be(){const t=ce.lFrame;return $t(t.tView,t.selectedIndex)}function He(){ce.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function Le(){ce.lFrame.currentNamespace=null}function Ne(t,e){for(let n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[o]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class qe{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Ge(t,e,n){const i=Yt(t);let s=0;for(;se){o=r-1;break}}}for(;r>16}function en(t,e){let n=tn(t),i=e;for(;n>0;)i=i[15],n--;return i}function nn(t){return"string"==typeof t?t:null==t?"":""+t}function sn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():nn(t)}const rn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B))();function on(t){return{name:"body",target:t.ownerDocument.body}}function an(t){return t instanceof Function?t():t}let cn=!0;function ln(t){const e=cn;return cn=t,e}let hn=0;function un(t,e){const n=pn(t,e);if(-1!==n)return n;const i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,dn(i.data,t),dn(e,null),dn(i.blueprint,null));const s=fn(t,e),r=t.injectorIndex;if(Je(s)){const t=$e(s),n=en(s,e),i=n[1].data;for(let s=0;s<8;s++)e[r+s]=n[t+s]|i[t+s]}return e[r+8]=s,r}function dn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function pn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function fn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],i=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function gn(t,e,n){!function(t,e,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(z)&&(i=n[z]),null==i&&(i=n[z]=hn++);const s=255&i,r=1<0?255&e:e}(n);if("function"==typeof s){ke(e,t);try{const t=s();if(null!=t||i&f.Optional)return t;throw new Error(`No provider for ${sn(n)}!`)}finally{Fe()}}else if("number"==typeof s){if(-1===s)return new An(t,e);let r=null,o=pn(t,e),a=-1,c=i&f.Host?e[16][6]:null;for((-1===o||i&f.SkipSelf)&&(a=-1===o?fn(t,e):e[o+8],Sn(i,!1)?(r=e[1],o=$e(a),e=en(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(wn(s,o,t.data)){const t=_n(o,e,n,r,i,c);if(t!==bn)return t}Sn(i,e[1].data[o+8]===c)&&wn(s,o,e)?(r=t,o=$e(a),e=en(a,e)):o=-1}}}if(i&f.Optional&&void 0===s&&(s=null),0==(i&(f.Self|f.Host))){const t=e[9],r=$(void 0);try{return t?t.get(n,s,i&f.Optional):it(n,s,i&f.Optional)}finally{$(r)}}if(i&f.Optional)return s;throw new Error(`NodeInjector: NOT_FOUND [${sn(n)}]`)}const bn={};function _n(t,e,n,i,s,r){const o=e[1],a=o.data[t+8],c=yn(a,o,n,null==i?jt(a)&&cn:i!=o&&3===a.type,s&f.Host&&r===a);return null!==c?vn(e,o,c,a):bn}function yn(t,e,n,i,s){const r=t.providerIndexes,o=e.data,a=1048575&r,c=t.directiveStart,l=r>>20,h=s?a+l:t.directiveEnd;for(let u=i?a:a+l;u=c&&t.type===n)return u}if(s){const t=o[c];if(t&&Bt(t)&&t.type===n)return c}return null}function vn(t,e,n,i){let s=t[n];const r=e.data;if(s instanceof qe){const o=s;if(o.resolving)throw new Error("Circular dep for "+sn(r[n]));const a=ln(o.canSeeViewProviders);let c;o.resolving=!0,o.injectImpl&&(c=$(o.injectImpl)),ke(t,i);try{s=t[n]=o.factory(void 0,r,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){const{ngOnChanges:i,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(i){const i=Vt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&$(c),ln(a),o.resolving=!1,Fe()}}return s}function wn(t,e,n){const i=64&t,s=32&t;let r;return r=128&t?i?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:i?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(r&1<{const t=Cn(I(e));return t?t():null};let n=Rt(e);if(null===n){const t=w(e);n=t&&t.factory}return n||null}function xn(t){return c(()=>{const e=t.prototype.constructor,n=e[K]||Cn(e),i=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==i;){const t=s[K]||Cn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function En(t){return t.ngDebugContext}function Dn(t){return t.ngOriginalError}function kn(t,...e){t.error(...e)}class On{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),i=function(t){return t.ngErrorLogger||kn}(t);i(this._console,"ERROR",t),e&&i(this._console,"ORIGINAL ERROR",e),n&&i(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?En(t)?En(t):this._findContext(Dn(t)):null}_findOriginalError(t){let e=Dn(t);for(;e&&Dn(e);)e=Dn(e);return e}}class Rn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class In extends Rn{getTypeName(){return"HTML"}}class Tn extends Rn{getTypeName(){return"Style"}}class Fn extends Rn{getTypeName(){return"Script"}}class Pn extends Rn{getTypeName(){return"URL"}}class jn extends Rn{getTypeName(){return"ResourceURL"}}function Mn(t){return t instanceof Rn?t.changingThisBreaksApplicationSecurity:t}function Bn(t,e){const n=Hn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Hn(t){return t instanceof Rn&&t.getTypeName()||null}function Ln(t){return new In(t)}function Nn(t){return new Tn(t)}function Vn(t){return new Fn(t)}function Un(t){return new Pn(t)}function Kn(t){return new jn(t)}let zn=!0,Wn=!1;function qn(){return Wn=!0,zn}function Gn(){if(Wn)throw new Error("Cannot enable prod mode after platform setup.");zn=!1}class Yn{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Qn{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=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let i=e.length-1;0Jn(t.trim())).join(", ")),this.buf.push(" ",e,'="',pi(o),'"')}var i;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();ri.hasOwnProperty(e)&&!ei.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(pi(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 ui=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,di=/([^\#-~ |!])/g;function pi(t){return t.replace(/&/g,"&").replace(ui,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(di,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let fi;function gi(t,e){let n=null;try{fi=fi||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new Yn:new Qn(t)}(t);let i=e?String(e):"";n=fi.getInertBodyElement(i);let s=5,r=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=r,r=n.innerHTML,n=fi.getInertBodyElement(i)}while(i!==r);const o=new hi,a=o.sanitizeChildren(mi(n)||n);return qn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=mi(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function mi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var bi=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 _i(t){const e=vi();return e?e.sanitize(bi.HTML,t)||"":Bn(t,"HTML")?Mn(t):gi(Gt(),nn(t))}function yi(t){const e=vi();return e?e.sanitize(bi.URL,t)||"":Bn(t,"URL")?Mn(t):Jn(nn(t))}function vi(){const t=he();return t&&t[12]}function wi(t,e){t.__ngContext__=e}function Si(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function Ai(){throw new Error("Cannot mix multi providers and regular providers")}function Ci(t,e,n){let i=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===i||t.charCodeAt(s+n)<=32)return s}n=s+1}}function xi(t,e,n){let i=0;for(;ir?"":s[h+1].toLowerCase();const e=8&i?t:null;if(e&&-1!==Ci(e,l,0)||2&i&&l!==t){if(Oi(i))return!1;o=!0}}}}else{if(!o&&!Oi(i)&&!Oi(c))return!1;if(o&&Oi(c))continue;o=!1,i=c|1&i}}return Oi(i)||o}function Oi(t){return 0==(1&t)}function Ri(t,e,n,i){if(null===e)return-1;let s=0;if(i||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&i?s+="."+o:4&i&&(s+=" "+o);else""===s||Oi(o)||(e+=Fi(r,s),s=""),i=o,r=r||!Oi(i);n++}return""!==s&&(e+=Fi(r,s)),e}const ji={};function Mi(t){const e=t[3];return Ft(e)?e[3]:e}function Bi(t){return Li(t[13])}function Hi(t){return Li(t[4])}function Li(t){for(;null!==t&&!Ft(t);)t=t[4];return t}function Ni(t){Vi(ue(),he(),je()+t,be())}function Vi(t,e,n,i){if(!i)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ve(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Ue(e,i,0,n)}Me(n)}function Ui(t,e){return t<<17|e<<2}function Ki(t){return t>>17&32767}function zi(t){return 2|t}function Wi(t){return(131068&t)>>2}function qi(t,e){return-131069&t|e<<2}function Gi(t){return 1|t}function Yi(t,e){const n=t.contentQueries;if(null!==n)for(let i=0;i20&&Vi(t,e,0,be()),n(i,s)}finally{Me(r)}}function ns(t,e,n){if(Pt(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s0&&function t(e){for(let i=Bi(e);null!==i;i=Hi(i))for(let e=10;e0&&t(n)}const n=e[1].components;if(null!==n)for(let i=0;i0&&t(s)}}(n)}}function xs(t,e){const n=ee(e,t),i=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Ts(t){return t[7]||(t[7]=[])}function Fs(t,e,n){return(null===t||Bt(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 Ps(t,e){const n=t[9],i=n?n.get(On,null):null;i&&i.handleError(e)}function js(t,e,n,i,s){for(let r=0;r0&&(t[n-1][4]=i[4]);const r=ht(t,10+e);Ns(i[1],i,!1,null);const o=r[19];null!==o&&o.detachView(r[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function Ks(t,e){if(!(256&e[2])){const n=e[11];Yt(n)&&n.destroyNode&&er(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return Ws(t[1],t);for(;e;){let n=null;if(Tt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Tt(e)&&Ws(e[1],e),e=zs(e,t);null===e&&(e=t),Tt(e)&&Ws(e[1],e),n=e&&e[4]}e=n}}(e)}}function zs(t,e){let n;return Tt(t)&&(n=t[6])&&2===n.type?Bs(n,t):t[3]===e?null:t[3]}function Ws(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 i=0;i=0?t[a]():t[-a].unsubscribe(),i+=2}else n[i].call(t[n[i+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Yt(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&Ft(e[3])){i!==e[3]&&Vs(i,e);const n=e[19];null!==n&&n.detachView(t)}}}function qs(t,e,n){let i=e.parent;for(;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){const t=n[6];return 2===t.type?Hs(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return Jt(e,n).parentNode;if(2&i.flags){const e=t.data,n=e[e[i.index].directiveStart].encapsulation;if(n!==mt.ShadowDom&&n!==mt.Native)return null}return Jt(i,n)}function Gs(t,e,n,i){Yt(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Ys(t,e,n){Yt(t)?t.appendChild(e,n):e.appendChild(n)}function Qs(t,e,n,i){null!==i?Gs(t,e,n,i):Ys(t,e,n)}function Xs(t,e){return Yt(t)?t.parentNode(e):e.parentNode}function Zs(t,e){if(2===t.type){const n=Bs(t,e);return null===n?null:$s(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?Jt(t,e):null}function Js(t,e,n,i){const s=qs(t,i,e);if(null!=s){const t=e[11],r=Zs(i.parent||e[6],e);if(Array.isArray(n))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Ks(this._lView[1],this._lView)}onDestroy(t){as(this._lView[1],this._lView,null,t)}markForCheck(){Ds(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ks(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){_e(!0);try{ks(t,e,n)}finally{_e(!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,er(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 or extends rr{constructor(t){super(t),this._view=t}detectChanges(){Os(this._view)}checkNoChanges(){!function(t){_e(!0);try{Os(t)}finally{_e(!1)}}(this._view)}get context(){return null}}let ar,cr,lr;function hr(t,e,n){return ar||(ar=class extends t{}),new ar(Jt(e,n))}function ur(t,e,n,i){return cr||(cr=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=Xi(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const i=this._declarationView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Ji(e,n,t),new rr(n)}}),0===n.type?new cr(i,n,hr(e,n,i)):null}function dr(t,e,n,i){let s;lr||(lr=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return hr(e,this._hostTNode,this._hostView)}get injector(){return new An(this._hostTNode,this._hostView)}get parentInjector(){const t=fn(this._hostTNode,this._hostView),e=en(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let i=tn(t),s=e,r=e[6];for(;i>1;)s=s[15],r=s[6],i--;return r}(t,this._hostView,this._hostTNode);return Je(t)&&null!=n?new An(n,e):new An(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,n){const i=t.createEmbeddedView(e||{});return this.insert(i,n),i}createComponent(t,e,n,i,s){const r=n||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(ot,null);t&&(s=t)}const o=t.create(r,i,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ft(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],i=new lr(e,e[6],e[3]);i.detach(i.indexOf(t))}}const s=this._adjustIndex(e);return function(t,e,n,i){const s=10+i,r=n.length;i>0&&(n[s-1][4]=e),i{class t{}return t.__NG_ELEMENT_ID__=()=>gr(),t})();const gr=pr,mr=Function,br=new W("Set Injector scope."),_r={},yr={},vr=[];let wr=void 0;function Sr(){return void 0===wr&&(wr=new rt),wr}function Ar(t,e=null,n=null,i){return new Cr(t,n,e||Sr(),i)}class Cr{constructor(t,e,n,i=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&ct(e,n=>this.processProvider(n,t,e)),ct([t],t=>this.processInjectorType(t,[],s)),this.records.set(q,Dr(void 0,this));const r=this.records.get(br);this.scope=null!=r?r.value:null,this.source=i||("object"==typeof t?null:D(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=G,n=f.Default){this.assertNotDestroyed();const i=J(this);try{if(!(n&f.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof W)&&y(t);e=n&&this.injectableDefInScope(n)?Dr(xr(t),_r):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&f.Self?Sr():this.parent).get(t,e=n&f.Optional&&e===G?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(D(t)),i)throw r;return function(t,e,n,i){const s=t.ngTempTokenPath;throw e.__source&&s.unshift(e.__source),t.message=function(t,e,n,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=D(e);if(Array.isArray(e))s=e.map(D).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t.push(n+":"+("string"==typeof i?JSON.stringify(i):D(i)))}s=`{${t.join(", ")}}`}return`${n}${i?"("+i+")":""}[${s}]: ${t.replace(Y,"\n ")}`}("\n"+t.message,s,n,i),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{J(i)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(D(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=I(t)))return!1;let i=w(t);const s=null==i&&t.ngModule||void 0,r=void 0===s?t:s,o=-1!==n.indexOf(r);if(void 0!==s&&(i=w(s)),null==i)return!1;if(null!=i.imports&&!o){let t;n.push(r);try{ct(i.imports,i=>{this.processInjectorType(i,e,n)&&(void 0===t&&(t=[]),t.push(i))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,i||vr))}}this.injectorDefTypes.add(r),this.records.set(r,Dr(i.factory,_r));const a=i.providers;if(null!=a&&!o){const e=t;ct(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let i=Or(t=I(t))?t:I(t&&t.provide);const s=function(t,e,n){return kr(t)?Dr(void 0,t.useValue):Dr(Er(t,e,n),_r)}(t,e,n);if(Or(t)||!0!==t.multi){const t=this.records.get(i);t&&void 0!==t.multi&&Ai()}else{let e=this.records.get(i);e?void 0===e.multi&&Ai():(e=Dr(void 0,_r,!0),e.factory=()=>st(e.multi),this.records.set(i,e)),i=t,e.multi.push(t)}this.records.set(i,s)}hydrate(t,e){var n;return e.value===yr?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(D(t)):e.value===_r&&(e.value=yr,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 xr(t){const e=y(t),n=null!==e?e.factory:Rt(t);if(null!==n)return n;const i=w(t);if(null!==i)return i.factory;if(t instanceof W)throw new Error(`Token ${D(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ut(e,"?");throw new Error(`Can't resolve all parameters for ${D(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[S]||t[x]||t[C]&&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 Er(t,e,n){let i=void 0;if(Or(t)){const e=I(t);return Rt(e)||xr(e)}if(kr(t))i=()=>I(t.useValue);else if((s=t)&&s.useFactory)i=()=>t.useFactory(...st(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))i=()=>et(I(t.useExisting));else{const s=I(t&&(t.useClass||t.provide));if(s||function(t,e,n){let i="";throw t&&e&&(i=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${D(t)}'`+i)}(e,n,t),!function(t){return!!t.deps}(t))return Rt(s)||xr(s);i=()=>new s(...st(t.deps))}var s;return i}function Dr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function kr(t){return null!==t&&"object"==typeof t&&Q in t}function Or(t){return"function"==typeof t}const Rr=function(t,e,n){return function(t,e=null,n=null,i){const s=Ar(t,e,n,i);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Ir=(()=>{class t{static create(t,e){return Array.isArray(t)?Rr(t,e,""):Rr(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=G,t.NULL=new rt,t.\u0275prov=b({token:t,providedIn:"any",factory:()=>et(q)}),t.__NG_ELEMENT_ID__=-1,t})();const Tr=new W("AnalyzeForEntryComponents");function Fr(t,e,n){let i=n?t.styles:null,s=n?t.classes:null,r=0;if(null!==e)for(let o=0;oa(Xt(t[i.index])).target:i.index;if(Yt(n)){let o=null;if(!a&&c&&(o=function(t,e,n,i){const s=t.cleanup;if(null!=s)for(let r=0;rn?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,i.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=ho(i,e,r,!1);const t=n.listen(p.name||f,s,r);h.push(r,t),l&&l.push(s,m,g,g+1)}}else r=ho(i,e,r,!0),f.addEventListener(s,r,o),h.push(r),l&&l.push(s,m,g,o)}const d=i.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,ce.lFrame.contextLView))[8]}(t)}function po(t,e){let n=null;const i=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 s=0;s=0}const wo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function So(t){return t.substring(wo.key,wo.keyEnd)}function Ao(t){return t.substring(wo.value,wo.valueEnd)}function Co(t,e){const n=wo.textEnd;return n===e?-1:(e=wo.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,wo.key=e,n),Do(t,e,n))}function xo(t,e){const n=wo.textEnd;let i=wo.key=Do(t,e,n);return n===i?-1:(i=wo.keyEnd=function(t,e,n){let i;for(;e=65&&(-33&i)<=90||i>=48&&i<=57);)e++;return e}(t,i,n),i=ko(t,i,n),i=wo.value=Do(t,i,n),i=wo.valueEnd=function(t,e,n){let i=-1,s=-1,r=-1,o=e,a=o;for(;o32&&(a=o),r=s,s=i,i=-33&c}return a}(t,i,n),ko(t,i,n))}function Eo(t){wo.key=0,wo.keyEnd=0,wo.value=0,wo.valueEnd=0,wo.textEnd=t.length}function Do(t,e,n){for(;e=0;n=xo(e,n))Vo(t,So(e),Ao(e))}function Po(t,e){for(let n=function(t){return Eo(t),Co(t,Do(t,0,wo.textEnd))}(e);n>=0;n=Co(e,n))dt(t,So(e),!0)}function jo(t,e,n,i){const s=he(),r=ue(),o=Se(2);r.firstUpdatePass&&Ho(r,t,o,i),e!==ji&&Nr(s,o,e)&&Uo(r,r.data[je()+20],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=D(Mn(t)))),t}(e,n),i,o)}function Mo(t,e,n,i){const s=ue(),r=Se(2);s.firstUpdatePass&&Ho(s,null,r,i);const o=he();if(n!==ji&&Nr(o,r,n)){const a=s.data[je()+20];if(Wo(a,i)&&!Bo(s,r)){let t=i?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=k(t,n||"")),Xr(s,a,o,n,i)}else!function(t,e,n,i,s,r,o,a){s===ji&&(s=_o);let c=0,l=0,h=0=t.expandoStartIndex}function Ho(t,e,n,i){const s=t.data;if(null===s[n+1]){const r=s[je()+20],o=Bo(t,n);Wo(r,i)&&null===e&&!o&&(e=!1),e=function(t,e,n,i){const s=xe(t);let r=i?e.residualClasses:e.residualStyles;if(null===s)0===(i?e.classBindings:e.styleBindings)&&(n=No(n=Lo(null,t,e,n,i),e.attrs,i),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Lo(s,t,e,n,i),null===r){let n=function(t,e,n){const i=n?e.classBindings:e.styleBindings;if(0!==Wi(i))return t[Ki(i)]}(t,e,i);void 0!==n&&Array.isArray(n)&&(n=Lo(null,t,e,n[1],i),n=No(n,e.attrs,i),function(t,e,n,i){t[Ki(n?e.classBindings:e.styleBindings)]=i}(t,e,i,n))}else r=function(t,e,n){let i=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(h=!0)}else l=n;if(s)if(0!==c){const e=Ki(t[a+1]);t[i+1]=Ui(e,a),0!==e&&(t[e+1]=qi(t[e+1],i)),t[a+1]=131071&t[a+1]|i<<17}else t[i+1]=Ui(a,0),0!==a&&(t[a+1]=qi(t[a+1],i)),a=i;else t[i+1]=Ui(c,0),0===a?a=i:t[c+1]=qi(t[c+1],i),c=i;h&&(t[i+1]=zi(t[i+1])),yo(t,l,i,!0),yo(t,l,i,!1),function(t,e,n,i,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ft(r,e)>=0&&(n[i+1]=Gi(n[i+1]))}(e,l,t,i,r),o=Ui(a,c),r?e.classBindings=o:e.styleBindings=o}(s,r,e,n,o,i)}}function Lo(t,e,n,i,s){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],r=Array.isArray(e),c=r?e[1]:e,l=null===c;let h=n[s+1];h===ji&&(h=l?_o:void 0);let u=l?pt(h,i):c===i?h:void 0;if(r&&!zo(u)&&(u=pt(e,i)),zo(u)&&(a=u,o))return a;const d=t[s+1];s=o?Ki(d):Wi(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=pt(t,i))}return a}function zo(t){return void 0!==t}function Wo(t,e){return 0!=(t.flags&(e?16:32))}function qo(t,e=""){const n=he(),i=ue(),s=t+20,r=i.firstCreatePass?Zi(i,n[6],t,3,null,null):i.data[s],o=n[s]=function(t,e){return Yt(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Js(i,n,o,r),fe(r,!1)}function Go(t){return Yo("",t,""),Go}function Yo(t,e,n){const i=he(),s=zr(i,t,e,n);return s!==ji&&Ms(i,je(),s),Yo}function Qo(t,e,n,i,s){const r=he(),o=function(t,e,n,i,s,r){const o=Vr(t,ve(),n,s);return Se(2),o?e+nn(n)+i+nn(s)+r:ji}(r,t,e,n,i,s);return o!==ji&&Ms(r,je(),o),Qo}function Xo(t,e,n,i,s,r,o){const a=he(),c=function(t,e,n,i,s,r,o,a){const c=Ur(t,ve(),n,s,o);return Se(3),c?e+nn(n)+i+nn(s)+r+nn(o)+a:ji}(a,t,e,n,i,s,r,o);return c!==ji&&Ms(a,je(),c),Xo}function Zo(t,e,n){Mo(dt,Po,zr(he(),t,e,n),!0)}function Jo(t,e,n){const i=he();return Nr(i,we(),e)&&hs(ue(),Be(),i,t,e,i[11],n,!0),Jo}function $o(t,e,n){const i=he();if(Nr(i,we(),e)){const s=ue(),r=Be();hs(s,r,i,t,e,Fs(xe(s.data),r,i),n,!0)}return $o}function ta(t,e){const n=ne(t)[1],i=n.data.length-1;Ne(n,{directiveStart:i,directiveEnd:i+1})}function ea(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const i=[t];for(;e;){let s=void 0;if(Bt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(n){i.push(s);const e=t;e.inputs=na(t.inputs),e.declaredInputs=na(t.declaredInputs),e.outputs=na(t.outputs);const n=s.hostBindings;n&&ra(t,n);const r=s.viewQuery,o=s.contentQueries;if(r&&ia(t,r),o&&sa(t,o),m(t.inputs,s.inputs),m(t.declaredInputs,s.declaredInputs),m(t.outputs,s.outputs),Bt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let i=0;i=0;i--){const s=t[i];s.hostVars=e+=s.hostVars,s.hostAttrs=Xe(s.hostAttrs,n=Xe(n,s.hostAttrs))}}(i)}function na(t){return t===bt?{}:t===_t?[]:t}function ia(t,e){const n=t.viewQuery;t.viewQuery=n?(t,i)=>{e(t,i),n(t,i)}:e}function sa(t,e){const n=t.contentQueries;t.contentQueries=n?(t,i,s)=>{e(t,i,s),n(t,i,s)}:e}function ra(t,e){const n=t.hostBindings;t.hostBindings=n?(t,i)=>{e(t,i),n(t,i)}:e}function oa(t,e,n,i,s){if(t=I(t),Array.isArray(t))for(let r=0;r>20;if(Or(t)||!t.multi){const i=new qe(c,s,Gr),p=la(a,e,s?h:h+d,u);-1===p?(gn(un(l,o),r,a),aa(r,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=1048576),n.push(i),o.push(i)):(n[p]=i,o[p]=i)}else{const p=la(a,e,h+d,u),f=la(a,e,h,h+d),g=p>=0&&n[p],m=f>=0&&n[f];if(s&&!m||!s&&!g){gn(un(l,o),r,a);const h=function(t,e,n,i,s){const r=new qe(t,n,Gr);return r.multi=[],r.index=e,r.componentProviders=0,ca(r,s,i&&!n),r}(s?ua:ha,n.length,s,i,c);!s&&m&&(n[f].providerFactory=h),aa(r,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=1048576),n.push(h),o.push(h)}else aa(r,t,p>-1?p:f,ca(n[s?f:p],c,!s&&i));!s&&i&&m&&n[f].componentProviders++}}}function aa(t,e,n,i){const s=Or(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[i,r]):o[t+1].push(i,r)}else o.push(n,r)}}}function ca(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function la(t,e,n,i){for(let s=n;s{n.providersResolver=(n,i)=>function(t,e,n){const i=ue();if(i.firstCreatePass){const s=Bt(t);oa(n,i.data,i.blueprint,s,!0),oa(e,i.data,i.blueprint,s,!1)}}(n,i?i(t):t,e)}}class fa{}class ga{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${D(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ma=(()=>{class t{}return t.NULL=new ga,t})(),ba=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>_a(t),t})();const _a=function(t){return hr(t,pe(),he())};class ya{}var va=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let wa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Sa(),t})();const Sa=function(){const t=he(),e=ee(pe().index,t);return function(t){const e=t[11];if(Yt(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Tt(e)?e:t)};let Aa=(()=>{class t{}return t.\u0275prov=b({token:t,providedIn:"root",factory:()=>null}),t})();class Ca{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const xa=new Ca("10.0.14");class Ea{constructor(){}supports(t){return Br(t)}create(t){return new ka(t)}}const Da=(t,e)=>e;class ka{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Da}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,i=0,s=null;for(;e||n;){const r=!n||e&&e.currentIndex{i=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,i)?(r&&(s=this._verifyReinsertion(s,t,i,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,i,e),r=!0),s=s._next,e++}),this.length=e;return this._truncate(s),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,e;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=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,i)):t=this._addAfter(new Oa(e,n),s,i),t}_verifyReinsertion(t,e,n,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),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 i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,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 i=null===e?this._itHead:e._next;return t._next=i,t._prev=e,null===i?this._itTail=t:i._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ia),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 Ia),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 Oa{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 Ra{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 Ia{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ra,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 Ta(t,e,n){const i=t.previousIndex;if(null===i)return i;let s=0;return n&&i{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const i=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,i)}}),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 i=n._prev,s=n._next;return i&&(i._next=s),s&&(s._prev=i),n._next=null,n._prev=null,n}const n=new ja(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 ja{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 Ma=(()=>{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 p,new u]]}}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=b({token:t,providedIn:"root",factory:()=>new t([new Ea])}),t})(),Ba=(()=>{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 p,new u]]}}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=b({token:t,providedIn:"root",factory:()=>new t([new Fa])}),t})();const Ha=[new Fa],La=new Ma([new Ea]),Na=new Ba(Ha);let Va=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ua(t,ba),t})();const Ua=function(t,e){return ur(t,e,pe(),he())};let Ka=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>za(t,ba),t})();const za=function(t,e){return dr(t,e,pe(),he())},Wa={};class qa extends ma{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=Ot(t);return new Qa(e,this.ngModule)}}function Ga(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Ya=new W("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>rn});class Qa extends fa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Pi).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ga(this.componentDef.inputs)}get outputs(){return Ga(this.componentDef.outputs)}create(t,e,n,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,i,s)=>{const r=t.get(n,Wa,s);return r!==Wa||i===Wa?r:e.get(n,i,s)}}}(t,i.injector):t,r=s.get(ya,Qt),o=s.get(Aa,null),a=r.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(t,e,n){if(Yt(t))return t.selectRootElement(e,n===mt.ShadowDom);let i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(a,n,this.componentDef.encapsulation):Qi(c,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:rn,clean:Is,playerHandler:null,flags:0},d=os(0,-1,null,1,0,null,null,null,null,null),p=Xi(null,d,u,h,null,null,r,a,o,s);let f,g;Oe(p,null);try{const t=function(t,e,n,i,s,r){const o=n[1];n[20]=t;const a=Zi(o,null,0,3,null,null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(Fr(a,c,!0),null!==t&&(Ge(s,t,c),null!==a.classes&&sr(s,t,a.classes),null!==a.styles&&ir(s,t,a.styles)));const l=i.createRenderer(t,e),h=Xi(n,rs(e),null,e.onPush?64:16,n[20],a,i,l,void 0);return o.firstCreatePass&&(gn(un(a,n),o,e.type),ms(o,a),_s(a,n.length,1)),Es(n,h),n[20]=h}(l,this.componentDef,p,r,a);if(l)if(n)Ge(a,l,["ng-version",xa.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let i=1,s=2;for(;i0&&sr(a,l,e.join(" "))}if(g=$t(d,0),void 0!==e){const t=g.projection=[];for(let n=0;nt(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=pe();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Me(a.index-20);const t=n[1];ds(t,e),ps(t,n,e.hostVars),fs(e,o)}return o}(t,this.componentDef,p,u,[ta]),Ji(d,p,null)}finally{Pe()}const m=new Xa(this.componentType,f,hr(ba,g,p),p,g);return d.node.child=g,m}}class Xa extends class{}{constructor(t,e,n,i,s){super(),this.location=n,this._rootLView=i,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new or(i),function(t,e,n,i){let s=t.node;null==s&&(t.node=s=cs(0,null,2,-1,null,null)),i[6]=s}(i[1],0,0,i),this.componentType=t}get injector(){return new An(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const Za=void 0;var Ja=["en",[["a","p"],["AM","PM"],Za],[["AM","PM"],Za,Za],[["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"]],Za,[["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"]],Za,[["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}",Za,"{1} 'at' {0}",Za],[".",",",";","%","+","-","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 $a={};function tc(t,e,n){"string"!=typeof e&&(n=e,e=t[rc.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),$a[e]=t,n&&($a[e][rc.ExtraData]=n)}function ec(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=sc(e);if(n)return n;const i=e.split("-")[0];if(n=sc(i),n)return n;if("en"===i)return Ja;throw new Error(`Missing locale data for the locale "${t}".`)}function nc(t){return ec(t)[rc.CurrencyCode]||null}function ic(t){return ec(t)[rc.PluralCase]}function sc(t){return t in $a||($a[t]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[t]),$a[t]}var rc=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 oc="en-US";function ac(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(oc=t.toLowerCase().replace(/_/g,"-"))}const cc=new Map;class lc extends ot{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new qa(this);const n=It(t),i=t[U]||null;i&&ac(i),this._bootstrapComponents=an(n.bootstrap),this._r3Injector=Ar(t,e,[{provide:ot,useValue:this},{provide:ma,useValue:this.componentFactoryResolver}],D(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ir.THROW_IF_NOT_FOUND,n=f.Default){return t===Ir||t===ot||t===q?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 hc extends at{constructor(t){super(),this.moduleType=t,null!==It(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${D(e)} vs ${D(e.name)}`)})(t,cc.get(t),e),cc.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new lc(this.moduleType,t)}}function uc(t,e,n){const i=ye()+t,s=he();return s[i]===ji?Lr(s,i,n?e.call(n):e()):function(t,e){return t[e]}(s,i)}function dc(t,e,n,i){return gc(he(),ye(),t,e,n,i)}function pc(t,e,n,i,s){return function(t,e,n,i,s,r,o){const a=e+n;return Vr(t,a,s,r)?Lr(t,a+2,o?i.call(o,s,r):i(s,r)):fc(t,a+2)}(he(),ye(),t,e,n,i,s)}function fc(t,e){const n=t[e];return n===ji?void 0:n}function gc(t,e,n,i,s,r){const o=e+n;return Nr(t,o,s)?Lr(t,o+1,r?i.call(r,s):i(s)):fc(t,o+1)}function mc(t,e){const n=ue();let i;const s=t+20;n.firstCreatePass?(i=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const i=e[n];if(t===i.name)return i}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,i.onDestroy)):i=n.data[s];const r=i.factory||(i.factory=Rt(i.type)),o=$(Gr),a=ln(!1),c=r();return ln(a),$(o),function(t,e,n,i){const s=n+20;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=i}(n,he(),t,c),c}function bc(t,e,n){const i=he(),s=te(i,t);return vc(i,yc(i,t)?gc(i,ye(),e,s.transform,n,s):s.transform(n))}function _c(t,e,n,i,s){const r=he(),o=te(r,t);return vc(r,yc(r,t)?function(t,e,n,i,s,r,o,a){const c=e+n;return Ur(t,c,s,r,o)?Lr(t,c+3,a?i.call(a,s,r,o):i(s,r,o)):fc(t,c+3)}(r,ye(),e,o.transform,n,i,s,o):o.transform(n,i,s))}function yc(t,e){return t[1].data[e+20].pure}function vc(t,e){return Mr.isWrapped(e)&&(e=Mr.unwrap(e),t[ve()]=ji),e}const wc=class extends i.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let i,r=t=>null,o=()=>null;t&&"object"==typeof t?(i=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(r=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(i,r,o);return t instanceof s.a&&t.add(a),a}};function Sc(){return this._results[jr()]()}class Ac{constructor(){this.dirty=!0,this._results=[],this.changes=new wc,this.length=0;const t=jr(),e=Ac.prototype;e[t]||(e[t]=Sc)}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=function t(e,n){void 0===n&&(n=e);for(let i=0;i0)s.push(a[e/2]);else{const r=o[e+1],a=n[-i];for(let e=10;e{class t{constructor(t){this.appInits=t,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)(et(zc,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const qc=new W("AppId"),Gc={provide:qc,useFactory:function(){return`${Yc()}${Yc()}${Yc()}`},deps:[]};function Yc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Qc=new W("Platform Initializer"),Xc=new W("Platform ID"),Zc=new W("appBootstrapListener");let Jc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const $c=new W("LocaleId"),tl=new W("DefaultCurrencyCode");class el{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const nl=function(t){return new hc(t)},il=nl,sl=function(t){return Promise.resolve(nl(t))},rl=function(t){const e=nl(t),n=an(It(t).declarations).reduce((t,e)=>{const n=Ot(e);return n&&t.push(new Qa(n)),t},[]);return new el(e,n)},ol=rl,al=function(t){return Promise.resolve(rl(t))};let cl=(()=>{class t{constructor(){this.compileModuleSync=il,this.compileModuleAsync=sl,this.compileModuleAndAllComponentsSync=ol,this.compileModuleAndAllComponentsAsync=al}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();const ll=(()=>Promise.resolve(0))();function hl(t){"undefined"==typeof Zone?ll.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ul{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new wc(!1),this.onMicrotaskEmpty=new wc(!1),this.onStable=new wc(!1),this.onError=new wc(!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.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),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=B.requestAnimationFrame,e=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(B,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,gl(t),fl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),gl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,i,s,r,o,a)=>{try{return ml(t),n.invokeTask(s,r,o,a)}finally{e&&"eventTask"===r.type&&e(),bl(t)}},onInvoke:(e,n,i,s,r,o,a)=>{try{return ml(t),e.invoke(i,s,r,o,a)}finally{bl(t)}},onHasTask:(e,n,i,s)=>{e.hasTask(i,s),n===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,gl(t),fl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,i,s)=>(e.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(this)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ul.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ul.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,i){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+i,t,pl,dl,dl);try{return s.runTask(r,e,n)}finally{s.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function dl(){}const pl={};function fl(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 gl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function ml(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function bl(t){t._nesting--,fl(t)}class _l{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new wc,this.onMicrotaskEmpty=new wc,this.onStable=new wc,this.onError=new wc}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,i){return t.apply(e,n)}}let yl=(()=>{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:()=>{ul.assertNotInAngularZone(),hl(()=>{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())hl(()=>{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 i=-1;e&&e>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==i),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,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)(et(ul))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})(),vl=(()=>{class t{constructor(){this._applications=new Map,Cl.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 Cl.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();class wl{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function Sl(t){Cl=t}let Al,Cl=new wl;const xl=new W("AllowMultipleToken");class El{constructor(t,e){this.name=t,this.token=e}}function Dl(t,e,n=[]){const i="Platform: "+e,s=new W(i);return(e=[])=>{let r=kl();if(!r||r.injector.get(xl,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:br,useValue:"platform"});!function(t){if(Al&&!Al.destroyed&&!Al.injector.get(xl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Al=t.get(Ol);const e=t.get(Qc,null);e&&e.forEach(t=>t())}(Ir.create({providers:t,name:i}))}return function(t){const e=kl();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}(s)}}function kl(){return Al&&!Al.destroyed?Al:null}let Ol=(()=>{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 _l:("zone.js"===t?void 0:t)||new ul({enableLongStackTrace:qn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),i=[{provide:ul,useValue:n}];return n.run(()=>{const e=Ir.create({providers:i,parent:this.injector,name:t.moduleType.name}),s=t.create(e),r=s.injector.get(On,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>Tl(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const i=n();return so(i)?i.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):i}catch(i){throw e.runOutsideAngular(()=>t.handleError(i)),i}}(r,n,()=>{const t=s.injector.get(Wc);return t.runInitializers(),t.donePromise.then(()=>(ac(s.injector.get($c,"en-US")||"en-US"),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=Rl({},e);return function(t,e,n){const i=new hc(n);return Promise.resolve(i)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(Il);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${D(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)(et(Ir))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Rl(t,e){return Array.isArray(e)?e.reduce(Rl,t):Object.assign(Object.assign({},t),e)}let Il=(()=>{class t{constructor(t,e,n,i,s,c){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=qn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new r.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),h=new r.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{ul.assertNotInAngularZone(),hl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ul.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,h.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 fa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const i=n.isBoundToModule?void 0:this._injector.get(ot),s=n.create(Ir.NULL,[],e||n.selector,i);s.onDestroy(()=>{this._unloadComponent(s)});const r=s.injector.get(yl,null);return r&&s.injector.get(vl).registerApplication(s.location.nativeElement,r),this._loadComponent(s),qn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}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;Tl(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Zc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Tl(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(et(ul),et(Jc),et(Ir),et(On),et(ma),et(Wc))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Tl(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class Fl{}class Pl{}const jl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Ml=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||jl}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,i]=t.split("#");return void 0===i&&(i="default"),n("zn8P")(e).then(t=>t[i]).then(t=>Bl(t,e,i)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,i]=t.split("#"),s="NgFactory";return void 0===i&&(i="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[i+s]).then(t=>Bl(t,e,i))}}return t.\u0275fac=function(e){return new(e||t)(et(cl),et(Pl,8))},t.\u0275prov=b({token:t,factory:t.\u0275fac}),t})();function Bl(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}class Hl extends fr{}class Ll extends Hl{}const Nl=function(t){return null},Vl=Dl(null,"core",[{provide:Xc,useValue:"unknown"},{provide:Ol,deps:[Ir]},{provide:vl,deps:[]},{provide:Jc,deps:[]}]),Ul=[{provide:Il,useClass:Il,deps:[ul,Jc,Ir,On,ma,Wc]},{provide:Ya,deps:[ul],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Wc,useClass:Wc,deps:[[new u,zc]]},{provide:cl,useClass:cl,deps:[]},Gc,{provide:Ma,useFactory:function(){return La},deps:[]},{provide:Ba,useFactory:function(){return Na},deps:[]},{provide:$c,useFactory:function(t){return ac(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new h($c),new u,new p]]},{provide:tl,useValue:"USD"}];let Kl=(()=>{class t{constructor(t){}}return t.\u0275mod=Ct({type:t}),t.\u0275inj=_({factory:function(e){return new(e||t)(et(Il))},providers:Ul}),t})()},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("2fFW"),s=n("NJ4a");const r={closed:!0,next(t){},error(t){if(i.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},gfpf:function(t,e){var n={userAgent:!1},i={};if(void 0===s)var s={};s.lang={extend:function(t,e,i){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var s=function(){};if(s.prototype=e.prototype,t.prototype=new s,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),i){var r;for(r in i)t.prototype[r]=i[r];var a=function(){},c=["toString","valueOf"];try{/MSIE/.test(n.userAgent)&&(a=function(t,e){for(r=0;r>>2]|=(n[r>>>2]>>>24-r%4*8&255)<<24-(i+r)%4*8;else for(r=0;r>>2]=n[r>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,e=this.sigBytes;t[e>>>2]&=4294967295<<32-e%4*8,t.length=r.ceil(e/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n>>2]>>>24-s%4*8&255;i.push((r>>>4).toString(16)),i.push((15&r).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new l.init(n,e/2)}},d=h.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],s=0;s>>2]>>>24-s%4*8&255));return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new l.init(n,e)}},p=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},f=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(t){var e=this._data,n=e.words,i=e.sigBytes,s=this.blockSize,o=i/(4*s),a=(o=t?r.ceil(o):r.max((0|o)-this._minBufferSize,0))*s,c=r.min(4*a,i);if(a){for(var h=0;h>>2]}},e.BlockCipher=a.extend({cfg:a.cfg.extend({mode:c,padding:h}),reset:function(){a.reset.call(this);var t=(e=this.cfg).iv,e=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=e.createEncryptor;else n=e.createDecryptor,this._minBufferSize=1;this._mode=n.call(e,this,t&&t.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4});var u=e.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),d=(c=(p.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext;return((t=t.salt)?i.create([1398893684,1701076831]).concat(t).concat(e):e).toString(r)},parse:function(t){var e=(t=r.parse(t)).words;if(1398893684==e[0]&&1701076831==e[1]){var n=i.create(e.slice(2,4));e.splice(0,4),t.sigBytes-=16}return u.create({ciphertext:t,salt:n})}},e.SerializableCipher=n.extend({cfg:n.extend({format:c}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var s=t.createEncryptor(n,i);return e=s.finalize(e),u.create({ciphertext:e,key:n,iv:(s=s.cfg).iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){return i=this.cfg.extend(i),e=this._parse(e,i.format),t.createDecryptor(n,i).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}})),p=(p.kdf={}).OpenSSL={execute:function(t,e,n,s){return s||(s=i.random(8)),t=o.create({keySize:e+n}).compute(t,s),n=i.create(t.words.slice(e),4*n),t.sigBytes=4*e,u.create({key:t,iv:n,salt:s})}},f=e.PasswordBasedCipher=d.extend({cfg:d.cfg.extend({kdf:p}),encrypt:function(t,e,n,i){return n=(i=this.cfg.extend(i)).kdf.execute(n,t.keySize,t.ivSize),i.iv=n.iv,(t=d.encrypt.call(this,t,e,n.key,i)).mixIn(n),t},decrypt:function(t,e,n,i){return i=this.cfg.extend(i),e=this._parse(e,i.format),n=i.kdf.execute(n,t.keySize,t.ivSize,e.salt),i.iv=n.iv,d.decrypt.call(this,t,e,n.key,i)}})}(),function(){for(var t=m,e=t.lib.BlockCipher,n=t.algo,i=[],s=[],r=[],o=[],a=[],c=[],l=[],h=[],u=[],d=[],p=[],f=0;256>f;f++)p[f]=128>f?f<<1:f<<1^283;var g=0,b=0;for(f=0;256>f;f++){var _;i[g]=_=(_=b^b<<1^b<<2^b<<3^b<<4)>>>8^255&_^99,s[_]=g;var y=p[g],v=p[y],w=p[v],S=257*p[_]^16843008*_;r[g]=S<<24|S>>>8,o[g]=S<<16|S>>>16,a[g]=S<<8|S>>>24,c[g]=S,l[_]=(S=16843009*w^65537*v^257*y^16843008*g)<<24|S>>>8,h[_]=S<<16|S>>>16,u[_]=S<<8|S>>>24,d[_]=S,g?(g=y^p[p[p[w^y]]],b^=p[p[b]]):g=b=1}var A=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=e.extend({_doReset:function(){for(var t=(n=this._key).words,e=n.sigBytes/4,n=4*((this._nRounds=e+6)+1),s=this._keySchedule=[],r=0;r>>24]<<24|i[o>>>16&255]<<16|i[o>>>8&255]<<8|i[255&o]):(o=i[(o=o<<8|o>>>24)>>>24]<<24|i[o>>>16&255]<<16|i[o>>>8&255]<<8|i[255&o],o^=A[r/e|0]<<24),s[r]=s[r-e]^o}for(t=this._invKeySchedule=[],e=0;ee||4>=r?o:l[i[o>>>24]]^h[i[o>>>16&255]]^u[i[o>>>8&255]]^d[i[255&o]]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,r,o,a,c,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,l,h,u,d,s),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,s,r,o,a){for(var c=this._nRounds,l=t[e]^n[0],h=t[e+1]^n[1],u=t[e+2]^n[2],d=t[e+3]^n[3],p=4,f=1;f>>24]^s[h>>>16&255]^r[u>>>8&255]^o[255&d]^n[p++],m=i[h>>>24]^s[u>>>16&255]^r[d>>>8&255]^o[255&l]^n[p++],b=i[u>>>24]^s[d>>>16&255]^r[l>>>8&255]^o[255&h]^n[p++];d=i[d>>>24]^s[l>>>16&255]^r[h>>>8&255]^o[255&u]^n[p++],l=g,h=m,u=b}g=(a[l>>>24]<<24|a[h>>>16&255]<<16|a[u>>>8&255]<<8|a[255&d])^n[p++],m=(a[h>>>24]<<24|a[u>>>16&255]<<16|a[d>>>8&255]<<8|a[255&l])^n[p++],b=(a[u>>>24]<<24|a[d>>>16&255]<<16|a[l>>>8&255]<<8|a[255&h])^n[p++],d=(a[d>>>24]<<24|a[l>>>16&255]<<16|a[h>>>8&255]<<8|a[255&u])^n[p++],t[e]=g,t[e+1]=m,t[e+2]=b,t[e+3]=d},keySize:8}),t.AES=e._createHelper(n)}(),function(){function t(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<n;n++){var i=o[n]-1;e[n]=t[i>>>5]>>>31-i%32&1}for(t=this._subKeys=[],i=0;16>i;i++){var s=t[i]=[],r=c[i];for(n=0;24>n;n++)s[n/6|0]|=e[(a[n]-1+r)%28]<<31-n%6,s[4+(n/6|0)]|=e[28+(a[n+24]-1+r)%28]<<31-n%6;for(s[0]=s[0]<<1|s[0]>>>31,n=1;7>n;n++)s[n]>>>=4*(n-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(e=this._invSubKeys=[],n=0;16>n;n++)e[n]=t[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(n,i,s){this._lBlock=n[i],this._rBlock=n[i+1],t.call(this,4,252645135),t.call(this,16,65535),e.call(this,2,858993459),e.call(this,8,16711935),t.call(this,1,1431655765);for(var r=0;16>r;r++){for(var o=s[r],a=this._lBlock,c=this._rBlock,u=0,d=0;8>d;d++)u|=l[d][((c^o[d])&h[d])>>>0];this._lBlock=c,this._rBlock=a^u}s=this._lBlock,this._lBlock=this._rBlock,this._rBlock=s,t.call(this,1,1431655765),e.call(this,8,16711935),e.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),n[i]=this._lBlock,n[i+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});i.DES=n._createHelper(u),r=r.TripleDES=n.extend({_doReset:function(){var t=this._key.words;this._des1=u.createEncryptor(s.create(t.slice(0,2))),this._des2=u.createEncryptor(s.create(t.slice(2,4))),this._des3=u.createEncryptor(s.create(t.slice(4,6)))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2}),i.TripleDES=n._createHelper(r)}(),function(){var t=m.lib.WordArray;m.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp(),t=[];for(var s=0;s>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,o=0;4>o&&s+.75*o>>6*(3-o)&63));if(e=i.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(e){var n=e.length,i=this._map;(s=i.charAt(64))&&-1!=(s=e.indexOf(s))&&(n=s);for(var s=[],r=0,o=0;o>>6-o%4*2;s[r>>>2]|=(a|c)<<24-r%4*8,r++}return t.create(s,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){function e(t,e,n,i,s,r,o){return((t=t+(e&n|~e&i)+s+o)<>>32-r)+e}function n(t,e,n,i,s,r,o){return((t=t+(e&i|n&~i)+s+o)<>>32-r)+e}function i(t,e,n,i,s,r,o){return((t=t+(e^n^i)+s+o)<>>32-r)+e}function s(t,e,n,i,s,r,o){return((t=t+(n^(e|~i))+s+o)<>>32-r)+e}for(var r=m,o=(c=r.lib).WordArray,a=c.Hasher,c=r.algo,l=[],h=0;64>h;h++)l[h]=4294967296*t.abs(t.sin(h+1))|0;c=c.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,r){for(var o=0;16>o;o++)t[a=r+o]=16711935&((c=t[a])<<8|c>>>24)|4278255360&(c<<24|c>>>8);var a,c=t[r+1],h=t[r+2],u=t[r+3],d=t[r+4],p=t[r+5],f=t[r+6],g=t[r+7],m=t[r+8],b=t[r+9],_=t[r+10],y=t[r+11],v=t[r+12],w=t[r+13],S=t[r+14],A=t[r+15],C=e(C=(o=this._hash.words)[0],D=o[1],E=o[2],x=o[3],a=t[r+0],7,l[0]),x=e(x,C,D,E,c,12,l[1]),E=e(E,x,C,D,h,17,l[2]),D=e(D,E,x,C,u,22,l[3]);C=e(C,D,E,x,d,7,l[4]),x=e(x,C,D,E,p,12,l[5]),E=e(E,x,C,D,f,17,l[6]),D=e(D,E,x,C,g,22,l[7]),C=e(C,D,E,x,m,7,l[8]),x=e(x,C,D,E,b,12,l[9]),E=e(E,x,C,D,_,17,l[10]),D=e(D,E,x,C,y,22,l[11]),C=e(C,D,E,x,v,7,l[12]),x=e(x,C,D,E,w,12,l[13]),E=e(E,x,C,D,S,17,l[14]),C=n(C,D=e(D,E,x,C,A,22,l[15]),E,x,c,5,l[16]),x=n(x,C,D,E,f,9,l[17]),E=n(E,x,C,D,y,14,l[18]),D=n(D,E,x,C,a,20,l[19]),C=n(C,D,E,x,p,5,l[20]),x=n(x,C,D,E,_,9,l[21]),E=n(E,x,C,D,A,14,l[22]),D=n(D,E,x,C,d,20,l[23]),C=n(C,D,E,x,b,5,l[24]),x=n(x,C,D,E,S,9,l[25]),E=n(E,x,C,D,u,14,l[26]),D=n(D,E,x,C,m,20,l[27]),C=n(C,D,E,x,w,5,l[28]),x=n(x,C,D,E,h,9,l[29]),E=n(E,x,C,D,g,14,l[30]),C=i(C,D=n(D,E,x,C,v,20,l[31]),E,x,p,4,l[32]),x=i(x,C,D,E,m,11,l[33]),E=i(E,x,C,D,y,16,l[34]),D=i(D,E,x,C,S,23,l[35]),C=i(C,D,E,x,c,4,l[36]),x=i(x,C,D,E,d,11,l[37]),E=i(E,x,C,D,g,16,l[38]),D=i(D,E,x,C,_,23,l[39]),C=i(C,D,E,x,w,4,l[40]),x=i(x,C,D,E,a,11,l[41]),E=i(E,x,C,D,u,16,l[42]),D=i(D,E,x,C,f,23,l[43]),C=i(C,D,E,x,b,4,l[44]),x=i(x,C,D,E,v,11,l[45]),E=i(E,x,C,D,A,16,l[46]),C=s(C,D=i(D,E,x,C,h,23,l[47]),E,x,a,6,l[48]),x=s(x,C,D,E,g,10,l[49]),E=s(E,x,C,D,S,15,l[50]),D=s(D,E,x,C,p,21,l[51]),C=s(C,D,E,x,v,6,l[52]),x=s(x,C,D,E,u,10,l[53]),E=s(E,x,C,D,_,15,l[54]),D=s(D,E,x,C,c,21,l[55]),C=s(C,D,E,x,m,6,l[56]),x=s(x,C,D,E,A,10,l[57]),E=s(E,x,C,D,f,15,l[58]),D=s(D,E,x,C,w,21,l[59]),C=s(C,D,E,x,d,6,l[60]),x=s(x,C,D,E,y,10,l[61]),E=s(E,x,C,D,h,15,l[62]),D=s(D,E,x,C,b,21,l[63]),o[0]=o[0]+C|0,o[1]=o[1]+D|0,o[2]=o[2]+E|0,o[3]=o[3]+x|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,s=8*e.sigBytes;n[s>>>5]|=128<<24-s%32;var r=t.floor(i/4294967296);for(n[15+(s+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(s+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.sigBytes=4*(n.length+1),this._process(),n=(e=this._hash).words,i=0;4>i;i++)n[i]=16711935&((s=n[i])<<8|s>>>24)|4278255360&(s<<24|s>>>8);return e},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),r.MD5=a._createHelper(c),r.HmacMD5=a._createHmacHelper(c)}(Math),function(){var t=m,e=(s=t.lib).WordArray,n=s.Hasher,i=[],s=t.algo.SHA1=n.extend({_doReset:function(){this._hash=new e.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,s=n[0],r=n[1],o=n[2],a=n[3],c=n[4],l=0;80>l;l++){if(16>l)i[l]=0|t[e+l];else{var h=i[l-3]^i[l-8]^i[l-14]^i[l-16];i[l]=h<<1|h>>>31}h=(s<<5|s>>>27)+c+i[l],h=20>l?h+(1518500249+(r&o|~r&a)):40>l?h+(1859775393+(r^o^a)):60>l?h+((r&o|r&a|o&a)-1894007588):h+((r^o^a)-899497514),c=a,a=o,o=r<<30|r>>>2,r=s,s=h}n[0]=n[0]+s|0,n[1]=n[1]+r|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=n._createHelper(s),t.HmacSHA1=n._createHmacHelper(s)}(),function(t){for(var e=m,n=(s=e.lib).WordArray,i=s.Hasher,s=e.algo,r=[],o=[],a=function(t){return 4294967296*(t-(0|t))|0},c=2,l=0;64>l;){var h;t:{for(var u=t.sqrt(h=c),d=2;d<=u;d++)if(!(h%d)){h=!1;break t}h=!0}h&&(8>l&&(r[l]=a(t.pow(c,.5))),o[l]=a(t.pow(c,1/3)),l++),c++}var p=[];s=s.SHA256=i.extend({_doReset:function(){this._hash=new n.init(r.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],s=n[1],r=n[2],a=n[3],c=n[4],l=n[5],h=n[6],u=n[7],d=0;64>d;d++){if(16>d)p[d]=0|t[e+d];else{var f=p[d-15],g=p[d-2];p[d]=((f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3)+p[d-7]+((g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10)+p[d-16]}f=u+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&h)+o[d]+p[d],g=((i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22))+(i&s^i&r^s&r),u=h,h=l,l=c,c=a+f|0,a=r,r=s,s=i,i=f+g|0}n[0]=n[0]+i|0,n[1]=n[1]+s|0,n[2]=n[2]+r|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0,n[5]=n[5]+l|0,n[6]=n[6]+h|0,n[7]=n[7]+u|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,s=8*e.sigBytes;return n[s>>>5]|=128<<24-s%32,n[14+(s+64>>>9<<4)]=t.floor(i/4294967296),n[15+(s+64>>>9<<4)]=i,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}}),e.SHA256=i._createHelper(s),e.HmacSHA256=i._createHmacHelper(s)}(Math),function(){var t=m,e=t.lib.WordArray,n=(i=t.algo).SHA256,i=i.SHA224=n.extend({_doReset:function(){this._hash=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=4,t}});t.SHA224=n._createHelper(i),t.HmacSHA224=n._createHmacHelper(i)}(),function(){function t(){return i.create.apply(i,arguments)}for(var e=m,n=e.lib.Hasher,i=(r=e.x64).Word,s=r.WordArray,r=e.algo,o=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],a=[],c=0;80>c;c++)a[c]=t();r=r.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n,i=(n=this._hash.words)[0],s=n[1],r=n[2],c=n[3],l=n[4],h=n[5],u=n[6],d=i.high,p=i.low,f=s.high,g=s.low,m=r.high,b=r.low,_=c.high,y=c.low,v=l.high,w=l.low,S=h.high,A=h.low,C=u.high,x=u.low,E=(n=n[7]).high,D=n.low,k=d,O=p,R=f,I=g,T=m,F=b,P=_,j=y,M=v,B=w,H=S,L=A,N=C,V=x,U=E,K=D,z=0;80>z;z++){var W=a[z];if(16>z)var q=W.high=0|t[e+2*z],G=W.low=0|t[e+2*z+1];else{q=((G=(q=a[z-15]).high)>>>1|(Y=q.low)<<31)^(G>>>8|Y<<24)^G>>>7;var Y=(Y>>>1|G<<31)^(Y>>>8|G<<24)^(Y>>>7|G<<25),Q=((G=(Q=a[z-2]).high)>>>19|(X=Q.low)<<13)^(G<<3|X>>>29)^G>>>6,X=(X>>>19|G<<13)^(X<<3|G>>>29)^(X>>>6|G<<26);W.high=q=(q=(q=q+(Z=(G=a[z-7]).high)+((G=Y+G.low)>>>0>>0?1:0))+Q+((G+=X)>>>0>>0?1:0))+(nt=(J=a[z-16]).high)+((G+=J=J.low)>>>0>>0?1:0),W.low=G}var Z=M&H^~M&N,J=B&L^~B&V,$=(W=k&R^k&T^R&T,O&I^O&F^I&F),tt=(X=o[z]).high,et=X.low,nt=U+((M>>>14|B<<18)^(M>>>18|B<<14)^(M<<23|B>>>9))+((X=K+((B>>>14|M<<18)^(B>>>18|M<<14)^(B<<23|M>>>9)))>>>0>>0?1:0);U=N,K=V,N=H,V=L,H=M,L=B,M=P+(nt=(nt=(nt=nt+Z+((X+=J)>>>0>>0?1:0))+tt+((X+=et)>>>0>>0?1:0))+q+((X+=G)>>>0>>0?1:0))+((B=j+X|0)>>>0>>0?1:0)|0,P=T,j=F,T=R,F=I,R=k,I=O,k=nt+(W=(Y=(k>>>28|O<<4)^(k<<30|O>>>2)^(k<<25|O>>>7))+W+((G=(Q=(O>>>28|k<<4)^(O<<30|k>>>2)^(O<<25|k>>>7))+$)>>>0>>0?1:0))+((O=X+G|0)>>>0>>0?1:0)|0}p=i.low=p+O,i.high=d+k+(p>>>0>>0?1:0),g=s.low=g+I,s.high=f+R+(g>>>0>>0?1:0),b=r.low=b+F,r.high=m+T+(b>>>0>>0?1:0),y=c.low=y+j,c.high=_+P+(y>>>0>>0?1:0),w=l.low=w+B,l.high=v+M+(w>>>0>>0?1:0),A=h.low=A+L,h.high=S+H+(A>>>0>>0?1:0),x=u.low=x+V,u.high=C+N+(x>>>0>>0?1:0),D=n.low=D+K,n.high=E+U+(D>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),e.SHA512=n._createHelper(r),e.HmacSHA512=n._createHmacHelper(r)}(),function(){var t=m,e=(s=t.x64).Word,n=s.WordArray,i=(s=t.algo).SHA512,s=s.SHA384=i.extend({_doReset:function(){this._hash=new n.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=i._createHelper(s),t.HmacSHA384=i._createHmacHelper(s)}(),function(){var t=m,e=(i=t.lib).WordArray,n=i.Hasher,i=t.algo,s=e.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),r=e.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),o=e.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=e.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),c=e.create([0,1518500249,1859775393,2400959708,2840853838]),l=e.create([1352829926,1548603684,1836072691,2053994217,0]);i=i.RIPEMD160=n.extend({_doReset:function(){this._hash=e.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;16>n;n++)t[i=e+n]=16711935&((w=t[i])<<8|w>>>24)|4278255360&(w<<24|w>>>8);var i,h,u,d,p,f,g,m,b,_,y,v,w=c.words,S=l.words,A=s.words,C=r.words,x=o.words,E=a.words;for(g=h=(i=this._hash.words)[0],m=u=i[1],b=d=i[2],_=p=i[3],y=f=i[4],n=0;80>n;n+=1)v=h+t[e+A[n]]|0,v=16>n?v+((u^d^p)+w[0]):32>n?v+((u&d|~u&p)+w[1]):48>n?v+(((u|~d)^p)+w[2]):64>n?v+((u&p|d&~p)+w[3]):v+((u^(d|~p))+w[4]),v=(v=(v|=0)<>>32-x[n])+f|0,h=f,f=p,p=d<<10|d>>>22,d=u,u=v,v=g+t[e+C[n]]|0,v=16>n?v+((m^(b|~_))+S[0]):32>n?v+((m&_|b&~_)+S[1]):48>n?v+(((m|~b)^_)+S[2]):64>n?v+((m&b|~m&_)+S[3]):v+((m^b^_)+S[4]),v=(v=(v|=0)<>>32-E[n])+y|0,g=y,y=_,_=b<<10|b>>>22,b=m,m=v;v=i[1]+d+_|0,i[1]=i[2]+p+y|0,i[2]=i[3]+f+g|0,i[3]=i[4]+h+m|0,i[4]=i[0]+u+b|0,i[0]=v},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;for(e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process(),e=(t=this._hash).words,n=0;5>n;n++)e[n]=16711935&((i=e[n])<<8|i>>>24)|4278255360&(i<<24|i>>>8);return t},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),t.RIPEMD160=n._createHelper(i),t.HmacRIPEMD160=n._createHmacHelper(i)}(Math),function(){var t=m.enc.Utf8;m.algo.HMAC=m.lib.Base.extend({init:function(e,n){e=this._hasher=new e.init,"string"==typeof n&&(n=t.parse(n));var i=e.blockSize,s=4*i;n.sigBytes>s&&(n=e.finalize(n)),n.clamp();for(var r=this._oKey=n.clone(),o=this._iKey=n.clone(),a=r.words,c=o.words,l=0;l>6)+_.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),i+=_.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),i+=_.charAt(n>>2)+_.charAt((3&n)<<4));(3&i.length)>0;)i+="=";return i}function v(t){var e,n,i,s="",r=0;for(e=0;e>2),n=3&i,r=1):1==r?(s+=D(n<<2|i>>4),n=15&i,r=2):2==r?(s+=D(n),s+=D(i>>2),n=3&i,r=3):(s+=D(n<<2|i>>4),s+=D(15&i),r=0));return 1==r&&(s+=D(n<<2)),s}function w(t){var e,n=v(t),i=new Array;for(e=0;2*e>15;--r>=0;){var c=32767&this[t],l=this[t++]>>15,h=a*c+l*o;s=((c=o*c+((32767&h)<<15)+n[i]+(1073741823&s))>>>30)+(h>>>15)+a*l+(s>>>30),n[i++]=1073741823&c}return s},b=30):"Netscape"!=n.appName?(S.prototype.am=function(t,e,n,i,s,r){for(;--r>=0;){var o=e*this[t++]+n[i]+s;s=Math.floor(o/67108864),n[i++]=67108863&o}return s},b=26):(S.prototype.am=function(t,e,n,i,s,r){for(var o=16383&e,a=e>>14;--r>=0;){var c=16383&this[t],l=this[t++]>>14,h=a*c+l*o;s=((c=o*c+((16383&h)<<14)+n[i]+s)>>28)+(h>>14)+a*l,n[i++]=268435455&c}return s},b=28),S.prototype.DB=b,S.prototype.DM=(1<>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function I(t){this.m=t}function T(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function H(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function L(){}function N(t){return t}function V(t){this.r2=A(),this.q3=A(),S.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}I.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},I.prototype.revert=function(t){return t},I.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},I.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},I.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},T.prototype.convert=function(t){var e=A();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(S.ZERO)>0&&this.m.subTo(e,e),e},T.prototype.revert=function(t){var e=A();return t.copyTo(e),this.reduce(e),e},T.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},T.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},T.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},S.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},S.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},S.prototype.fromString=function(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var i=t.length,s=!1,r=0;--i>=0;){var o=8==n?255&t[i]:k(t,i);o<0?"-"==t.charAt(i)&&(s=!0):(s=!1,0==r?this[this.t++]=o:r+n>this.DB?(this[this.t-1]|=(o&(1<>this.DB-r):this[this.t-1]|=o<=this.DB&&(r-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,r>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},S.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},S.prototype.drShiftTo=function(t,e){for(var n=t;n=0;--n)e[n+o+1]=this[n]>>s|a,a=(this[n]&r)<=0;--n)e[n]=0;e[o]=a,e.t=this.t+o+1,e.s=this.s,e.clamp()},S.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var i=t%this.DB,s=this.DB-i,r=(1<>i;for(var o=n+1;o>i;i>0&&(e[this.t-n-1]|=(this.s&r)<>=this.DB;if(t.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[n++]=this.DV+i:i>0&&(e[n++]=i),e.t=n,e.clamp()},S.prototype.multiplyTo=function(t,e){var n=this.abs(),i=t.abs(),s=n.t;for(e.t=s+i.t;--s>=0;)e[s]=0;for(s=0;s=0;)t[n]=0;for(n=0;n=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},S.prototype.divRemTo=function(t,e,n){var i=t.abs();if(!(i.t<=0)){var s=this.abs();if(s.t0?(i.lShiftTo(c,r),s.lShiftTo(c,n)):(i.copyTo(r),s.copyTo(n));var l=r.t,h=r[l-1];if(0!=h){var u=h*(1<1?r[l-2]>>this.F2:0),d=this.FV/u,p=(1<=0&&(n[n.t++]=1,n.subTo(b,n)),S.ONE.dlShiftTo(l,b),b.subTo(r,r);r.t=0;){var _=n[--g]==h?this.DM:Math.floor(n[g]*d+(n[g-1]+f)*p);if((n[g]+=r.am(0,_,n,m,0,l))<_)for(r.dlShiftTo(m,b),n.subTo(b,n);n[g]<--_;)n.subTo(b,n)}null!=e&&(n.drShiftTo(l,e),o!=a&&S.ZERO.subTo(e,e)),n.t=l,n.clamp(),c>0&&n.rShiftTo(c,n),o<0&&S.ZERO.subTo(n,n)}}},S.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},S.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},S.prototype.exp=function(t,e){if(t>4294967295||t<1)return S.ONE;var n=A(),i=A(),s=e.convert(this),r=R(t)-1;for(s.copyTo(n);--r>=0;)if(e.sqrTo(n,i),(t&1<0)e.mulTo(i,s,n);else{var o=n;n=i,i=o}return e.revert(n)},S.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,i=(1<0)for(a>a)>0&&(s=!0,r=D(n));o>=0;)a>(a+=this.DB-e)):(n=this[o]>>(a-=e)&i,a<=0&&(a+=this.DB,--o)),n>0&&(s=!0),s&&(r+=D(n));return s?r:"0"},S.prototype.negate=function(){var t=A();return S.ZERO.subTo(this,t),t},S.prototype.abs=function(){return this.s<0?this.negate():this},S.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},S.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+R(this[this.t-1]^this.s&this.DM)},S.prototype.mod=function(t){var e=A();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(S.ZERO)>0&&t.subTo(e,e),e},S.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new I(e):new T(e),this.exp(t,n)},S.ZERO=O(0),S.ONE=O(1),L.prototype.convert=N,L.prototype.revert=N,L.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},L.prototype.sqrTo=function(t,e){t.squareTo(e)},V.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=A();return t.copyTo(e),this.reduce(e),e},V.prototype.revert=function(t){return t},V.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},V.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},V.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var U,K,z,W=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],q=(1<<26)/W[W.length-1];function G(){this.i=0,this.j=0,this.S=new Array}function Y(){!function(t){K[z++]^=255&t,K[z++]^=t>>8&255,K[z++]^=t>>16&255,K[z++]^=t>>24&255,z>=256&&(z-=256)}((new Date).getTime())}if(S.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},S.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=O(n),s=A(),r=A(),o="";for(this.divRemTo(i,s,r);s.signum()>0;)o=(n+r.intValue()).toString(t).substr(1)+o,s.divRemTo(i,s,r);return r.intValue().toString(t)+o},S.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var n=this.chunkSize(e),i=Math.pow(e,n),s=!1,r=0,o=0,a=0;a=n&&(this.dMultiply(i),this.dAddOffset(o,0),r=0,o=0))}r>0&&(this.dMultiply(Math.pow(e,r)),this.dAddOffset(o,0)),s&&S.ZERO.subTo(this,this)},S.prototype.fromNumber=function(t,e,n){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,n),this.testBit(t-1)||this.bitwiseTo(S.ONE.shiftLeft(t-1),P,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(S.ONE.shiftLeft(t-1),this);else{var i=new Array,s=7&t;i.length=1+(t>>3),e.nextBytes(i),s>0?i[0]&=(1<>=this.DB;if(t.t>=this.DB;i+=this.s}else{for(i+=this.s;n>=this.DB;i+=t.s}e.s=i<0?-1:0,i>0?e[n++]=i:i<-1&&(e[n++]=this.DV+i),e.t=n,e.clamp()},S.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},S.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},S.prototype.multiplyLowerTo=function(t,e,n){var i,s=Math.min(this.t+t.t,e);for(n.s=0,n.t=s;s>0;)n[--s]=0;for(i=n.t-this.t;s=0;)n[i]=0;for(i=Math.max(e-this.t,0);i0)if(0==e)n=this[0]%t;else for(var i=this.t-1;i>=0;--i)n=(e*n+this[i])%t;return n},S.prototype.millerRabin=function(t){var e=this.subtract(S.ONE),n=e.getLowestSetBit();if(n<=0)return!1;var i=e.shiftRight(n);(t=t+1>>1)>W.length&&(t=W.length);for(var s=A(),r=0;r>24},S.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},S.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},S.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var n,i=this.DB-t*this.DB%8,s=0;if(t-- >0)for(i>i)!=(this.s&this.DM)>>i&&(e[s++]=n|this.s<=0;)i<8?(n=(this[t]&(1<>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==s&&(128&this.s)!=(128&n)&&++s,(s>0||n!=this.s)&&(e[s++]=n);return e},S.prototype.equals=function(t){return 0==this.compareTo(t)},S.prototype.min=function(t){return this.compareTo(t)<0?this:t},S.prototype.max=function(t){return this.compareTo(t)>0?this:t},S.prototype.and=function(t){var e=A();return this.bitwiseTo(t,F,e),e},S.prototype.or=function(t){var e=A();return this.bitwiseTo(t,P,e),e},S.prototype.xor=function(t){var e=A();return this.bitwiseTo(t,j,e),e},S.prototype.andNot=function(t){var e=A();return this.bitwiseTo(t,M,e),e},S.prototype.not=function(){for(var t=A(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var h=A();for(i.sqrTo(o[1],h);a<=l;)o[a]=A(),i.mulTo(h,o[a-2],o[a]),a+=2}var u,d,p=t.t-1,f=!0,g=A();for(s=R(t[p])-1;p>=0;){for(s>=c?u=t[p]>>s-c&l:(u=(t[p]&(1<0&&(u|=t[p-1]>>this.DB+s-c)),a=n;0==(1&u);)u>>=1,--a;if((s-=a)<0&&(s+=this.DB,--p),f)o[u].copyTo(r),f=!1;else{for(;a>1;)i.sqrTo(r,g),i.sqrTo(g,r),a-=2;a>0?i.sqrTo(r,g):(d=r,r=g,g=d),i.mulTo(g,o[u],r)}for(;p>=0&&0==(t[p]&1<=0?(n.subTo(i,n),e&&s.subTo(o,s),r.subTo(a,r)):(i.subTo(n,i),e&&o.subTo(s,o),a.subTo(r,a))}return 0!=i.compareTo(S.ONE)?S.ZERO:a.compareTo(t)>=0?a.subtract(t):a.signum()<0?(a.addTo(t,a),a.signum()<0?a.add(t):a):a},S.prototype.pow=function(t){return this.exp(t,new L)},S.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var i=e;e=n,n=i}var s=e.getLowestSetBit(),r=n.getLowestSetBit();if(r<0)return e;for(s0&&(e.rShiftTo(r,e),n.rShiftTo(r,n));e.signum()>0;)(s=e.getLowestSetBit())>0&&e.rShiftTo(s,e),(s=n.getLowestSetBit())>0&&n.rShiftTo(s,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return r>0&&n.lShiftTo(r,n),n},S.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=W[W.length-1]){for(e=0;e>>8,K[z++]=255&Q;z=0,Y()}function $(){if(null==U){for(Y(),(U=new G).init(K),z=0;z>24,(16711680&s)>>16,(65280&s)>>8,255&s]))),s+=1;return i}function it(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}function st(t,e,n){for(var i="",s=0;i.length>24,(16711680&s)>>16,(65280&s)>>8,255&s])),s+=1;return i}function rt(t,e){this.x=e,this.q=t}function ot(t,e,n,i){this.curve=t,this.x=e,this.y=n,this.z=null==i?S.ONE:i,this.zinv=null}function at(t,e,n){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(n),this.infinity=new ot(this,null,null)}tt.prototype.nextBytes=function(t){var e;for(e=0;e0&&e.length>0))throw"Invalid RSA public key";this.n=et(t,16),this.e=parseInt(e,16)}},it.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var s=t.charCodeAt(i--);s<128?n[--e]=s:s>127&&s<2048?(n[--e]=63&s|128,n[--e]=s>>6|192):(n[--e]=63&s|128,n[--e]=s>>6&63|128,n[--e]=s>>12|224)}n[--e]=0;for(var r=new tt,o=new Array;e>2;){for(o[0]=0;0==o[0];)r.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new S(n)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var n=this.doPublic(e);if(null==n)return null;var i=n.toString(16);return 0==(1&i.length)?i:"0"+i},it.prototype.encryptOAEP=function(t,e,n){var i=function(t,e,n,i){var s=lt.crypto.MessageDigest,r=lt.crypto.Util,o=null;if(n||(n="sha1"),"string"==typeof n&&(o=s.getCanonicalAlgName(n),i=s.getHashLength(o),n=function(t){return At(r.hashHex(Ct(t),o))}),t.length+2*i+2>e)throw"Message too long for RSA";var a,c="";for(a=0;a>3,e,n);if(null==i)return null;var s=this.doPublic(i);if(null==s)return null;var r=s.toString(16);return 0==(1&r.length)?r:"0"+r},it.prototype.type="RSA",it.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},it.prototype.setPrivate=function(t,e,n){if(this.isPrivate=!0,"string"!=typeof t)this.n=t,this.e=e,this.d=n;else{if(!(null!=t&&null!=e&&t.length>0&&e.length>0))throw"Invalid RSA private key";this.n=et(t,16),this.e=parseInt(e,16),this.d=et(n,16)}},it.prototype.setPrivateEx=function(t,e,n,i,s,r,o,a){if(this.isPrivate=!0,this.isPublic=!1,null==t)throw"RSASetPrivateEx N == null";if(null==e)throw"RSASetPrivateEx E == null";if(0==t.length)throw"RSASetPrivateEx N.length == 0";if(0==e.length)throw"RSASetPrivateEx E.length == 0";if(!(null!=t&&null!=e&&t.length>0&&e.length>0))throw"Invalid RSA private key in RSASetPrivateEx";this.n=et(t,16),this.e=parseInt(e,16),this.d=et(n,16),this.p=et(i,16),this.q=et(s,16),this.dmp1=et(r,16),this.dmq1=et(o,16),this.coeff=et(a,16)},it.prototype.generate=function(t,e){var n=new tt,i=t>>1;this.e=parseInt(e,16);for(var s=new S(e,16);;){for(;this.p=new S(t-i,1,n),0!=this.p.subtract(S.ONE).gcd(s).compareTo(S.ONE)||!this.p.isProbablePrime(10););for(;this.q=new S(i,1,n),0!=this.q.subtract(S.ONE).gcd(s).compareTo(S.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var r=this.p;this.p=this.q,this.q=r}var o=this.p.subtract(S.ONE),a=this.q.subtract(S.ONE),c=o.multiply(a);if(0==c.gcd(s).compareTo(S.ONE)&&(this.n=this.p.multiply(this.q),this.n.bitLength()==t)){this.d=s.modInverse(c),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(a),this.coeff=this.q.modInverse(this.p);break}}this.isPrivate=!0},it.prototype.decrypt=function(t){if(t.length!=Math.ceil(this.n.bitLength()/4))throw new Error("wrong ctext length");var e=et(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){for(var n=t.toByteArray(),i=0;i=n.length)return null;for(var s="";++i191&&r<224?(s+=String.fromCharCode((31&r)<<6|63&n[i+1]),++i):(s+=String.fromCharCode((15&r)<<12|(63&n[i+1])<<6|63&n[i+2]),i+=2)}return s}(n,this.n.bitLength()+7>>3)},it.prototype.decryptOAEP=function(t,e,n){if(t.length!=Math.ceil(this.n.bitLength()/4))throw new Error("wrong ctext length");var i=et(t,16),s=this.doPrivate(i);return null==s?null:function(t,e,n,i){var s=lt.crypto.MessageDigest,r=lt.crypto.Util,o=null;for(n||(n="sha1"),"string"==typeof n&&(o=s.getCanonicalAlgName(n),i=s.getHashLength(o),n=function(t){return At(r.hashHex(Ct(t),o))}),t=t.toByteArray(),a=0;a>3,e,n)},rt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},rt.prototype.toBigInteger=function(){return this.x},rt.prototype.negate=function(){return new rt(this.q,this.x.negate().mod(this.q))},rt.prototype.add=function(t){return new rt(this.q,this.x.add(t.toBigInteger()).mod(this.q))},rt.prototype.subtract=function(t){return new rt(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},rt.prototype.multiply=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},rt.prototype.square=function(){return new rt(this.q,this.x.square().mod(this.q))},rt.prototype.divide=function(t){return new rt(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},ot.prototype.getX=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.getY=function(){return null==this.zinv&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))},ot.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(S.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(S.ZERO))},ot.prototype.isInfinity=function(){return null==this.x&&null==this.y||this.z.equals(S.ZERO)&&!this.y.toBigInteger().equals(S.ZERO)},ot.prototype.negate=function(){return new ot(this.curve,this.x,this.y.negate(),this.z)},ot.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),n=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(S.ZERO.equals(n))return S.ZERO.equals(e)?this.twice():this.curve.getInfinity();var i=new S("3"),s=this.x.toBigInteger(),r=this.y.toBigInteger(),o=(t.x.toBigInteger(),t.y.toBigInteger(),n.square()),a=o.multiply(n),c=s.multiply(o),l=e.square().multiply(this.z),h=l.subtract(c.shiftLeft(1)).multiply(t.z).subtract(a).multiply(n).mod(this.curve.q),u=c.multiply(i).multiply(e).subtract(r.multiply(a)).subtract(l.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),d=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(u),d)},ot.prototype.twice=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=new S("3"),e=this.x.toBigInteger(),n=this.y.toBigInteger(),i=n.multiply(this.z),s=i.multiply(n).mod(this.curve.q),r=this.curve.a.toBigInteger(),o=e.square().multiply(t);S.ZERO.equals(r)||(o=o.add(this.z.square().multiply(r)));var a=(o=o.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(s)).shiftLeft(1).multiply(i).mod(this.curve.q),c=o.multiply(t).multiply(e).subtract(s.shiftLeft(1)).shiftLeft(2).multiply(s).subtract(o.square().multiply(o)).mod(this.curve.q),l=i.square().multiply(i).shiftLeft(3).mod(this.curve.q);return new ot(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(c),l)},ot.prototype.multiply=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,n=t,i=n.multiply(new S("3")),s=this.negate(),r=this,o=this.curve.q.subtract(t),a=o.multiply(new S("3")),c=new ot(this.curve,this.x,this.y),l=c.negate();for(e=i.bitLength()-2;e>0;--e){r=r.twice();var h=i.testBit(e);h!=n.testBit(e)&&(r=r.add(h?this:s))}for(e=a.bitLength()-2;e>0;--e){c=c.twice();var u=a.testBit(e);u!=o.testBit(e)&&(c=c.add(u?c:l))}return r},ot.prototype.multiplyTwo=function(t,e,n){var i;i=t.bitLength()>n.bitLength()?t.bitLength()-1:n.bitLength()-1;for(var s=this.curve.getInfinity(),r=this.add(e);i>=0;)s=s.twice(),t.testBit(i)?s=n.testBit(i)?s.add(r):s.add(this):n.testBit(i)&&(s=s.add(e)),--i;return s},at.prototype.getQ=function(){return this.q},at.prototype.getA=function(){return this.a},at.prototype.getB=function(){return this.b},at.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},at.prototype.getInfinity=function(){return this.infinity},at.prototype.fromBigInteger=function(t){return new rt(this.q,t)},at.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,n=t.substr(2,e),i=t.substr(e+2,e);return new ot(this,this.fromBigInteger(new S(n,16)),this.fromBigInteger(new S(i,16)));default:return null}},rt.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)},ot.prototype.getEncoded=function(t){var e=function(t,e){var n=t.toByteArrayUnsigned();if(en.length;)n.unshift(0);return n},n=this.getX().toBigInteger(),i=this.getY().toBigInteger(),s=e(n,32);return t?i.isEven()?s.unshift(2):s.unshift(3):(s.unshift(4),s=s.concat(e(i,32))),s},ot.decodeFrom=function(t,e){var n=e.length-1,i=e.slice(1,1+n/2),s=e.slice(1+n/2,1+n);i.unshift(0),s.unshift(0);var r=new S(i),o=new S(s);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.decodeFromHex=function(t,e){e.substr(0,2);var n=e.length-2,i=e.substr(2,n/2),s=e.substr(2+n/2,n/2),r=new S(i,16),o=new S(s,16);return new ot(t,t.fromBigInteger(r),t.fromBigInteger(o))},ot.prototype.add2D=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;if(this.x.equals(t.x))return this.y.equals(t.y)?this.twice():this.curve.getInfinity();var e=t.x.subtract(this.x),n=t.y.subtract(this.y).divide(e),i=n.square().subtract(this.x).subtract(t.x),s=n.multiply(this.x.subtract(i)).subtract(this.y);return new ot(this.curve,i,s)},ot.prototype.twice2D=function(){if(this.isInfinity())return this;if(0==this.y.toBigInteger().signum())return this.curve.getInfinity();var t=this.curve.fromBigInteger(S.valueOf(2)),e=this.curve.fromBigInteger(S.valueOf(3)),n=this.x.square().multiply(e).add(this.curve.a).divide(this.y.multiply(t)),i=n.square().subtract(this.x.multiply(t)),s=n.multiply(this.x.subtract(i)).subtract(this.y);return new ot(this.curve,i,s)},ot.prototype.multiply2D=function(t){if(this.isInfinity())return this;if(0==t.signum())return this.curve.getInfinity();var e,n=t,i=n.multiply(new S("3")),s=this.negate(),r=this;for(e=i.bitLength()-2;e>0;--e){r=r.twice();var o=i.testBit(e);o!=n.testBit(e)&&(r=r.add2D(o?this:s))}return r},ot.prototype.isOnCurve=function(){var t=this.getX().toBigInteger(),e=this.getY().toBigInteger(),n=this.curve.getA().toBigInteger(),i=this.curve.getB().toBigInteger(),s=this.curve.getQ(),r=e.multiply(e).mod(s),o=t.multiply(t).multiply(t).add(n.multiply(t)).add(i).mod(s);return r.equals(o)},ot.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"},ot.prototype.validate=function(){var t=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var e=this.getX().toBigInteger(),n=this.getY().toBigInteger();if(e.compareTo(S.ONE)<0||e.compareTo(t.subtract(S.ONE))>0)throw new Error("x coordinate out of bounds");if(n.compareTo(S.ONE)<0||n.compareTo(t.subtract(S.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(t).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};var ct=function(){var t=new RegExp('(?:false|true|null|[\\{\\}\\[\\]]|(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)|(?:"(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))*"))',"g"),e=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),n={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"};function i(t,e,i){return e?n[e]:String.fromCharCode(parseInt(i,16))}var s=new String(""),r=Object.hasOwnProperty;return function(n,o){var a,c,l=n.match(t),h=l[0],u=!1;"{"===h?a={}:"["===h?a=[]:(a=[],u=!0);for(var d=[a],p=1-u,f=l.length;p=0;)delete n[i[c]]}return o.call(t,e,n)};a=m({"":a},"")}return a}}();void 0!==lt&<||(lt={}),void 0!==lt.asn1&<.asn1||(lt.asn1={}),lt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var i="",s=0;s15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},lt.asn1.DERAbstractString=function(t){lt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=wt(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},s.lang.extend(lt.asn1.DERAbstractString,lt.asn1.ASN1Object),lt.asn1.DERAbstractTime=function(t){lt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){var e=t.getTime()+6e4*t.getTimezoneOffset();return new Date(e)},this.formatDate=function(t,e,n){var i=this.zeroPadding,s=this.localDateToUTC(t),r=String(s.getFullYear());"utc"==e&&(r=r.substr(2,2));var o=r+i(String(s.getMonth()+1),2)+i(String(s.getDate()),2)+i(String(s.getHours()),2)+i(String(s.getMinutes()),2)+i(String(s.getSeconds()),2);if(!0===n){var a=s.getMilliseconds();if(0!=a){var c=i(String(a),3);o=o+"."+(c=c.replace(/[0]+$/,""))}}return o+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=mt(t)},this.setByDateValue=function(t,e,n,i,s,r){var o=new Date(Date.UTC(t,e-1,n,i,s,r,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}},s.lang.extend(lt.asn1.DERAbstractTime,lt.asn1.ASN1Object),lt.asn1.DERAbstractStructured=function(t){lt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},s.lang.extend(lt.asn1.DERAbstractStructured,lt.asn1.ASN1Object),lt.asn1.DERBoolean=function(){lt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},s.lang.extend(lt.asn1.DERBoolean,lt.asn1.ASN1Object),lt.asn1.DERInteger=function(t){lt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=lt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new S(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},s.lang.extend(lt.asn1.DERInteger,lt.asn1.ASN1Object),lt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=lt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}lt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7s.length&&(s=i[n]);return(t=t.replace(s,"::")).slice(1,-1)}function Mt(t){var e="malformed hex value";if(!t.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw e;if(8!=t.length)return 32==t.length?jt(t):t;try{return parseInt(t.substr(0,2),16)+"."+parseInt(t.substr(2,2),16)+"."+parseInt(t.substr(4,2),16)+"."+parseInt(t.substr(6,2),16)}catch(o){throw e}}function Bt(t){for(var e=encodeURIComponent(t),n="",i=0;i"7"?"00"+t:t}function Lt(t){t=(t=(t=t.replace(/^\s*\[\s*/,"")).replace(/\s*\]\s*$/,"")).replace(/\s*/g,"");try{return t.split(/,/).map((function(t,e,n){var i=parseInt(t);if(i<0||255=2*r)break;if(a>=200)break;i.push(c),o=c,a++}return i},dt.getNthChildIdx=function(t,e,n){return dt.getChildIdx(t,e)[n]},dt.getIdxbyList=function(t,e,n,i){var s,r,o=dt;if(0==n.length){if(void 0!==i&&t.substr(e,2)!==i)throw Error("checking tag doesn't match: "+t.substr(e,2)+"!="+i);return e}return s=n.shift(),r=o.getChildIdx(t,e),o.getIdxbyList(t,r[s],n,i)},dt.getIdxbyListEx=function(t,e,n,i){var s,r,o=dt;if(0==n.length)return void 0!==i&&t.substr(e,2)!==i?-1:e;s=n.shift(),r=o.getChildIdx(t,e);for(var a=0,c=0;c=e?t:new Array(e-t.length+1).join("0")+t},n=[],i=t.substr(0,2),s=parseInt(i,16);n[0]=new String(Math.floor(s/40)),n[1]=new String(s%40);for(var r=t.substr(2),o=[],a=0;a0&&(h=h+"."+c.join(".")),h},dt.dump=function(t,e,n,i){var s=dt,r=s.getV,o=s.dump,a=s.getChildIdx,c=t;t instanceof lt.asn1.ASN1Object&&(c=t.getEncodedHex());var l=function(t,e){return t.length<=2*e?t:t.substr(0,e)+"..(total "+t.length/2+"bytes).."+t.substr(t.length-e,e)};void 0===e&&(e={ommit_long_octet:32}),void 0===n&&(n=0),void 0===i&&(i="");var h,u=e.ommit_long_octet;if("01"==(h=c.substr(n,2)))return"00"==(d=r(c,n))?i+"BOOLEAN FALSE\n":i+"BOOLEAN TRUE\n";if("02"==h)return i+"INTEGER "+l(d=r(c,n),u)+"\n";if("03"==h){var d=r(c,n);return s.isASN1HEX(d.substr(2))?(S=i+"BITSTRING, encapsulates\n")+o(d.substr(2),e,0,i+" "):i+"BITSTRING "+l(d,u)+"\n"}if("04"==h)return d=r(c,n),s.isASN1HEX(d)?(S=i+"OCTETSTRING, encapsulates\n")+o(d,e,0,i+" "):i+"OCTETSTRING "+l(d,u)+"\n";if("05"==h)return i+"NULL\n";if("06"==h){var p=r(c,n),f=lt.asn1.ASN1Util.oidHexToInt(p),g=lt.asn1.x509.OID.oid2name(f),m=f.replace(/\./g," ");return""!=g?i+"ObjectIdentifier "+g+" ("+m+")\n":i+"ObjectIdentifier ("+m+")\n"}if("0c"==h)return i+"UTF8String '"+St(r(c,n))+"'\n";if("13"==h)return i+"PrintableString '"+St(r(c,n))+"'\n";if("14"==h)return i+"TeletexString '"+St(r(c,n))+"'\n";if("16"==h)return i+"IA5String '"+St(r(c,n))+"'\n";if("17"==h)return i+"UTCTime "+St(r(c,n))+"\n";if("18"==h)return i+"GeneralizedTime "+St(r(c,n))+"\n";if("1a"==h)return i+"VisualString '"+St(r(c,n))+"'\n";if("1e"==h)return i+"BMPString '"+St(r(c,n))+"'\n";if("30"==h){if("3000"==c.substr(n,4))return i+"SEQUENCE {}\n";S=i+"SEQUENCE\n";var b=e;if((2==(v=a(c,n)).length||3==v.length)&&"06"==c.substr(v[0],2)&&"04"==c.substr(v[v.length-1],2)){g=s.oidname(r(c,v[0]));var _=JSON.parse(JSON.stringify(e));_.x509ExtName=g,b=_}for(var y=0;y31)&&128==(192&n)&&(31&n)==i}catch(d){return!1}},dt.isASN1HEX=function(t){var e=dt;if(t.length%2==1)return!1;var n=e.getVblen(t,0),i=t.substr(0,2),s=e.getL(t,0);return t.length-i.length-s.length==2*n},dt.checkStrictDER=function(t,e,n,i,s){var r=dt;if(void 0===n){if("string"!=typeof t)throw new Error("not hex string");if(t=t.toLowerCase(),!lt.lang.String.isHex(t))throw new Error("not hex string");n=t.length,s=(i=t.length/2)<128?1:Math.ceil(i.toString(16))+1}if(r.getL(t,e).length>2*s)throw new Error("L of TLV too long: idx="+e);var o=r.getVblen(t,e);if(o>i)throw new Error("value of L too long than hex: idx="+e);var a=r.getTLV(t,e),c=a.length-2-r.getL(t,e).length;if(c!==2*o)throw new Error("V string length and L's value not the same:"+c+"/"+2*o);if(0===e&&t.length!=a.length)throw new Error("total length and TLV length unmatch:"+t.length+"!="+a.length);var l=t.substr(e,2);if("02"===l){var h=r.getVidx(t,e);if("00"==t.substr(h,2)&&t.charCodeAt(h+2)<56)throw new Error("not least zeros for DER INTEGER")}if(32&parseInt(l,16)){for(var u=r.getVblen(t,e),d=0,p=r.getChildIdx(t,e),f=0;f0){var e=new n({array:this.extensionsArray}),i=new s({explicit:!0,tag:"a3",obj:e});this.asn1Array.push(i)}var r=new n({array:this.asn1Array});return this.hTLV=r.getEncodedHex(),this.isModified=!1,this.hTLV},this._initialize()},s.lang.extend(lt.asn1.x509.TBSCertificate,lt.asn1.ASN1Object),lt.asn1.x509.Extension=function(t){lt.asn1.x509.Extension.superclass.constructor.call(this);var e=lt.asn1,n=e.DERObjectIdentifier,i=e.DEROctetString,s=e.DERBoolean,r=e.DERSequence;this.getEncodedHex=function(){var t=new n({oid:this.oid}),e=new i({hex:this.getExtnValueHex()}),o=new Array;return o.push(t),this.critical&&o.push(new s),o.push(e),new r({array:o}).getEncodedHex()},this.critical=!1,void 0!==t&&void 0!==t.critical&&(this.critical=t.critical)},s.lang.extend(lt.asn1.x509.Extension,lt.asn1.ASN1Object),lt.asn1.x509.Extension.appendByNameToArray=function(t,e,n){var i=t.toLowerCase(),s=lt.asn1.x509;if("basicconstraints"==i){var r=new s.BasicConstraints(e);n.push(r)}else if("keyusage"==i)r=new s.KeyUsage(e),n.push(r);else if("crldistributionpoints"==i)r=new s.CRLDistributionPoints(e),n.push(r);else if("extkeyusage"==i)r=new s.ExtKeyUsage(e),n.push(r);else if("authoritykeyidentifier"==i)r=new s.AuthorityKeyIdentifier(e),n.push(r);else if("subjectkeyidentifier"==i)r=new s.SubjectKeyIdentifier(e),n.push(r);else if("authorityinfoaccess"==i)r=new s.AuthorityInfoAccess(e),n.push(r);else if("subjectaltname"==i)r=new s.SubjectAltName(e),n.push(r);else if("issueraltname"==i)r=new s.IssuerAltName(e),n.push(r);else{if("certificatepolicies"!=i)throw new Error("unsupported extension name: "+t);r=new s.CertificatePolicies(e),n.push(r)}},lt.asn1.x509.KeyUsage=function(t){lt.asn1.x509.KeyUsage.superclass.constructor.call(this,t);var e=Wt.KEYUSAGE_NAME;if(this.getExtnValueHex=function(){return this.asn1ExtnValue.getEncodedHex()},this.oid="2.5.29.15",void 0!==t&&(void 0!==t.bin&&(this.asn1ExtnValue=new lt.asn1.DERBitString(t)),void 0!==t.names&&void 0!==t.names.length)){for(var n=t.names,i="000000000",s=0;s-1&&t.push(new lt.asn1.DERInteger({int:this.pathLen}));var e=new lt.asn1.DERSequence({array:t});return this.asn1ExtnValue=e,this.asn1ExtnValue.getEncodedHex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,void 0!==t&&(void 0!==t.cA&&(this.cA=t.cA),void 0!==t.pathLen&&(this.pathLen=t.pathLen))},s.lang.extend(lt.asn1.x509.BasicConstraints,lt.asn1.x509.Extension),lt.asn1.x509.CRLDistributionPoints=function(t){lt.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,t);var e=lt.asn1,n=e.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.getEncodedHex()},this.setByDPArray=function(t){this.asn1ExtnValue=new e.DERSequence({array:t})},this.setByOneURI=function(t){var e=new n.GeneralNames([{uri:t}]),i=new n.DistributionPointName(e),s=new n.DistributionPoint({dpobj:i});this.setByDPArray([s])},this.oid="2.5.29.31",void 0!==t&&(void 0!==t.array?this.setByDPArray(t.array):void 0!==t.uri&&this.setByOneURI(t.uri))},s.lang.extend(lt.asn1.x509.CRLDistributionPoints,lt.asn1.x509.Extension),lt.asn1.x509.CertificatePolicies=function(t){lt.asn1.x509.CertificatePolicies.superclass.constructor.call(this,t);var e=lt.asn1,n=e.DERSequence,i=e.x509.PolicyInformation;this.params=null,this.getExtnValueHex=function(){for(var t=[],e=0;e0&&t.push(new n({array:e}))}return new n({array:t}).getEncodedHex()},void 0!==t&&(this.params=t)},s.lang.extend(lt.asn1.x509.PolicyInformation,lt.asn1.ASN1Object),lt.asn1.x509.PolicyQualifierInfo=function(t){lt.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,t);var e=lt.asn1,n=e.DERSequence,i=e.DERIA5String,s=e.DERObjectIdentifier,r=e.x509.UserNotice;this.params=null,this.getEncodedHex=function(){return void 0!==this.params.cps?new n({array:[new s({oid:"1.3.6.1.5.5.7.2.1"}),new i({str:this.params.cps})]}).getEncodedHex():null!=this.params.unotice?new n({array:[new s({oid:"1.3.6.1.5.5.7.2.2"}),new r(this.params.unotice)]}).getEncodedHex():void 0},void 0!==t&&(this.params=t)},s.lang.extend(lt.asn1.x509.PolicyQualifierInfo,lt.asn1.ASN1Object),lt.asn1.x509.UserNotice=function(t){lt.asn1.x509.UserNotice.superclass.constructor.call(this,t);var e=lt.asn1.DERSequence,n=lt.asn1.x509.DisplayText,i=lt.asn1.x509.NoticeReference;this.params=null,this.getEncodedHex=function(){var t=[];return void 0!==this.params.noticeref&&t.push(new i(this.params.noticeref)),void 0!==this.params.exptext&&t.push(new n(this.params.exptext)),new e({array:t}).getEncodedHex()},void 0!==t&&(this.params=t)},s.lang.extend(lt.asn1.x509.UserNotice,lt.asn1.ASN1Object),lt.asn1.x509.NoticeReference=function(t){lt.asn1.x509.NoticeReference.superclass.constructor.call(this,t);var e=lt.asn1.DERSequence,n=lt.asn1.DERInteger,i=lt.asn1.x509.DisplayText;this.params=null,this.getEncodedHex=function(){var t=[];if(void 0!==this.params.org&&t.push(new i(this.params.org)),void 0!==this.params.noticenum){for(var s=[],r=this.params.noticenum,o=0;o0){var t=new n({array:this.aRevokedCert});this.asn1Array.push(t)}var e=new n({array:this.asn1Array});return this.hTLV=e.getEncodedHex(),this.isModified=!1,this.hTLV},this._initialize=function(){this.asn1Version=null,this.asn1SignatureAlg=null,this.asn1Issuer=null,this.asn1ThisUpdate=null,this.asn1NextUpdate=null,this.aRevokedCert=new Array},this._initialize()},s.lang.extend(lt.asn1.x509.TBSCertList,lt.asn1.ASN1Object),lt.asn1.x509.CRLEntry=function(t){lt.asn1.x509.CRLEntry.superclass.constructor.call(this);var e=lt.asn1;this.setCertSerial=function(t){this.sn=new e.DERInteger(t)},this.setRevocationDate=function(t){this.time=new e.x509.Time(t)},this.getEncodedHex=function(){var t=new e.DERSequence({array:[this.sn,this.time]});return this.TLV=t.getEncodedHex(),this.TLV},void 0!==t&&(void 0!==t.time&&this.setRevocationDate(t.time),void 0!==t.sn&&this.setCertSerial(t.sn))},s.lang.extend(lt.asn1.x509.CRLEntry,lt.asn1.ASN1Object),lt.asn1.x509.X500Name=function(t){lt.asn1.x509.X500Name.superclass.constructor.call(this),this.asn1Array=new Array;var e,n=lt.asn1,i=n.x509;this.setByString=function(t){var e=t.split("/");e.shift();for(var n=[],s=0;s0;s++){var r=e.shift();if(!0===n){var o=(i.pop()+","+r).replace(/\\,/g,",");i.push(o),n=!1}else i.push(r);"\\"===r.substr(-1,1)&&(n=!0)}return(i=i.map((function(t){return t.replace("/","\\/")}))).reverse(),"/"+i.join("/")},lt.asn1.x509.X500Name.ldapToOneline=function(t){return lt.asn1.x509.X500Name.ldapToCompat(t)},lt.asn1.x509.RDN=function(t){lt.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=new Array,this.addByString=function(t){this.asn1Array.push(new lt.asn1.x509.AttributeTypeAndValue({str:t}))},this.addByMultiValuedString=function(t){for(var e=lt.asn1.x509.RDN.parseString(t),n=0;n0;s++){var r=e.shift();if(!0===n){var o=(i.pop()+"+"+r).replace(/\\\+/g,"+");i.push(o),n=!1}else i.push(r);"\\"===r.substr(-1,1)&&(n=!0)}var a=!1,c=[];for(s=0;i.length>0;s++){if(r=i.shift(),!0===a){var l=c.pop();r.match(/"$/)?(o=(l+"+"+r).replace(/^([^=]+)="(.*)"$/,"$1=$2"),c.push(o),a=!1):c.push(l+"+"+r)}else c.push(r);r.match(/^[^=]+="/)&&(a=!0)}return c},lt.asn1.x509.AttributeTypeAndValue=function(t){lt.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this);var e=lt.asn1;this.setByString=function(t){var e=t.match(/^([^=]+)=(.+)$/);if(!e)throw"malformed attrTypeAndValueStr: "+t;this.setByAttrTypeAndValueStr(e[1],e[2])},this.setByAttrTypeAndValueStr=function(t,e){this.typeObj=lt.asn1.x509.OID.atype2obj(t);var n="utf8";"C"==t&&(n="prn"),this.valueObj=this.getValueObj(n,e)},this.getValueObj=function(t,n){if("utf8"==t)return new e.DERUTF8String({str:n});if("prn"==t)return new e.DERPrintableString({str:n});if("tel"==t)return new e.DERTeletexString({str:n});if("ia5"==t)return new e.DERIA5String({str:n});throw"unsupported directory string type: type="+t+" value="+n},this.getEncodedHex=function(){var t=new e.DERSequence({array:[this.typeObj,this.valueObj]});return this.TLV=t.getEncodedHex(),this.TLV},void 0!==t&&void 0!==t.str&&this.setByString(t.str)},s.lang.extend(lt.asn1.x509.AttributeTypeAndValue,lt.asn1.ASN1Object),lt.asn1.x509.SubjectPublicKeyInfo=function(t){lt.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var e=lt.asn1,n=e.DERInteger,i=e.DERBitString,s=e.DERObjectIdentifier,r=e.DERSequence,o=e.ASN1Util.newObject,a=e.x509.AlgorithmIdentifier;this.getASN1Object=function(){if(null==this.asn1AlgId||null==this.asn1SubjPKey)throw"algId and/or subjPubKey not set";return new r({array:[this.asn1AlgId,this.asn1SubjPKey]})},this.getEncodedHex=function(){var t=this.getASN1Object();return this.hTLV=t.getEncodedHex(),this.hTLV},this.setPubKey=function(t){try{if(t instanceof it){var e=o({seq:[{int:{bigint:t.n}},{int:{int:t.e}}]}).getEncodedHex();this.asn1AlgId=new a({name:"rsaEncryption"}),this.asn1SubjPKey=new i({hex:"00"+e})}}catch(l){}try{if(t instanceof lt.crypto.ECDSA){var r=new s({name:t.curveName});this.asn1AlgId=new a({name:"ecPublicKey",asn1params:r}),this.asn1SubjPKey=new i({hex:"00"+t.pubKeyHex})}}catch(l){}try{if(t instanceof lt.crypto.DSA){r=new o({seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}),this.asn1AlgId=new a({name:"dsa",asn1params:r});var c=new n({bigint:t.y});this.asn1SubjPKey=new i({hex:"00"+c.getEncodedHex()})}}catch(l){}},void 0!==t&&this.setPubKey(t)},s.lang.extend(lt.asn1.x509.SubjectPublicKeyInfo,lt.asn1.ASN1Object),lt.asn1.x509.Time=function(t){lt.asn1.x509.Time.superclass.constructor.call(this);var e=lt.asn1,n=e.DERUTCTime,i=e.DERGeneralizedTime;this.setTimeParams=function(t){this.timeParams=t},this.getEncodedHex=function(){var t=null;return t=null!=this.timeParams?"utc"==this.type?new n(this.timeParams):new i(this.timeParams):"utc"==this.type?new n:new i,this.TLV=t.getEncodedHex(),this.TLV},this.type="utc",void 0!==t&&(void 0!==t.type?this.type=t.type:void 0!==t.str&&(t.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),t.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=t)},s.lang.extend(lt.asn1.x509.Time,lt.asn1.ASN1Object),lt.asn1.x509.AlgorithmIdentifier=function(t){lt.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var e=lt.asn1,n=e.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.getEncodedHex=function(){if(null===this.nameAlg&&null===this.asn1Alg)throw new Error("algorithm not specified");if(null!==this.nameAlg){var t=null;for(var i in n)i===this.nameAlg&&(t=n[i]);if(null!==t)return this.hTLV=t,this.hTLV}null!==this.nameAlg&&null===this.asn1Alg&&(this.asn1Alg=e.x509.OID.name2obj(this.nameAlg));var s=[this.asn1Alg];null!==this.asn1Params&&s.push(this.asn1Params);var r=new e.DERSequence({array:s});return this.hTLV=r.getEncodedHex(),this.hTLV},void 0!==t&&(void 0!==t.name&&(this.nameAlg=t.name),void 0!==t.asn1params&&(this.asn1Params=t.asn1params),void 0!==t.paramempty&&(this.paramEmpty=t.paramempty)),null===this.asn1Params&&!1===this.paramEmpty&&null!==this.nameAlg){var i=this.nameAlg.toLowerCase();"withdsa"!==i.substr(-7,7)&&"withecdsa"!==i.substr(-9,9)&&(this.asn1Params=new e.DERNull)}},s.lang.extend(lt.asn1.x509.AlgorithmIdentifier,lt.asn1.ASN1Object),lt.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"},lt.asn1.x509.GeneralName=function(t){lt.asn1.x509.GeneralName.superclass.constructor.call(this);var e={rfc822:"81",dns:"82",dn:"a4",uri:"86",ip:"87"},n=lt.asn1,i=n.DEROctetString,s=n.DERIA5String,r=n.DERTaggedObject,o=n.ASN1Object,a=n.x509.X500Name,c=Ot;this.explicit=!1,this.setByParam=function(t){var n=null;if(void 0!==t){if(void 0!==t.rfc822&&(this.type="rfc822",n=new s({str:t[this.type]})),void 0!==t.dns&&(this.type="dns",n=new s({str:t[this.type]})),void 0!==t.uri&&(this.type="uri",n=new s({str:t[this.type]})),void 0!==t.dn&&(this.type="dn",this.explicit=!0,n="string"==typeof t.dn?new a({str:t.dn}):t.dn instanceof lt.asn1.x509.X500Name?t.dn:new a(t.dn)),void 0!==t.ldapdn&&(this.type="dn",this.explicit=!0,n=new a({ldapstr:t.ldapdn})),void 0!==t.certissuer){this.type="dn",this.explicit=!0;var l=null;if((u=t.certissuer).match(/^[0-9A-Fa-f]+$/),-1!=u.indexOf("-----BEGIN ")&&(l=c(u)),null==l)throw"certissuer param not cert";(d=new Wt).hex=l;var h=d.getIssuerHex();(n=new o).hTLV=h}if(void 0!==t.certsubj){var u,d;if(this.type="dn",this.explicit=!0,l=null,(u=t.certsubj).match(/^[0-9A-Fa-f]+$/),-1!=u.indexOf("-----BEGIN ")&&(l=c(u)),null==l)throw"certsubj param not cert";(d=new Wt).hex=l,h=d.getSubjectHex(),(n=new o).hTLV=h}if(void 0!==t.ip){this.type="ip",this.explicit=!1;var p,f=t.ip,g="malformed IP address";if(f.match(/^[0-9.]+[.][0-9.]+$/)){if(8!==(p=Lt("["+f.split(".").join(",")+"]")).length)throw g}else if(f.match(/^[0-9A-Fa-f:]+:[0-9A-Fa-f:]+$/))p=Pt(f);else{if(!f.match(/^([0-9A-Fa-f][0-9A-Fa-f]){1,}$/))throw g;p=f}n=new i({hex:p})}if(null==this.type)throw"unsupported type in params="+t;this.asn1Obj=new r({explicit:this.explicit,tag:e[this.type],obj:n})}},this.getEncodedHex=function(){return this.asn1Obj.getEncodedHex()},void 0!==t&&this.setByParam(t)},s.lang.extend(lt.asn1.x509.GeneralName,lt.asn1.ASN1Object),lt.asn1.x509.GeneralNames=function(t){lt.asn1.x509.GeneralNames.superclass.constructor.call(this);var e=lt.asn1;this.setByParamArray=function(t){for(var n=0;n0&&(i=new n({obj:this.dUnsignedAttrs,tag:"a1",explicit:!1}));var r=[this.dCMSVersion,this.dSignerIdentifier,this.dDigestAlgorithm,t,this.dSigAlg,this.dSig];null!=i&&r.push(i);var o=new e.DERSequence({array:r});return this.hTLV=o.getEncodedHex(),this.hTLV}},s.lang.extend(lt.asn1.cms.SignerInfo,lt.asn1.ASN1Object),lt.asn1.cms.EncapsulatedContentInfo=function(t){var e=lt.asn1,n=e.DERTaggedObject,i=e.DERSequence,s=e.DERObjectIdentifier,r=e.DEROctetString;e.cms.EncapsulatedContentInfo.superclass.constructor.call(this),this.dEContentType=new s({name:"data"}),this.dEContent=null,this.isDetached=!1,this.eContentValueHex=null,this.setContentType=function(t){this.dEContentType=t.match(/^[0-2][.][0-9.]+$/)?new s({oid:t}):new s({name:t})},this.setContentValue=function(t){void 0!==t&&("string"==typeof t.hex?this.eContentValueHex=t.hex:"string"==typeof t.str&&(this.eContentValueHex=wt(t.str)))},this.setContentValueHex=function(t){this.eContentValueHex=t},this.setContentValueStr=function(t){this.eContentValueHex=wt(t)},this.getEncodedHex=function(){if("string"!=typeof this.eContentValueHex)throw"eContentValue not yet set";var t=new r({hex:this.eContentValueHex});this.dEContent=new n({obj:t,tag:"a0",explicit:!0});var e=[this.dEContentType];this.isDetached||e.push(this.dEContent);var s=new i({array:e});return this.hTLV=s.getEncodedHex(),this.hTLV}},s.lang.extend(lt.asn1.cms.EncapsulatedContentInfo,lt.asn1.ASN1Object),lt.asn1.cms.ContentInfo=function(t){var e=lt.asn1,n=e.DERTaggedObject,i=e.DERSequence,s=e.x509;lt.asn1.cms.ContentInfo.superclass.constructor.call(this),this.dContentType=null,this.dContent=null,this.setContentType=function(t){"string"==typeof t&&(this.dContentType=s.OID.name2obj(t))},this.getEncodedHex=function(){var t=new n({obj:this.dContent,tag:"a0",explicit:!0}),e=new i({array:[this.dContentType,t]});return this.hTLV=e.getEncodedHex(),this.hTLV},void 0!==t&&(t.type&&this.setContentType(t.type),t.obj&&t.obj instanceof e.ASN1Object&&(this.dContent=t.obj))},s.lang.extend(lt.asn1.cms.ContentInfo,lt.asn1.ASN1Object),lt.asn1.cms.SignedData=function(t){var e=lt.asn1,n=e.ASN1Object,i=e.DERInteger,s=e.DERSet,r=e.DERSequence,o=e.DERTaggedObject,a=e.cms,c=a.EncapsulatedContentInfo,l=a.SignerInfo,h=a.ContentInfo,u=e.x509.AlgorithmIdentifier;lt.asn1.cms.SignedData.superclass.constructor.call(this),this.dCMSVersion=new i({int:1}),this.dDigestAlgs=null,this.digestAlgNameList=[],this.dEncapContentInfo=new c,this.dCerts=null,this.certificateList=[],this.crlList=[],this.signerInfoList=[new l],this.addCertificatesByPEM=function(t){var e=Ot(t),i=new n;i.hTLV=e,this.certificateList.push(i)},this.getEncodedHex=function(){if("string"==typeof this.hTLV)return this.hTLV;if(null==this.dDigestAlgs){for(var t=[],e=0;e0){var a=new s({array:this.certificateList});this.dCerts=new o({obj:a,tag:"a0",explicit:!1})}null!=this.dCerts&&i.push(this.dCerts);var c=new s({array:this.signerInfoList});i.push(c);var l=new r({array:i});return this.hTLV=l.getEncodedHex(),this.hTLV},this.getContentInfo=function(){return this.getEncodedHex(),new h({type:"signed-data",obj:this})},this.getContentInfoEncodedHex=function(){return this.getContentInfo().getEncodedHex()},this.getPEM=function(){return kt(this.getContentInfoEncodedHex(),"CMS")}},s.lang.extend(lt.asn1.cms.SignedData,lt.asn1.ASN1Object),lt.asn1.cms.CMSUtil=new function(){},lt.asn1.cms.CMSUtil.newSignedData=function(t){var e=lt.asn1,n=e.cms,i=n.SignerInfo,s=n.SigningTime,r=n.SigningCertificate,o=n.SigningCertificateV2,a=e.cades.SignaturePolicyIdentifier,c=new(0,n.SignedData);if(c.dEncapContentInfo.setContentValue(t.content),"boolean"==typeof t.detached&&(c.dEncapContentInfo.isDetached=t.detached),"object"==typeof t.certs)for(var l=0;l0){var t=new i({array:this.extensionsArray}),e=new s({array:[t]}),n=new i({array:[new a({oid:"1.2.840.113549.1.9.14"}),e]}),c=new o({explicit:!0,tag:"a0",obj:n});this.asn1Array.push(c)}else c=new o({explicit:!1,tag:"a0",obj:new r}),this.asn1Array.push(c);var l=new i({array:this.asn1Array});return this.hTLV=l.getEncodedHex(),this.isModified=!1,this.hTLV},this._initialize()},s.lang.extend(lt.asn1.csr.CertificationRequestInfo,lt.asn1.ASN1Object),lt.asn1.csr.CSRUtil=new function(){},lt.asn1.csr.CSRUtil.newCSRPEM=function(t){var e=Nt,n=lt.asn1.csr;if(void 0===t.subject)throw"parameter subject undefined";if(void 0===t.sbjpubkey)throw"parameter sbjpubkey undefined";if(void 0===t.sigalg)throw"parameter sigalg undefined";if(void 0===t.sbjprvkey)throw"parameter sbjpubkey undefined";var i=new n.CertificationRequestInfo;if(i.setSubjectByParam(t.subject),i.setSubjectPublicKeyByGetKey(t.sbjpubkey),void 0!==t.ext&&void 0!==t.ext.length)for(var s=0;ss)throw"key is too short for SigAlg: keylen="+n+","+e;for(var r="0001",o="00"+i,a="",c=s-r.length-o.length,l=0;l=0)return!1;if(i.compareTo(n.ONE)<0||i.compareTo(r)>=0)return!1;var a=i.modInverse(r),c=t.multiply(a).mod(r),l=e.multiply(a).mod(r);return o.multiply(c).add(s.multiply(l)).getX().toBigInteger().mod(r).equals(e)},this.serializeSig=function(t,e){var n=t.toByteArraySigned(),i=e.toByteArraySigned(),s=[];return s.push(2),s.push(n.length),(s=s.concat(n)).push(2),s.push(i.length),(s=s.concat(i)).unshift(s.length),s.unshift(48),s},this.parseSig=function(t){var e;if(48!=t[0])throw new Error("Signature not a valid DERSequence");if(2!=t[e=2])throw new Error("First element in signature must be a DERInteger");var i=t.slice(e+2,e+2+t[e+1]);if(2!=t[e+=2+t[e+1]])throw new Error("Second element in signature must be a DERInteger");var s=t.slice(e+2,e+2+t[e+1]);return e+=2+t[e+1],{r:n.fromByteArrayUnsigned(i),s:n.fromByteArrayUnsigned(s)}},this.parseSigCompact=function(t){if(65!==t.length)throw"Signature has the wrong length";var e=t[0]-27;if(e<0||e>7)throw"Invalid signature type";var i=this.ecparams.n;return{r:n.fromByteArrayUnsigned(t.slice(1,33)).mod(i),s:n.fromByteArrayUnsigned(t.slice(33,65)).mod(i),i:e}},this.readPKCS5PrvKeyHex=function(t){if(!1===c(t))throw new Error("not ASN.1 hex string");var e,n,i;try{e=a(t,0,["[0]",0],"06"),n=a(t,0,[1],"04");try{i=a(t,0,["[1]",0],"03")}catch(s){}}catch(s){throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=o(e),void 0===this.curveName)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(i),this.setPrivateKeyHex(n),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(t){if(!1===c(t))throw new e("not ASN.1 hex string");var n,i,s;try{a(t,0,[1,0],"06"),n=a(t,0,[1,1],"06"),i=a(t,0,[2,0,1],"04");try{s=a(t,0,[2,0,"[1]",0],"03")}catch(r){}}catch(r){throw new e("malformed PKCS#8 plain ECC private key")}if(this.curveName=o(n),void 0===this.curveName)throw new e("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(s),this.setPrivateKeyHex(i),this.isPublic=!1},this.readPKCS8PubKeyHex=function(t){if(!1===c(t))throw new e("not ASN.1 hex string");var n,i;try{a(t,0,[0,0],"06"),n=a(t,0,[0,1],"06"),i=a(t,0,[1],"03")}catch(s){throw new e("malformed PKCS#8 ECC public key")}if(this.curveName=o(n),null===this.curveName)throw new e("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(i)},this.readCertPubKeyHex=function(t,n){if(!1===c(t))throw new e("not ASN.1 hex string");var i,s;try{i=a(t,0,[0,5,0,1],"06"),s=a(t,0,[0,5,1],"03")}catch(r){throw new e("malformed X.509 certificate ECC public key")}if(this.curveName=o(i),null===this.curveName)throw new e("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(s)},void 0!==t&&void 0!==t.curve&&(this.curveName=t.curve),void 0===this.curveName&&(this.curveName="secp256r1"),this.setNamedCurve(this.curveName),void 0!==t&&(void 0!==t.prv&&this.setPrivateKeyHex(t.prv),void 0!==t.pub&&this.setPublicKeyHex(t.pub))},lt.crypto.ECDSA.parseSigHex=function(t){var e=lt.crypto.ECDSA.parseSigHexInHexRS(t);return{r:new S(e.r,16),s:new S(e.s,16)}},lt.crypto.ECDSA.parseSigHexInHexRS=function(t){var e=dt.getChildIdx,n=dt.getV;if(dt.checkStrictDER(t,0),"30"!=t.substr(0,2))throw new Error("signature is not a ASN.1 sequence");var i=e(t,0);if(2!=i.length)throw new Error("signature shall have two elements");var s=i[0],r=i[1];if("02"!=t.substr(s,2))throw new Error("1st item not ASN.1 integer");if("02"!=t.substr(r,2))throw new Error("2nd item not ASN.1 integer");return{r:n(t,s),s:n(t,r)}},lt.crypto.ECDSA.asn1SigToConcatSig=function(t){var e=lt.crypto.ECDSA.parseSigHexInHexRS(t),n=e.r,i=e.s;if("00"==n.substr(0,2)&&n.length%32==2&&(n=n.substr(2)),"00"==i.substr(0,2)&&i.length%32==2&&(i=i.substr(2)),n.length%32==30&&(n="00"+n),i.length%32==30&&(i="00"+i),n.length%32!=0)throw"unknown ECDSA sig r length error";if(i.length%32!=0)throw"unknown ECDSA sig s length error";return n+i},lt.crypto.ECDSA.concatSigToASN1Sig=function(t){if(t.length/2*8%128!=0)throw"unknown ECDSA concatinated r-s sig length error";var e=t.substr(0,t.length/2),n=t.substr(t.length/2);return lt.crypto.ECDSA.hexRSSigToASN1Sig(e,n)},lt.crypto.ECDSA.hexRSSigToASN1Sig=function(t,e){var n=new S(t,16),i=new S(e,16);return lt.crypto.ECDSA.biRSSigToASN1Sig(n,i)},lt.crypto.ECDSA.biRSSigToASN1Sig=function(t,e){var n=lt.asn1,i=new n.DERInteger({bigint:t}),s=new n.DERInteger({bigint:e});return new n.DERSequence({array:[i,s]}).getEncodedHex()},lt.crypto.ECDSA.getName=function(t){return"2b8104001f"===t?"secp192k1":"2a8648ce3d030107"===t?"secp256r1":"2b8104000a"===t?"secp256k1":"2b81040021"===t?"secp224r1":"2b81040022"===t?"secp384r1":-1!=="|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(t)?"secp256r1":-1!=="|secp256k1|".indexOf(t)?"secp256k1":-1!=="|secp224r1|NIST P-224|P-224|".indexOf(t)?"secp224r1":-1!=="|secp384r1|NIST P-384|P-384|".indexOf(t)?"secp384r1":null},void 0!==lt&<||(lt={}),void 0!==lt.crypto&<.crypto||(lt.crypto={}),lt.crypto.ECParameterDB=new function(){var t={},e={};function n(t){return new S(t,16)}this.getByName=function(n){var i=n;if(void 0!==e[i]&&(i=e[n]),void 0!==t[i])return t[i];throw"unregistered EC curve name: "+i},this.regist=function(i,s,r,o,a,c,l,h,u,d,p,f){t[i]={};var g=n(r),m=n(o),b=n(a),_=n(c),y=n(l),v=new at(g,m,b),w=v.decodePointHex("04"+h+u);t[i].name=i,t[i].keylen=s,t[i].curve=v,t[i].G=w,t[i].n=_,t[i].h=y,t[i].oid=p,t[i].info=f;for(var S=0;S1?new S(i,16):null,l=new S(s,16),this.setPrivate(r,o,a,c,l)},this.setPublic=function(t,e,n,i){this.isPublic=!0,this.p=t,this.q=e,this.g=n,this.y=i,this.x=null},this.setPublicHex=function(t,e,n,i){var s,r,o,a;s=new S(t,16),r=new S(e,16),o=new S(n,16),a=new S(i,16),this.setPublic(s,r,o,a)},this.signWithMessageHash=function(t){var e=this.p,n=this.q,i=this.g,s=this.x,r=lt.crypto.Util.getRandomBigIntegerMinToMax(S.ONE.add(S.ONE),n.subtract(S.ONE)),o=new S(t.substr(0,n.bitLength()/4),16),a=i.modPow(r,e).mod(n),c=r.modInverse(n).multiply(o.add(s.multiply(a))).mod(n);return lt.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:a}},{int:{bigint:c}}]})},this.verifyWithMessageHash=function(t,e){var n=this.p,i=this.q,s=this.g,r=this.y,o=this.parseASN1Signature(e),a=o[0],c=o[1],l=new S(t.substr(0,i.bitLength()/4),16);if(S.ZERO.compareTo(a)>0||a.compareTo(i)>0)throw"invalid DSA signature";if(S.ZERO.compareTo(c)>=0||c.compareTo(i)>0)throw"invalid DSA signature";var h=c.modInverse(i),u=l.multiply(h).mod(i),d=a.multiply(h).mod(i);return 0==s.modPow(u,n).multiply(r.modPow(d,n)).mod(n).mod(i).compareTo(a)},this.parseASN1Signature=function(e){try{return[new n(t(e,0,[0],"02"),16),new n(t(e,0,[1],"02"),16)]}catch(i){throw new Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(n){var i,s,r,o,a;if(!1===e(n))throw new Error("not ASN.1 hex string");try{i=t(n,0,[1],"02"),s=t(n,0,[2],"02"),r=t(n,0,[3],"02"),o=t(n,0,[4],"02"),a=t(n,0,[5],"02")}catch(c){throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(i,s,r,o,a)},this.readPKCS8PrvKeyHex=function(n){var i,s,r,o;if(!1===e(n))throw new Error("not ASN.1 hex string");try{i=t(n,0,[1,1,0],"02"),s=t(n,0,[1,1,1],"02"),r=t(n,0,[1,1,2],"02"),o=t(n,0,[2,0],"02")}catch(a){throw new Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(i,s,r,null,o)},this.readPKCS8PubKeyHex=function(n){var i,s,r,o;if(!1===e(n))throw new Error("not ASN.1 hex string");try{i=t(n,0,[0,1,0],"02"),s=t(n,0,[0,1,1],"02"),r=t(n,0,[0,1,2],"02"),o=t(n,0,[1,0],"02")}catch(a){throw new Error("malformed PKCS#8 DSA public key")}this.setPublicHex(i,s,r,o)},this.readCertPubKeyHex=function(n,i){var s,r,o,a;if(!1===e(n))throw new Error("not ASN.1 hex string");try{s=t(n,0,[0,5,0,1,0],"02"),r=t(n,0,[0,5,0,1,1],"02"),o=t(n,0,[0,5,0,1,2],"02"),a=t(n,0,[0,5,1,0],"02")}catch(c){throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(s,r,o,a)}};var Nt=function(){var t=function(t,n,i){return e(m.AES,t,n,i)},e=function(t,e,n,i){var s=m.enc.Hex.parse(e),r=m.enc.Hex.parse(n),o=m.enc.Hex.parse(i),a={};a.key=r,a.iv=o,a.ciphertext=s;var c=t.decrypt(a,r,{iv:o});return m.enc.Hex.stringify(c)},n=function(t,e,n){return i(m.AES,t,e,n)},i=function(t,e,n,i){var s=m.enc.Hex.parse(e),r=m.enc.Hex.parse(n),o=m.enc.Hex.parse(i),a=t.encrypt(s,r,{iv:o}),c=m.enc.Hex.parse(a.toString());return m.enc.Base64.stringify(c)},s={"AES-256-CBC":{proc:t,eproc:n,keylen:32,ivlen:16},"AES-192-CBC":{proc:t,eproc:n,keylen:24,ivlen:16},"AES-128-CBC":{proc:t,eproc:n,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:function(t,n,i){return e(m.TripleDES,t,n,i)},eproc:function(t,e,n){return i(m.TripleDES,t,e,n)},keylen:24,ivlen:8},"DES-CBC":{proc:function(t,n,i){return e(m.DES,t,n,i)},eproc:function(t,e,n){return i(m.DES,t,e,n)},keylen:8,ivlen:8}},r=function(t){var e={},n=t.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));n&&(e.cipher=n[1],e.ivsalt=n[2]);var i=t.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));i&&(e.type=i[1]);var s=-1,r=0;-1!=t.indexOf("\r\n\r\n")&&(s=t.indexOf("\r\n\r\n"),r=2),-1!=t.indexOf("\n\n")&&(s=t.indexOf("\n\n"),r=1);var o=t.indexOf("-----END");if(-1!=s&&-1!=o){var a=t.substring(s+2*r,o-r);a=a.replace(/\s+/g,""),e.data=a}return e},o=function(t,e,n){for(var i=n.substring(0,16),r=m.enc.Hex.parse(i),o=m.enc.Utf8.parse(e),a=s[t].keylen+s[t].ivlen,c="",l=null;;){var h=m.algo.MD5.create();if(null!=l&&h.update(l),h.update(o),h.update(r),l=h.finalize(),(c+=m.enc.Hex.stringify(l)).length>=2*a)break}var u={};return u.keyhex=c.substr(0,2*s[t].keylen),u.ivhex=c.substr(2*s[t].keylen,2*s[t].ivlen),u},a=function(t,e,n,i){var r=m.enc.Base64.parse(t),o=m.enc.Hex.stringify(r);return(0,s[e].proc)(o,n,i)};return{version:"1.0.0",parsePKCS5PEM:function(t){return r(t)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(t,e,n){return o(t,e,n)},decryptKeyB64:function(t,e,n,i){return a(t,e,n,i)},getDecryptedKeyHex:function(t,e){var n=r(t),i=n.cipher,s=n.ivsalt,c=n.data,l=o(i,e,s);return a(c,i,l.keyhex,s)},getEncryptedPKCS5PEMFromPrvKeyHex:function(t,e,n,i,r){var a="";if(void 0!==i&&null!=i||(i="AES-256-CBC"),void 0===s[i])throw"KEYUTIL unsupported algorithm: "+i;void 0!==r&&null!=r||(r=function(t){var e=m.lib.WordArray.random(t);return m.enc.Hex.stringify(e)}(s[i].ivlen).toUpperCase());var c=function(t,e,n,i){return(0,s[e].eproc)(t,n,i)}(e,i,o(i,n,r).keyhex,r);return a="-----BEGIN "+t+" PRIVATE KEY-----\r\n",a+="Proc-Type: 4,ENCRYPTED\r\n",a+="DEK-Info: "+i+","+r+"\r\n",a+="\r\n",(a+=c.replace(/(.{64})/g,"$1\r\n"))+"\r\n-----END "+t+" PRIVATE KEY-----\r\n"},parseHexOfEncryptedPKCS8:function(t){var e=dt.getChildIdx,n=dt.getV,i={},s=e(t,0);if(2!=s.length)throw"malformed format: SEQUENCE(0).items != 2: "+s.length;i.ciphertext=n(t,s[1]);var r=e(t,s[0]);if(2!=r.length)throw"malformed format: SEQUENCE(0.0).items != 2: "+r.length;if("2a864886f70d01050d"!=n(t,r[0]))throw"this only supports pkcs5PBES2";var o=e(t,r[1]);if(2!=r.length)throw"malformed format: SEQUENCE(0.0.1).items != 2: "+o.length;var a=e(t,o[1]);if(2!=a.length)throw"malformed format: SEQUENCE(0.0.1.1).items != 2: "+a.length;if("2a864886f70d0307"!=n(t,a[0]))throw"this only supports TripleDES";i.encryptionSchemeAlg="TripleDES",i.encryptionSchemeIV=n(t,a[1]);var c=e(t,o[0]);if(2!=c.length)throw"malformed format: SEQUENCE(0.0.1.0).items != 2: "+c.length;if("2a864886f70d01050c"!=n(t,c[0]))throw"this only supports pkcs5PBKDF2";var l=e(t,c[1]);if(l.length<2)throw"malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+l.length;i.pbkdf2Salt=n(t,l[0]);var h=n(t,l[1]);try{i.pbkdf2Iter=parseInt(h,16)}catch(u){throw"malformed format pbkdf2Iter: "+h}return i},getPBKDF2KeyHexFromParam:function(t,e){var n=m.enc.Hex.parse(t.pbkdf2Salt),i=m.PBKDF2(e,n,{keySize:6,iterations:t.pbkdf2Iter});return m.enc.Hex.stringify(i)},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(t,e){var n=Ot(t,"ENCRYPTED PRIVATE KEY"),i=this.parseHexOfEncryptedPKCS8(n),s=Nt.getPBKDF2KeyHexFromParam(i,e),r={};r.ciphertext=m.enc.Hex.parse(i.ciphertext);var o=m.enc.Hex.parse(s),a=m.enc.Hex.parse(i.encryptionSchemeIV),c=m.TripleDES.decrypt(r,o,{iv:a});return m.enc.Hex.stringify(c)},getKeyFromEncryptedPKCS8PEM:function(t,e){var n=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(t,e);return this.getKeyFromPlainPrivatePKCS8Hex(n)},parsePlainPrivatePKCS8Hex:function(t){var e=dt,n=e.getChildIdx,i=e.getV,s={algparam:null};if("30"!=t.substr(0,2))throw"malformed plain PKCS8 private key(code:001)";var r=n(t,0);if(3!=r.length)throw"malformed plain PKCS8 private key(code:002)";if("30"!=t.substr(r[1],2))throw"malformed PKCS8 private key(code:003)";var o=n(t,r[1]);if(2!=o.length)throw"malformed PKCS8 private key(code:004)";if("06"!=t.substr(o[0],2))throw"malformed PKCS8 private key(code:005)";if(s.algoid=i(t,o[0]),"06"==t.substr(o[1],2)&&(s.algparam=i(t,o[1])),"04"!=t.substr(r[2],2))throw"malformed PKCS8 private key(code:006)";return s.keyidx=e.getVidx(t,r[2]),s},getKeyFromPlainPrivatePKCS8PEM:function(t){var e=Ot(t,"PRIVATE KEY");return this.getKeyFromPlainPrivatePKCS8Hex(e)},getKeyFromPlainPrivatePKCS8Hex:function(t){var e,n=this.parsePlainPrivatePKCS8Hex(t);if("2a864886f70d010101"==n.algoid)e=new it;else if("2a8648ce380401"==n.algoid)e=new lt.crypto.DSA;else{if("2a8648ce3d0201"!=n.algoid)throw"unsupported private key algorithm";e=new lt.crypto.ECDSA}return e.readPKCS8PrvKeyHex(t),e},_getKeyFromPublicPKCS8Hex:function(t){var e,n=dt.getVbyList(t,0,[0,0],"06");if("2a864886f70d010101"===n)e=new it;else if("2a8648ce380401"===n)e=new lt.crypto.DSA;else{if("2a8648ce3d0201"!==n)throw"unsupported PKCS#8 public key hex";e=new lt.crypto.ECDSA}return e.readPKCS8PubKeyHex(t),e},parsePublicRawRSAKeyHex:function(t){var e=dt.getChildIdx,n=dt.getV,i={};if("30"!=t.substr(0,2))throw"malformed RSA key(code:001)";var s=e(t,0);if(2!=s.length)throw"malformed RSA key(code:002)";if("02"!=t.substr(s[0],2))throw"malformed RSA key(code:003)";if(i.n=n(t,s[0]),"02"!=t.substr(s[1],2))throw"malformed RSA key(code:004)";return i.e=n(t,s[1]),i},parsePublicPKCS8Hex:function(t){var e=dt,n=e.getChildIdx,i=e.getV,s={algparam:null},r=n(t,0);if(2!=r.length)throw"outer DERSequence shall have 2 elements: "+r.length;var o=r[0];if("30"!=t.substr(o,2))throw"malformed PKCS8 public key(code:001)";var a=n(t,o);if(2!=a.length)throw"malformed PKCS8 public key(code:002)";if("06"!=t.substr(a[0],2))throw"malformed PKCS8 public key(code:003)";if(s.algoid=i(t,a[0]),"06"==t.substr(a[1],2)?s.algparam=i(t,a[1]):"30"==t.substr(a[1],2)&&(s.algparam={},s.algparam.p=e.getVbyList(t,a[1],[0],"02"),s.algparam.q=e.getVbyList(t,a[1],[1],"02"),s.algparam.g=e.getVbyList(t,a[1],[2],"02")),"03"!=t.substr(r[1],2))throw"malformed PKCS8 public key(code:004)";return s.key=i(t,r[1]).substr(2),s}}}();Nt.getKey=function(t,e,n){var i,s=(y=dt).getChildIdx,r=y.getVbyList,o=lt.crypto,a=o.ECDSA,c=o.DSA,l=it,h=Ot,u=Nt;if(void 0!==l&&t instanceof l)return t;if(void 0!==a&&t instanceof a)return t;if(void 0!==c&&t instanceof c)return t;if(void 0!==t.curve&&void 0!==t.xy&&void 0===t.d)return new a({pub:t.xy,curve:t.curve});if(void 0!==t.curve&&void 0!==t.d)return new a({prv:t.d,curve:t.curve});if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(I=new l).setPublic(t.n,t.e),I;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.co&&void 0===t.qi)return(I=new l).setPrivateEx(t.n,t.e,t.d,t.p,t.q,t.dp,t.dq,t.co),I;if(void 0===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0===t.p)return(I=new l).setPrivate(t.n,t.e,t.d),I;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0===t.x)return(I=new c).setPublic(t.p,t.q,t.g,t.y),I;if(void 0!==t.p&&void 0!==t.q&&void 0!==t.g&&void 0!==t.y&&void 0!==t.x)return(I=new c).setPrivate(t.p,t.q,t.g,t.y,t.x),I;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0===t.d)return(I=new l).setPublic(vt(t.n),vt(t.e)),I;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d&&void 0!==t.p&&void 0!==t.q&&void 0!==t.dp&&void 0!==t.dq&&void 0!==t.qi)return(I=new l).setPrivateEx(vt(t.n),vt(t.e),vt(t.d),vt(t.p),vt(t.q),vt(t.dp),vt(t.dq),vt(t.qi)),I;if("RSA"===t.kty&&void 0!==t.n&&void 0!==t.e&&void 0!==t.d)return(I=new l).setPrivate(vt(t.n),vt(t.e),vt(t.d)),I;if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0===t.d){var d=(R=new a({curve:t.crv})).ecparams.keylen/4,p=("0000000000"+vt(t.x)).slice(-d),f=("0000000000"+vt(t.y)).slice(-d);return R.setPublicKeyHex(g="04"+p+f),R}if("EC"===t.kty&&void 0!==t.crv&&void 0!==t.x&&void 0!==t.y&&void 0!==t.d){d=(R=new a({curve:t.crv})).ecparams.keylen/4;var g="04"+(p=("0000000000"+vt(t.x)).slice(-d))+(f=("0000000000"+vt(t.y)).slice(-d)),m=("0000000000"+vt(t.d)).slice(-d);return R.setPublicKeyHex(g),R.setPrivateKeyHex(m),R}if("pkcs5prv"===n){var b,_=t,y=dt;if(9===(b=s(_,0)).length)(I=new l).readPKCS5PrvKeyHex(_);else if(6===b.length)(I=new c).readPKCS5PrvKeyHex(_);else{if(!(b.length>2&&"04"===_.substr(b[1],2)))throw"unsupported PKCS#1/5 hexadecimal key";(I=new a).readPKCS5PrvKeyHex(_)}return I}if("pkcs8prv"===n)return u.getKeyFromPlainPrivatePKCS8Hex(t);if("pkcs8pub"===n)return u._getKeyFromPublicPKCS8Hex(t);if("x509pub"===n)return Wt.getPublicKeyFromCertHex(t);if(-1!=t.indexOf("-END CERTIFICATE-",0)||-1!=t.indexOf("-END X509 CERTIFICATE-",0)||-1!=t.indexOf("-END TRUSTED CERTIFICATE-",0))return Wt.getPublicKeyFromCertPEM(t);if(-1!=t.indexOf("-END PUBLIC KEY-")){var v=Ot(t,"PUBLIC KEY");return u._getKeyFromPublicPKCS8Hex(v)}if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var w=h(t,"RSA PRIVATE KEY");return u.getKey(w,null,"pkcs5prv")}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED")){var A=r(i=h(t,"DSA PRIVATE KEY"),0,[1],"02"),C=r(i,0,[2],"02"),x=r(i,0,[3],"02"),E=r(i,0,[4],"02"),D=r(i,0,[5],"02");return(I=new c).setPrivate(new S(A,16),new S(C,16),new S(x,16),new S(E,16),new S(D,16)),I}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1==t.indexOf("4,ENCRYPTED"))return w=h(t,"EC PRIVATE KEY"),u.getKey(w,null,"pkcs5prv");if(-1!=t.indexOf("-END PRIVATE KEY-"))return u.getKeyFromPlainPrivatePKCS8PEM(t);if(-1!=t.indexOf("-END RSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var k=u.getDecryptedKeyHex(t,e),O=new it;return O.readPKCS5PrvKeyHex(k),O}if(-1!=t.indexOf("-END EC PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED")){var R,I=r(i=u.getDecryptedKeyHex(t,e),0,[1],"04"),T=r(i,0,[2,0],"06"),F=r(i,0,[3,0],"03").substr(2);if(void 0===lt.crypto.OID.oidhex2name[T])throw"undefined OID(hex) in KJUR.crypto.OID: "+T;return(R=new a({curve:lt.crypto.OID.oidhex2name[T]})).setPublicKeyHex(F),R.setPrivateKeyHex(I),R.isPublic=!1,R}if(-1!=t.indexOf("-END DSA PRIVATE KEY-")&&-1!=t.indexOf("4,ENCRYPTED"))return A=r(i=u.getDecryptedKeyHex(t,e),0,[1],"02"),C=r(i,0,[2],"02"),x=r(i,0,[3],"02"),E=r(i,0,[4],"02"),D=r(i,0,[5],"02"),(I=new c).setPrivate(new S(A,16),new S(C,16),new S(x,16),new S(E,16),new S(D,16)),I;if(-1!=t.indexOf("-END ENCRYPTED PRIVATE KEY-"))return u.getKeyFromEncryptedPKCS8PEM(t,e);throw new Error("not supported argument")},Nt.generateKeypair=function(t,e){if("RSA"==t){var n=e;(o=new it).generate(n,"10001"),o.isPrivate=!0,o.isPublic=!0;var i=new it,s=o.n.toString(16),r=o.e.toString(16);return i.setPublic(s,r),i.isPrivate=!1,i.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=i,a}if("EC"==t){var o,a,c=e,l=new lt.crypto.ECDSA({curve:c}).generateKeyPairHex();return(o=new lt.crypto.ECDSA({curve:c})).setPublicKeyHex(l.ecpubhex),o.setPrivateKeyHex(l.ecprvhex),o.isPrivate=!0,o.isPublic=!1,(i=new lt.crypto.ECDSA({curve:c})).setPublicKeyHex(l.ecpubhex),i.isPrivate=!1,i.isPublic=!0,(a={}).prvKeyObj=o,a.pubKeyObj=i,a}throw"unknown algorithm: "+t},Nt.getPEM=function(t,e,n,i,s,r){var o=lt.asn1,a=o.DERObjectIdentifier,c=o.DERInteger,l=o.ASN1Util.newObject,h=lt.crypto,u=h.DSA,d=h.ECDSA,p=it;function f(t){return l({seq:[{int:0},{int:{bigint:t.n}},{int:t.e},{int:{bigint:t.d}},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.dmp1}},{int:{bigint:t.dmq1}},{int:{bigint:t.coeff}}]})}function g(t){return l({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a0",!0,{oid:{name:t.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]})}function b(t){return l({seq:[{int:0},{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}},{int:{bigint:t.y}},{int:{bigint:t.x}}]})}if((void 0!==p&&t instanceof p||void 0!==u&&t instanceof u||void 0!==d&&t instanceof d)&&1==t.isPublic&&(void 0===e||"PKCS8PUB"==e))return kt(w=new(0,o.x509.SubjectPublicKeyInfo)(t).getEncodedHex(),"PUBLIC KEY");if("PKCS1PRV"==e&&void 0!==p&&t instanceof p&&(void 0===n||null==n)&&1==t.isPrivate)return kt(w=f(t).getEncodedHex(),"RSA PRIVATE KEY");if("PKCS1PRV"==e&&void 0!==d&&t instanceof d&&(void 0===n||null==n)&&1==t.isPrivate){var _=new a({name:t.curveName}).getEncodedHex(),y=g(t).getEncodedHex(),v="";return(v+=kt(_,"EC PARAMETERS"))+kt(y,"EC PRIVATE KEY")}if("PKCS1PRV"==e&&void 0!==u&&t instanceof u&&(void 0===n||null==n)&&1==t.isPrivate)return kt(w=b(t).getEncodedHex(),"DSA PRIVATE KEY");if("PKCS5PRV"==e&&void 0!==p&&t instanceof p&&void 0!==n&&null!=n&&1==t.isPrivate){var w=f(t).getEncodedHex();return void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",w,n,i,r)}if("PKCS5PRV"==e&&void 0!==d&&t instanceof d&&void 0!==n&&null!=n&&1==t.isPrivate)return w=g(t).getEncodedHex(),void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",w,n,i,r);if("PKCS5PRV"==e&&void 0!==u&&t instanceof u&&void 0!==n&&null!=n&&1==t.isPrivate)return w=b(t).getEncodedHex(),void 0===i&&(i="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",w,n,i,r);var S=function(t,e){var n=A(t,e);return new l({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:n.pbkdf2Salt}},{int:n.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:n.encryptionSchemeIV}}]}]}]},{octstr:{hex:n.ciphertext}}]}).getEncodedHex()},A=function(t,e){var n=m.lib.WordArray.random(8),i=m.lib.WordArray.random(8),s=m.PBKDF2(e,n,{keySize:6,iterations:100}),r=m.enc.Hex.parse(t),o=m.TripleDES.encrypt(r,s,{iv:i})+"",a={};return a.ciphertext=o,a.pbkdf2Salt=m.enc.Hex.stringify(n),a.pbkdf2Iter=100,a.encryptionSchemeAlg="DES-EDE3-CBC",a.encryptionSchemeIV=m.enc.Hex.stringify(i),a};if("PKCS8PRV"==e&&null!=p&&t instanceof p&&1==t.isPrivate){var C=f(t).getEncodedHex();return w=l({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===n||null==n?kt(w,"PRIVATE KEY"):kt(y=S(w,n),"ENCRYPTED PRIVATE KEY")}if("PKCS8PRV"==e&&void 0!==d&&t instanceof d&&1==t.isPrivate)return C=new l({seq:[{int:1},{octstr:{hex:t.prvKeyHex}},{tag:["a1",!0,{bitstr:{hex:"00"+t.pubKeyHex}}]}]}).getEncodedHex(),w=l({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:t.curveName}}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===n||null==n?kt(w,"PRIVATE KEY"):kt(y=S(w,n),"ENCRYPTED PRIVATE KEY");if("PKCS8PRV"==e&&void 0!==u&&t instanceof u&&1==t.isPrivate)return C=new c({bigint:t.x}).getEncodedHex(),w=l({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:t.p}},{int:{bigint:t.q}},{int:{bigint:t.g}}]}]},{octstr:{hex:C}}]}).getEncodedHex(),void 0===n||null==n?kt(w,"PRIVATE KEY"):kt(y=S(w,n),"ENCRYPTED PRIVATE KEY");throw"unsupported object nor format"},Nt.getKeyFromCSRPEM=function(t){var e=Ot(t,"CERTIFICATE REQUEST");return Nt.getKeyFromCSRHex(e)},Nt.getKeyFromCSRHex=function(t){var e=Nt.parseCSRHex(t);return Nt.getKey(e.p8pubkeyhex,null,"pkcs8pub")},Nt.parseCSRHex=function(t){var e=dt.getChildIdx,n=dt.getTLV,i={},s=t;if("30"!=s.substr(0,2))throw"malformed CSR(code:001)";var r=e(s,0);if(r.length<1)throw"malformed CSR(code:002)";if("30"!=s.substr(r[0],2))throw"malformed CSR(code:003)";var o=e(s,r[0]);if(o.length<3)throw"malformed CSR(code:004)";return i.p8pubkeyhex=n(s,o[2]),i},Nt.getKeyID=function(t){var e=Nt,n=dt;"string"==typeof t&&-1!=t.indexOf("BEGIN ")&&(t=e.getKey(t));var i=Ot(e.getPEM(t)),s=n.getIdxbyList(i,0,[1]),r=n.getV(i,s).substring(2);return lt.crypto.Util.hashHex(r,"sha1")},Nt.getJWKFromKey=function(t){var e={};if(t instanceof it&&t.isPrivate)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e.d=yt(t.d.toString(16)),e.p=yt(t.p.toString(16)),e.q=yt(t.q.toString(16)),e.dp=yt(t.dmp1.toString(16)),e.dq=yt(t.dmq1.toString(16)),e.qi=yt(t.coeff.toString(16)),e;if(t instanceof it&&t.isPublic)return e.kty="RSA",e.n=yt(t.n.toString(16)),e.e=yt(t.e.toString(16)),e;if(t instanceof lt.crypto.ECDSA&&t.isPrivate){if("P-256"!==(i=t.getShortNISTPCurveName())&&"P-384"!==i)throw"unsupported curve name for JWT: "+i;var n=t.getPublicKeyXYHex();return e.kty="EC",e.crv=i,e.x=yt(n.x),e.y=yt(n.y),e.d=yt(t.prvKeyHex),e}if(t instanceof lt.crypto.ECDSA&&t.isPublic){var i;if("P-256"!==(i=t.getShortNISTPCurveName())&&"P-384"!==i)throw"unsupported curve name for JWT: "+i;return n=t.getPublicKeyXYHex(),e.kty="EC",e.crv=i,e.x=yt(n.x),e.y=yt(n.y),e}throw"not supported key object"},it.getPosArrayOfChildrenFromHex=function(t){return dt.getChildIdx(t,0)},it.getHexValueArrayOfChildrenFromHex=function(t){var e,n=dt.getV,i=n(t,(e=it.getPosArrayOfChildrenFromHex(t))[0]),s=n(t,e[1]),r=n(t,e[2]),o=n(t,e[3]),a=n(t,e[4]),c=n(t,e[5]),l=n(t,e[6]),h=n(t,e[7]),u=n(t,e[8]);return(e=new Array).push(i,s,r,o,a,c,l,h,u),e},it.prototype.readPrivateKeyFromPEMString=function(t){var e=Ot(t),n=it.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8])},it.prototype.readPKCS5PrvKeyHex=function(t){var e=it.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},it.prototype.readPKCS8PrvKeyHex=function(t){var e,n,i,s,r,o,a,c,l=dt.getVbyListEx;if(!1===dt.isASN1HEX(t))throw new Error("not ASN.1 hex string");try{e=l(t,0,[2,0,1],"02"),n=l(t,0,[2,0,2],"02"),i=l(t,0,[2,0,3],"02"),s=l(t,0,[2,0,4],"02"),r=l(t,0,[2,0,5],"02"),o=l(t,0,[2,0,6],"02"),a=l(t,0,[2,0,7],"02"),c=l(t,0,[2,0,8],"02")}catch(h){throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(e,n,i,s,r,o,a,c)},it.prototype.readPKCS5PubKeyHex=function(t){var e=dt,n=e.getV;if(!1===e.isASN1HEX(t))throw"keyHex is not ASN.1 hex string";var i=e.getChildIdx(t,0);if(2!==i.length||"02"!==t.substr(i[0],2)||"02"!==t.substr(i[1],2))throw"wrong hex for PKCS#5 public key";var s=n(t,i[0]),r=n(t,i[1]);this.setPublic(s,r)},it.prototype.readPKCS8PubKeyHex=function(t){var e=dt;if(!1===e.isASN1HEX(t))throw new Error("not ASN.1 hex string");if("06092a864886f70d010101"!==e.getTLVbyListEx(t,0,[0,0]))throw new Error("not PKCS8 RSA public key");var n=e.getTLVbyListEx(t,0,[1,0]);this.readPKCS5PubKeyHex(n)},it.prototype.readCertPubKeyHex=function(t,e){var n,i;(n=new Wt).readCertHex(t),i=n.getPublicKeyHex(),this.readPKCS8PubKeyHex(i)};var Vt=new RegExp("[^0-9a-f]","gi");function Ut(t,e){for(var n="",i=e/4-t.length,s=0;s>24,(16711680&s)>>16,(65280&s)>>8,255&s])))),s+=1;return i}function zt(t){for(var e in lt.crypto.Util.DIGESTINFOHEAD){var n=lt.crypto.Util.DIGESTINFOHEAD[e],i=n.length;if(t.substring(0,i)==n)return[e,t.substring(i)]}return[]}function Wt(){var t,e=dt,n=e.getChildIdx,i=e.getV,s=e.getTLV,r=e.getVbyList,o=e.getVbyListEx,a=e.getTLVbyList,l=e.getTLVbyListEx,h=e.getIdxbyList,u=e.getVidx,d=e.oidname,p=Wt,f=Ot;try{t=lt.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV}catch(c){}this.hex=null,this.version=0,this.foffset=0,this.aExtInfo=null,this.getVersion=function(){return null===this.hex||0!==this.version?this.version:"a003020102"!==a(this.hex,0,[0,0])?(this.version=1,this.foffset=-1,1):(this.version=3,3)},this.getSerialNumberHex=function(){return r(this.hex,0,[0,1+this.foffset],"02")},this.getSignatureAlgorithmField=function(){var e=l(this.hex,0,[0,1]);for(var n in t)if(e===t[n])return n;return d(o(this.hex,0,[0,1,0],"06"))},this.getIssuerHex=function(){return a(this.hex,0,[0,3+this.foffset],"30")},this.getIssuerString=function(){return p.hex2dn(this.getIssuerHex())},this.getSubjectHex=function(){return a(this.hex,0,[0,5+this.foffset],"30")},this.getSubjectString=function(){return p.hex2dn(this.getSubjectHex())},this.getNotBefore=function(){var t=r(this.hex,0,[0,4+this.foffset,0]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getNotAfter=function(){var t=r(this.hex,0,[0,4+this.foffset,1]);return t=t.replace(/(..)/g,"%$1"),decodeURIComponent(t)},this.getPublicKeyHex=function(){return e.getTLVbyList(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyIdx=function(){return h(this.hex,0,[0,6+this.foffset],"30")},this.getPublicKeyContentIdx=function(){var t=this.getPublicKeyIdx();return h(this.hex,t,[1,0],"30")},this.getPublicKey=function(){return Nt.getKey(this.getPublicKeyHex(),null,"pkcs8pub")},this.getSignatureAlgorithmName=function(){return d(r(this.hex,0,[1,0],"06"))},this.getSignatureValueHex=function(){return r(this.hex,0,[2],"03",!0)},this.verifySignature=function(t){var e=this.getSignatureAlgorithmField(),n=this.getSignatureValueHex(),i=a(this.hex,0,[0],"30"),s=new lt.crypto.Signature({alg:e});return s.init(t),s.updateHex(i),s.verify(n)},this.parseExt=function(t){var s,o,a;if(void 0===t){if(3!==this.version)return-1;s=h(a=this.hex,0,[0,7,0],"30"),o=n(a,s)}else{a=Ot(t);var c=h(a,0,[0,3,0,0],"06");if("2a864886f70d01090e"!=i(a,c))return void(this.aExtInfo=new Array);s=h(a,0,[0,3,0,1,0],"30"),o=n(a,s),this.hex=a}this.aExtInfo=new Array;for(var l=0;l0&&(l=new Array(n),(new tt).nextBytes(l),l=String.fromCharCode.apply(String,l));var h=At(c(Ct("\0\0\0\0\0\0\0\0"+s+l))),u=[];for(i=0;i>8*a-o&255),i=0;ithis.n.bitLength())return 0;var i=zt(this.doPublic(n).toString(16).replace(/^1f+00/,""));if(0==i.length)return!1;var s=i[0];return i[1]==function(t){return lt.crypto.Util.hashString(t,s)}(t)},it.prototype.verifyWithMessageHash=function(t,e){if(e.length!=Math.ceil(this.n.bitLength()/4))return!1;var n=et(e,16);if(n.bitLength()>this.n.bitLength())return 0;var i=zt(this.doPublic(n).toString(16).replace(/^1f+00/,""));return 0!=i.length&&i[1]==t},it.prototype.verifyPSS=function(t,e,n,i){var s,r=(s=Ct(t),lt.crypto.Util.hashHex(s,n));return void 0===i&&(i=-1),this.verifyWithMessageHashPSS(r,e,n,i)},it.prototype.verifyWithMessageHashPSS=function(t,e,n,i){if(e.length!=Math.ceil(this.n.bitLength()/4))return!1;var s,r=new S(e,16),o=function(t){return lt.crypto.Util.hashHex(t,n)},a=At(t),c=a.length,l=this.n.bitLength()-1,h=Math.ceil(l/8);if(-1===i||void 0===i)i=c;else if(-2===i)i=h-c-2;else if(i<-2)throw"invalid salt length";if(h>8*h-l&255;if(0!=(d.charCodeAt(0)&f))throw"bits beyond keysize not zero";var g=Kt(p,d.length,o),m=[];for(s=0;s0&&-1==(":"+n.join(":")+":").indexOf(":"+g+":"))throw"algorithm '"+g+"' not accepted in the list";if("none"!=g&&null===e)throw"key shall be specified to verify.";if("string"==typeof e&&-1!=e.indexOf("-----BEGIN ")&&(e=Nt.getKey(e)),!("RS"!=u&&"PS"!=u||e instanceof i))throw"key shall be a RSAKey obj for RS* and PS* algs";if("ES"==u&&!(e instanceof a))throw"key shall be a ECDSA obj for ES* algs";var m=null;if(void 0===s.jwsalg2sigalg[f.alg])throw"unsupported alg name: "+g;if("none"==(m=s.jwsalg2sigalg[g]))throw"not supported";if("Hmac"==m.substr(0,4)){if(void 0===e)throw"hexadecimal key shall be specified for HMAC";var b=new c({alg:m,pass:e});return b.updateString(d),p==b.doFinal()}if(-1!=m.indexOf("withECDSA")){var _,y=null;try{y=a.concatSigToASN1Sig(p)}catch(v){return!1}return(_=new l({alg:m})).init(e),_.updateString(d),_.verify(y)}return(_=new l({alg:m})).init(e),_.updateString(d),_.verify(p)},lt.jws.JWS.parse=function(t){var e,n,i=t.split("."),s={};if(2!=i.length&&3!=i.length)throw"malformed sJWS: wrong number of '.' splitted elements";return e=i[1],3==i.length&&(n=i[2]),s.headerObj=lt.jws.JWS.readSafeJSONString(ut(i[0])),s.payloadObj=lt.jws.JWS.readSafeJSONString(ut(e)),s.headerPP=JSON.stringify(s.headerObj,null," "),s.payloadPP=null==s.payloadObj?ut(e):JSON.stringify(s.payloadObj,null," "),void 0!==n&&(s.sigHex=vt(n)),s},lt.jws.JWS.verifyJWT=function(t,e,n){var i=lt.jws,s=i.JWS,r=s.readSafeJSONString,o=s.inArray,a=s.includedArray,c=t.split("."),l=c[0],h=c[1],u=(vt(c[2]),r(ut(l))),d=r(ut(h));if(void 0===u.alg)return!1;if(void 0===n.alg)throw"acceptField.alg shall be specified";if(!o(u.alg,n.alg))return!1;if(void 0!==d.iss&&"object"==typeof n.iss&&!o(d.iss,n.iss))return!1;if(void 0!==d.sub&&"object"==typeof n.sub&&!o(d.sub,n.sub))return!1;if(void 0!==d.aud&&"object"==typeof n.aud)if("string"==typeof d.aud){if(!o(d.aud,n.aud))return!1}else if("object"==typeof d.aud&&!a(d.aud,n.aud))return!1;var p=i.IntDate.getNow();return void 0!==n.verifyAt&&"number"==typeof n.verifyAt&&(p=n.verifyAt),void 0!==n.gracePeriod&&"number"==typeof n.gracePeriod||(n.gracePeriod=0),!(void 0!==d.exp&&"number"==typeof d.exp&&d.exp+n.gracePeriods&&this.aHeader.pop(),this.aSignature.length>s&&this.aSignature.pop(),"addSignature failed: "+f}},this.verifyAll=function(t){if(this.aHeader.length!==t.length||this.aSignature.length!==t.length)return!1;for(var e=0;e0))throw"malformed header";if(this.aHeader=t.headers,"string"!=typeof t.payload)throw"malformed signatures";if(this.sPayload=t.payload,!(t.signatures.length>0))throw"malformed signatures";this.aSignature=t.signatures}catch(r){throw"malformed JWS-JS JSON object: "+r}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return 0==this.aHeader.length?1:0}},e.SecureRandom=tt,e.rng_seed_time=Y,e.BigInteger=S,e.RSAKey=it,e.ECDSA=lt.crypto.ECDSA,e.DSA=lt.crypto.DSA,e.Signature=lt.crypto.Signature,e.MessageDigest=lt.crypto.MessageDigest,e.Mac=lt.crypto.Mac,e.Cipher=lt.crypto.Cipher,e.KEYUTIL=Nt,e.ASN1HEX=dt,e.X509=Wt,e.CryptoJS=m,e.b64tohex=v,e.b64toBA=w,e.ECFieldElementFp=rt,e.ECPointFp=ot,e.ECCurveFp=at,e.stoBA=pt,e.BAtos=ft,e.BAtohex=gt,e.stohex=mt,e.stob64=function(t){return y(mt(t))},e.stob64u=function(t){return bt(y(mt(t)))},e.b64utos=function(t){return ft(w(_t(t)))},e.b64tob64u=bt,e.b64utob64=_t,e.hex2b64=y,e.hextob64u=yt,e.b64utohex=vt,e.utf8tob64u=ht,e.b64utoutf8=ut,e.utf8tob64=function(t){return y(Tt(Bt(t)))},e.b64toutf8=function(t){return decodeURIComponent(Ft(v(t)))},e.utf8tohex=wt,e.hextoutf8=St,e.hextorstr=At,e.rstrtohex=Ct,e.hextob64=xt,e.hextob64nl=Et,e.b64nltohex=Dt,e.hextopem=kt,e.pemtohex=Ot,e.hextoArrayBuffer=function(t){if(t.length%2!=0)throw"input is not even length";if(null==t.match(/^[0-9A-Fa-f]+$/))throw"input is not hexadecimal";for(var e=new ArrayBuffer(t.length/2),n=new DataView(e),i=0;ie.length&&(n=e.length);for(var i=0;i{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.c]]}),t})()},iadO:function(t,e,n){"use strict";n.d(e,"a",(function(){return gt})),n.d(e,"b",(function(){return wt})),n.d(e,"c",(function(){return Ct})),n.d(e,"d",(function(){return At}));var i=n("u47x"),s=n("rDax"),r=n("+rOU"),o=n("ofXK"),a=n("fXoL"),c=n("bTqV"),l=n("0IaG"),h=n("vxfF"),u=n("FKr1"),d=n("XNiG"),p=n("quSY"),f=n("VRyK"),g=n("LRne"),m=n("FtGj"),b=n("IzEk"),_=n("JX91"),y=n("pLZG"),v=n("8LU1"),w=n("R0Ic"),S=n("3Pt+"),A=n("kmnG"),C=n("qFsG"),x=n("cH1L");const E=["mat-calendar-body",""];function D(t,e){if(1&t&&(a.Sb(0,"tr",2),a.Sb(1,"td",3),a.Dc(2),a.Rb(),a.Rb()),2&t){const t=a.dc();a.Bb(1),a.zc("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.Cb("colspan",t.numCols),a.Bb(1),a.Fc(" ",t.label," ")}}function k(t,e){if(1&t&&(a.Sb(0,"td",7),a.Dc(1),a.Rb()),2&t){const t=a.dc(2);a.zc("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),a.Cb("colspan",t._firstRowOffset),a.Bb(1),a.Fc(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function O(t,e){if(1&t){const t=a.Tb();a.Sb(0,"td",8),a.Zb("click",(function(n){a.sc(t);const i=e.$implicit;return a.dc(2)._cellClicked(i,n)})),a.Sb(1,"div",9),a.Dc(2),a.Rb(),a.Nb(3,"div",10),a.Rb()}if(2&t){const t=e.$implicit,n=e.index,i=a.dc().index,s=a.dc();a.zc("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),a.Eb("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(i,n))("mat-calendar-body-range-start",s._isRangeStart(t.compareValue))("mat-calendar-body-range-end",s._isRangeEnd(t.compareValue))("mat-calendar-body-in-range",s._isInRange(t.compareValue))("mat-calendar-body-comparison-bridge-start",s._isComparisonBridgeStart(t.compareValue,i,n))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,i,n))("mat-calendar-body-comparison-start",s._isComparisonStart(t.compareValue))("mat-calendar-body-comparison-end",s._isComparisonEnd(t.compareValue))("mat-calendar-body-in-comparison-range",s._isInComparisonRange(t.compareValue))("mat-calendar-body-preview-start",s._isPreviewStart(t.compareValue))("mat-calendar-body-preview-end",s._isPreviewEnd(t.compareValue))("mat-calendar-body-in-preview",s._isInPreview(t.compareValue)),a.jc("ngClass",t.cssClasses)("tabindex",s._isActiveCell(i,n)?0:-1),a.Cb("data-mat-row",i)("data-mat-col",n)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),a.Bb(1),a.Eb("mat-calendar-body-selected",s._isSelected(t.compareValue))("mat-calendar-body-comparison-identical",s._isComparisonIdentical(t.compareValue))("mat-calendar-body-today",s.todayValue===t.compareValue),a.Bb(1),a.Fc(" ",t.displayValue," ")}}function R(t,e){if(1&t&&(a.Sb(0,"tr",4),a.Cc(1,k,2,6,"td",5),a.Cc(2,O,4,46,"td",6),a.Rb()),2&t){const t=e.$implicit,n=e.index,i=a.dc();a.Bb(1),a.jc("ngIf",0===n&&i._firstRowOffset),a.Bb(1),a.jc("ngForOf",t)}}function I(t,e){if(1&t&&(a.Sb(0,"th",5),a.Dc(1),a.Rb()),2&t){const t=e.$implicit;a.Cb("aria-label",t.long),a.Bb(1),a.Ec(t.narrow)}}const T=["*"];function F(t,e){}function P(t,e){if(1&t){const t=a.Tb();a.Sb(0,"mat-month-view",5),a.Zb("activeDateChange",(function(e){return a.sc(t),a.dc().activeDate=e}))("_userSelection",(function(e){return a.sc(t),a.dc()._dateSelected(e)})),a.Rb()}if(2&t){const t=a.dc();a.jc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)}}function j(t,e){if(1&t){const t=a.Tb();a.Sb(0,"mat-year-view",6),a.Zb("activeDateChange",(function(e){return a.sc(t),a.dc().activeDate=e}))("monthSelected",(function(e){return a.sc(t),a.dc()._monthSelectedInYearView(e)}))("selectedChange",(function(e){return a.sc(t),a.dc()._goToDateInView(e,"month")})),a.Rb()}if(2&t){const t=a.dc();a.jc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function M(t,e){if(1&t){const t=a.Tb();a.Sb(0,"mat-multi-year-view",7),a.Zb("activeDateChange",(function(e){return a.sc(t),a.dc().activeDate=e}))("yearSelected",(function(e){return a.sc(t),a.dc()._yearSelectedInMultiYearView(e)}))("selectedChange",(function(e){return a.sc(t),a.dc()._goToDateInView(e,"year")})),a.Rb()}if(2&t){const t=a.dc();a.jc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}const B=["button"];function H(t,e){1&t&&(a.cc(),a.Sb(0,"svg",3),a.Nb(1,"path",4),a.Rb())}const L=[[["","matDatepickerToggleIcon",""]]],N=["[matDatepickerToggleIcon]"];let V=(()=>{class t{constructor(){this.changes=new d.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}formatYearRange(t,e){return`${t} \u2013 ${e}`}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(a.Ib)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class U{constructor(t,e,n,i,s={},r=t,o){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=i,this.cssClasses=s,this.compareValue=r,this.rawValue=o}}let K=(()=>{class t{constructor(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new a.o,this.previewChange=new a.o,this._enterHandler=t=>{if(this._skipNextFocus&&"focus"===t.type)this._skipNextFocus=!1;else if(t.target&&this.isRange){const e=this._getCellFromElement(t.target);e&&this._ngZone.run(()=>this.previewChange.emit({value:e.enabled?e:null,event:t}))}},this._leaveHandler=t=>{null!==this.previewEnd&&this.isRange&&t.target&&z(t.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:t}))},e.runOutsideAngular(()=>{const e=t.nativeElement;e.addEventListener("mouseenter",this._enterHandler,!0),e.addEventListener("focus",this._enterHandler,!0),e.addEventListener("mouseleave",this._leaveHandler,!0),e.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}_isSelected(t){return this.startValue===t||this.endValue===t}ngOnChanges(t){const e=t.numCols,{rows:n,numCols:i}=this;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!e&&this._cellWidth||(this._cellWidth=100/i+"%")}ngOnDestroy(){const t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(t,e){let n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}_focusActiveCell(t=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(b.a)(1)).subscribe(()=>{const e=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&(t||(this._skipNextFocus=!0),e.focus())})})}_isRangeStart(t){return W(t,this.startValue,this.endValue)}_isRangeEnd(t){return q(t,this.startValue,this.endValue)}_isInRange(t){return G(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return W(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let i=this.rows[e][n-1];if(!i){const t=this.rows[e-1];i=t&&t[t.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let i=this.rows[e][n+1];if(!i){const t=this.rows[e+1];i=t&&t[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(t){return q(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return G(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return W(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return q(t,this.previewStart,this.previewEnd)}_isInPreview(t){return G(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(z(t)?e=t:z(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),n=e.getAttribute("data-mat-col");if(t&&n)return this.rows[parseInt(t)][parseInt(n)]}return null}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.B))},t.\u0275cmp=a.Gb({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.zb],attrs:E,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(a.Cc(0,D,3,6,"tr",0),a.Cc(1,R,3,2,"tr",1)),2&t&&(a.jc("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t})();function z(t){return"TD"===t.nodeName}function W(t,e,n){return null!==n&&e!==n&&t=e&&t===n}function G(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}class Y{constructor(t,e){this.start=t,this.end=e}}let Q=(()=>{class t{constructor(t,e){this.selection=t,this._adapter=e,this._selectionChanged=new d.a,this.selectionChanged=this._selectionChanged,this.selection=t}updateSelection(t,e){this.selection=t,this._selectionChanged.next({selection:t,source:e})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(void 0),a.Mb(u.c))},t.\u0275dir=a.Hb({type:t}),t})(),X=(()=>{class t extends Q{constructor(t){super(null,t)}add(t){super.updateSelection(t,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}}return t.\u0275fac=function(e){return new(e||t)(a.Wb(u.c))},t.\u0275prov=a.Ib({token:t,factory:t.\u0275fac}),t})();const Z={provide:Q,deps:[[new a.C,new a.L,Q],u.c],useFactory:function(t,e){return t||new X(e)}},J=new a.s("MAT_DATE_RANGE_SELECTION_STRATEGY");let $=(()=>{class t{constructor(t,e,n,i,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=i,this._rangeStrategy=s,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new a.o,this._userSelection=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof Y?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe(()=>this._init())}ngOnChanges(t){const e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(t){const e=t.value,n=this._dateAdapter.getYear(this.activeDate),i=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(n,i,e);let r,o;this._selected instanceof Y?(r=this._getDateInCurrentMonth(this._selected.start),o=this._getDateInCurrentMonth(this._selected.end)):r=o=this._getDateInCurrentMonth(this._selected),r===e&&o===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event})}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case m.j:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case m.n:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case m.q:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case m.e:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case m.i:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case m.f:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case m.m:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case m.l:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case m.g:case m.o:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case m.h:return void(null!=this._previewEnd&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(t){this._matCalendarBody._focusActiveCell(t)}_previewChanged({event:t,value:e}){if(this._rangeStrategy){const n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let n=this._dateAdapter.getDayOfWeekNames("long").map((t,n)=>({long:t,narrow:e[n]}));this._weekdays=n.slice(t).concat(n.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}_getDateInCurrentMonth(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}_hasSameMonthAndYear(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}_getCellCompareValue(t){if(t){const e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof Y?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.h),a.Mb(u.e,8),a.Mb(u.c,8),a.Mb(x.b,8),a.Mb(J,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&a.Ic(K,!0),2&t&&a.pc(n=a.ac())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[a.zb],decls:7,vars:13,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(a.Sb(0,"table",0),a.Sb(1,"thead",1),a.Sb(2,"tr"),a.Cc(3,I,2,2,"th",2),a.Rb(),a.Sb(4,"tr"),a.Nb(5,"th",3),a.Rb(),a.Rb(),a.Sb(6,"tbody",4),a.Zb("selectedValueChange",(function(t){return e._dateSelected(t)}))("previewChange",(function(t){return e._previewChanged(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),a.Rb(),a.Rb()),2&t&&(a.Bb(3),a.jc("ngForOf",e._weekdays),a.Bb(3),a.jc("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[o.k,K],encapsulation:2,changeDetection:0}),t})(),tt=(()=>{class t{constructor(t,e,n){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new a.o,this.yearSelected=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),et(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof Y?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const t=this._dateAdapter.getYear(this._activeDate)-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let e=0,n=[];e<24;e++)n.push(t+e),4==n.length&&(this._years.push(n.map(t=>this._createCellForYear(t))),n=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));this.selectedChange.emit(this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case m.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case m.n:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case m.q:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case m.e:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case m.i:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case m.f:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case m.m:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case m.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case m.g:case m.o:this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_getActiveCell(){return nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(t){const e=this._dateAdapter.createDate(t,0,1),n=this._dateAdapter.getYearName(e),i=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new U(t,n,n,this._shouldEnableYear(t),i)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,n,i){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new a.o,this.monthSelected=new a.o,this.activeDateChange=new a.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._dateAdapter.getYear(e)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof Y?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedMonth(t)}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Object(_.a)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(t){const e=t.value,n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(n);const i=this._dateAdapter.getNumDaysInMonth(n);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),i)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,n=this._isRtl();switch(t.keyCode){case m.j:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?1:-1);break;case m.n:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,n?-1:1);break;case m.q:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case m.e:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case m.i:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case m.f:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case m.m:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case m.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case m.g:case m.o:this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:t});break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let t=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(e=>e.map(e=>this._createCellForMonth(e,t[e]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null}_createCellForMonth(t,e){const n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),i=this._dateAdapter.format(n,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(n,"year"):void 0;return new U(t,e.toLocaleUpperCase(),i,this._shouldEnableMonth(t),s)}_shouldEnableMonth(t){const e=this._dateAdapter.getYear(this.activeDate);if(null==t||this._isYearAndMonthAfterMaxDate(e,t)||this._isYearAndMonthBeforeMinDate(e,t))return!1;if(!this.dateFilter)return!0;for(let n=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(n)==t;n=this._dateAdapter.addCalendarDays(n,1))if(this.dateFilter(n))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const n=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return t>n||t===n&&e>i}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,n,i,s){this._intl=t,this.calendar=e,this._dateAdapter=n,this._dateFormats=i,this.calendar.stateChanges.subscribe(()=>s.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const t=this._dateAdapter.getYear(this.calendar.activeDate)-nt(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),e=t+24-1,n=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),i=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(n,i)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(t,e){return"month"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):"year"==this.calendar.currentView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e):et(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(V),a.Mb(Object(a.V)(()=>ot)),a.Mb(u.c,8),a.Mb(u.e,8),a.Mb(a.h))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:T,decls:9,vars:8,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","cdkAriaLive","polite",1,"mat-calendar-period-button",3,"click"],[1,"mat-calendar-arrow"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(t,e){1&t&&(a.ic(),a.Sb(0,"div",0),a.Sb(1,"div",1),a.Sb(2,"button",2),a.Zb("click",(function(){return e.currentPeriodClicked()})),a.Dc(3),a.Nb(4,"div",3),a.Rb(),a.Nb(5,"div",4),a.hc(6),a.Sb(7,"button",5),a.Zb("click",(function(){return e.previousClicked()})),a.Rb(),a.Sb(8,"button",6),a.Zb("click",(function(){return e.nextClicked()})),a.Rb(),a.Rb(),a.Rb()),2&t&&(a.Bb(2),a.Cb("aria-label",e.periodButtonLabel),a.Bb(1),a.Fc(" ",e.periodButtonText," "),a.Bb(1),a.Eb("mat-calendar-invert","month"!=e.calendar.currentView),a.Bb(3),a.jc("disabled",!e.previousEnabled()),a.Cb("aria-label",e.prevButtonLabel),a.Bb(1),a.jc("disabled",!e.nextEnabled()),a.Cb("aria-label",e.nextButtonLabel))},directives:[c.a,i.d],encapsulation:2,changeDetection:0}),t})(),ot=(()=>{class t{constructor(t,e,n,i){this._dateAdapter=e,this._dateFormats=n,this._changeDetectorRef=i,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new a.o,this.yearSelected=new a.o,this.monthSelected=new a.o,this._userSelection=new a.o,this.stateChanges=new d.a,this._intlChanges=t.changes.subscribe(()=>{i.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get selected(){return this._selected}set selected(t){this._selected=t instanceof Y?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get minDate(){return this._minDate}set minDate(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get maxDate(){return this._maxDate}set maxDate(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get activeDate(){return this._clampedActiveDate}set activeDate(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(t){this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck()}ngAfterContentInit(){this._calendarHeaderPortal=new r.d(this.headerComponent||rt),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(t){const e=t.minDate||t.maxDate||t.dateFilter;if(e&&!e.firstChange){const t=this._getCurrentViewComponent();t&&(this._changeDetectorRef.detectChanges(),t._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){const t=this.currentView;let e;e="month"===t?this.monthView:"year"===t?this.yearView:this.multiYearView,e._init()}_dateSelected(t){const e=t.value;(this.selected instanceof Y||e&&!this._dateAdapter.sameDate(e,this.selected))&&this.selectedChange.emit(e),this._userSelection.emit(t)}_yearSelectedInMultiYearView(t){this.yearSelected.emit(t)}_monthSelectedInYearView(t){this.monthSelected.emit(t)}_goToDateInView(t,e){this.activeDate=t,this.currentView=e}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(V),a.Mb(u.c,8),a.Mb(u.e,8),a.Mb(a.h))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){var n;1&t&&(a.Ic($,!0),a.Ic(st,!0),a.Ic(tt,!0)),2&t&&(a.pc(n=a.ac())&&(e.monthView=n.first),a.pc(n=a.ac())&&(e.yearView=n.first),a.pc(n=a.ac())&&(e.multiYearView=n.first))},hostAttrs:[1,"mat-calendar"],inputs:{startView:"startView",startAt:"startAt",selected:"selected",minDate:"minDate",maxDate:"maxDate",headerComponent:"headerComponent",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a.Ab([Z]),a.zb],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(t,e){1&t&&(a.Cc(0,F,0,0,"ng-template",0),a.Sb(1,"div",1),a.Cc(2,P,1,8,"mat-month-view",2),a.Cc(3,j,1,6,"mat-year-view",3),a.Cc(4,M,1,6,"mat-multi-year-view",4),a.Rb()),2&t&&(a.jc("cdkPortalOutlet",e._calendarHeaderPortal),a.Bb(1),a.jc("ngSwitch",e.currentView),a.Bb(1),a.jc("ngSwitchCase","month"),a.Bb(1),a.jc("ngSwitchCase","year"),a.Bb(1),a.jc("ngSwitchCase","multi-year"))},directives:[r.c,i.e,o.n,o.o,$,st,tt],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(33% / 7 - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}\n'],encapsulation:2,changeDetection:0}),t})();const at={transformPanel:Object(w.n)("transformPanel",[Object(w.k)("void",Object(w.l)({opacity:0,transform:"scale(1, 0.8)"})),Object(w.m)("void => enter",Object(w.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(w.l)({opacity:1,transform:"scale(1, 1)"}))),Object(w.m)("* => void",Object(w.e)("100ms linear",Object(w.l)({opacity:0})))]),fadeInCalendar:Object(w.n)("fadeInCalendar",[Object(w.k)("void",Object(w.l)({opacity:0})),Object(w.k)("enter",Object(w.l)({opacity:1})),Object(w.m)("void => *",Object(w.e)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ct=0;const lt=new a.s("mat-datepicker-scroll-strategy"),ht={provide:lt,deps:[s.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class ut{constructor(t){this._elementRef=t}}const dt=Object(u.x)(ut);let pt=(()=>{class t extends dt{constructor(t,e,n,i,s){super(t),this._changeDetectorRef=e,this._model=n,this._dateAdapter=i,this._rangeSelectionStrategy=s,this._subscriptions=new p.a,this._animationState="enter",this._animationDone=new d.a}ngAfterViewInit(){this._changeDetectorRef&&this._subscriptions.add(this.datepicker._stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){if(this._model&&this._dateAdapter){const e=this._model.selection,n=t.value,i=e instanceof Y;if(i&&this._rangeSelectionStrategy){const i=this._rangeSelectionStrategy.selectionFinished(n,e,t.event);this._model.updateSelection(i,this)}else!n||!i&&this._dateAdapter.sameDate(n,e)||this._model.add(n)}this._model&&!this._model.isComplete()||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef&&this._changeDetectorRef.markForCheck()}_getSelected(){return this._model?this._model.selection:null}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h),a.Mb(Q),a.Mb(u.c),a.Mb(J,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&a.Ic(ot,!0),2&t&&a.pc(n=a.ac())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&a.Ac("@transformPanel.done",(function(){return e._animationDone.next()})),2&t&&(a.Bc("@transformPanel",e._animationState),a.Eb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.yb],decls:1,vars:13,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(a.Sb(0,"mat-calendar",0),a.Zb("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(t){return e._handleUserSelection(t)})),a.Rb()),2&t&&a.jc("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter")},directives:[ot,i.f,o.j],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}\n"],encapsulation:2,data:{animation:[at.transformPanel,at.fadeInCalendar]},changeDetection:0}),t})(),ft=(()=>{class t{constructor(t,e,n,i,s,r,o,c,l){this._dialog=t,this._overlay=e,this._ngZone=n,this._viewContainerRef=i,this._dateAdapter=r,this._dir=o,this._document=c,this._model=l,this._inputStateChanges=p.a.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new a.o,this.monthSelected=new a.o,this.openedStream=new a.o,this.closedStream=new a.o,this._opened=!1,this.id="mat-datepicker-"+ct++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=this.id+"-backdrop",this._stateChanges=new d.a,this._scrollStrategy=s}get startAt(){return this._startAt||(this._datepickerInput?this._datepickerInput.getStartValue():null)}set startAt(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}get color(){return this._color||(this._datepickerInput?this._datepickerInput.getThemePalette():void 0)}set color(t){this._color=t}get touchUi(){return this._touchUi}set touchUi(t){this._touchUi=Object(v.c)(t)}get disabled(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled}set disabled(t){const e=Object(v.c)(t);e!==this._disabled&&(this._disabled=e,this._stateChanges.next(void 0))}get opened(){return this._opened}set opened(t){Object(v.c)(t)?this.open():this.close()}_getMinDate(){return this._datepickerInput&&this._datepickerInput.min}_getMaxDate(){return this._datepickerInput&&this._datepickerInput.max}_getDateFilter(){return this._datepickerInput&&this._datepickerInput.dateFilter}ngOnChanges(t){const e=t.xPosition||t.yPosition;e&&!e.firstChange&&this._popupRef&&(this._setConnectedPositions(this._popupRef.getConfig().positionStrategy),this.opened&&this._popupRef.updatePosition()),this._stateChanges.next(void 0)}ngOnDestroy(){this._destroyPopup(),this.close(),this._inputStateChanges.unsubscribe(),this._stateChanges.complete()}select(t){this._model.add(t)}_selectYear(t){this.yearSelected.emit(t)}_selectMonth(t){this.monthSelected.emit(t)}_registerInput(t){return this._inputStateChanges.unsubscribe(),this._datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(()=>this._stateChanges.next(void 0)),this._model}open(){this._opened||this.disabled||(this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._popupComponentRef&&this._popupRef){const t=this._popupComponentRef.instance;t._startExitAnimation(),t._animationDone.pipe(Object(b.a)(1)).subscribe(()=>this._destroyPopup())}this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null);const t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(t)):t()}_openAsDialog(){this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(pt,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog",hasBackdrop:!0,disableClose:!1,backdropClass:["cdk-overlay-dark-backdrop",this._backdropHarnessClass],width:"",height:"",minWidth:"",minHeight:"",maxWidth:"80vw",maxHeight:"",position:{},autoFocus:!0,restoreFocus:!1}),this._dialogRef.afterClosed().subscribe(()=>this.close()),this._forwardContentValues(this._dialogRef.componentInstance)}_openAsPopup(){const t=new r.d(pt,this._viewContainerRef);this._destroyPopup(),this._createPopup(),this._popupComponentRef=this._popupRef.attach(t),this._forwardContentValues(this._popupComponentRef.instance),this._ngZone.onStable.pipe(Object(b.a)(1)).subscribe(()=>{this._popupRef.updatePosition()})}_forwardContentValues(t){t.datepicker=this,t.color=this.color}_createPopup(){const t=this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition(),e=new s.d({positionStrategy:this._setConnectedPositions(t),hasBackdrop:!0,backdropClass:["mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),Object(f.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Object(y.a)(t=>t.keyCode===m.h||this._datepickerInput&&t.altKey&&t.keyCode===m.q))).subscribe(t=>{t&&t.preventDefault(),this.close()})}_destroyPopup(){this._popupRef&&(this._popupRef.dispose(),this._popupRef=this._popupComponentRef=null)}_setConnectedPositions(t){const e="end"===this.xPosition?"end":"start",n="start"===e?"end":"start",i="above"===this.yPosition?"bottom":"top",s="top"===i?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:i},{originX:e,originY:i,overlayX:e,overlayY:s},{originX:n,originY:s,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:s}])}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(l.a),a.Mb(s.c),a.Mb(a.B),a.Mb(a.R),a.Mb(lt),a.Mb(u.c,8),a.Mb(x.b,8),a.Mb(o.d,8),a.Mb(Q))},t.\u0275dir=a.Hb({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},features:[a.zb]}),t})(),gt=(()=>{class t extends ft{}return t.\u0275fac=function(e){return mt(e||t)},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a.Ab([Z]),a.yb],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const mt=a.Ub(gt);class bt{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let _t=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dateAdapter=e,this._dateFormats=n,this.dateChange=new a.o,this.dateInput=new a.o,this._valueChange=new a.o,this.stateChanges=new d.a,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=p.a.EMPTY,this._localeSubscription=p.a.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._getDateFilter();return n&&e&&!n(e)?{matDatepickerFilter:!0}:null},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._getMinDate();return!n||!e||this._dateAdapter.compareDate(n,e)<=0?null:{matDatepickerMin:{min:n,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),n=this._getMaxDate();return!n||!e||this._dateAdapter.compareDate(n,e)>=0?null:{matDatepickerMax:{max:n,actual:e}}},this._lastValueValid=!1,this._localeSubscription=e.localeChanges.subscribe(()=>{this.value=this.value})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=this._isValidValue(t),t=this._dateAdapter.getValidDateOrNull(t);const e=this.value;this._assignValue(t),this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(t){const e=Object(v.c)(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&n.blur&&n.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(t){this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(t.source!==this){const e=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(e),this._cvaOnChange(e),this._onTouched(),this._formatValue(e),this._canEmitChangeEvent(t)&&(this.dateInput.emit(new bt(this,this._elementRef.nativeElement)),this.dateChange.emit(new bt(this,this._elementRef.nativeElement))),this._outsideValueChanged&&this._outsideValueChanged()}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const n=Object.keys(t);for(let i of n){const{previousValue:n,currentValue:s}=t[i];if(!e.isDateInstance(n)||!e.isDateInstance(s))return!0;if(!e.sameDate(n,s))return!0}return!1})(t,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this.stateChanges.complete()}registerOnValidatorChange(t){this._validatorOnChange=t}validate(t){return this._validator?this._validator(t):null}writeValue(t){this.value=t}registerOnChange(t){this._cvaOnChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_onKeydown(t){t.altKey&&t.keyCode===m.e&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let n=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(n),n=this._dateAdapter.getValidDateOrNull(n),this._dateAdapter.sameDate(n,this.value)?(t&&!this.value&&this._cvaOnChange(n),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(n),this._cvaOnChange(n),this._valueChange.emit(n),this.dateInput.emit(new bt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new bt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""}_assignValue(t){this._model?(this._assignValueToModel(t),this._pendingValue=null):this._pendingValue=t}_isValidValue(t){return!t||this._dateAdapter.isValid(t)}_parentDisabled(){return!1}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(u.c,8),a.Mb(u.e,8))},t.\u0275dir=a.Hb({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.zb]}),t})();const yt={provide:S.j,useExisting:Object(a.V)(()=>wt),multi:!0},vt={provide:S.i,useExisting:Object(a.V)(()=>wt),multi:!0};let wt=(()=>{class t extends _t{constructor(t,e,n,i){super(t,e,n),this._formField=i,this._validator=S.p.compose(super._getValidators())}set matDatepicker(t){t&&(this._datepicker=t,this._registerModel(t._registerInput(this)))}get min(){return this._min}set min(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._min)||(this._min=e,this._validatorOnChange())}get max(){return this._max}set max(t){const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t));this._dateAdapter.sameDate(e,this._max)||(this._max=e,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(t){this._dateFilter=t,this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}getPopupConnectionElementRef(){return this.getConnectedOverlayOrigin()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(t){return t}_assignValueToModel(t){this._model&&this._model.updateSelection(t,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_canEmitChangeEvent(){return!0}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(u.c,8),a.Mb(u.e,8),a.Mb(A.a,8))},t.\u0275dir=a.Hb({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&a.Zb("input",(function(t){return e._onInput(t.target.value)}))("change",(function(){return e._onChange()}))("blur",(function(){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(a.Vb("disabled",e.disabled),a.Cb("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null)("data-mat-calendar",e._datepicker?e._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a.Ab([yt,vt,{provide:C.a,useExisting:t}]),a.yb]}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=a.Hb({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),At=(()=>{class t{constructor(t,e,n){this._intl=t,this._changeDetectorRef=e,this._stateChanges=p.a.EMPTY;const i=Number(n);this.tabIndex=i||0===i?i:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(t){this._disabled=Object(v.c)(t)}ngOnChanges(t){t.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())}_watchStateChanges(){const t=this.datepicker?this.datepicker._stateChanges:Object(g.a)(),e=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput.stateChanges:Object(g.a)(),n=this.datepicker?Object(f.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(g.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(f.a)(this._intl.changes,t,e,n).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(V),a.Mb(a.h),a.Xb("tabindex"))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,n){var i;1&t&&a.Fb(n,St,!0),2&t&&a.pc(i=a.ac())&&(e._customIcon=i.first)},viewQuery:function(t,e){var n;1&t&&a.Ic(B,!0),2&t&&a.pc(n=a.ac())&&(e._button=n.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&a.Zb("focus",(function(){return e._button.focus()})),2&t&&(a.Cb("tabindex",e.disabled?null:-1)("data-mat-calendar",e.datepicker?e.datepicker.id:null),a.Eb("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.zb],ngContentSelectors:N,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(a.ic(L),a.Sb(0,"button",0,1),a.Zb("click",(function(t){return e._open(t)})),a.Cc(2,H,2,0,"svg",2),a.hc(3),a.Rb()),2&t&&(a.jc("disabled",e.disabled)("disableRipple",e.disableRipple),a.Cb("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),a.Bb(2),a.jc("ngIf",!e._customIcon))},directives:[c.a,o.l],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),Ct=(()=>{class t{}return t.\u0275mod=a.Kb({type:t}),t.\u0275inj=a.Jb({factory:function(e){return new(e||t)},providers:[V,ht],imports:[[o.c,c.b,l.b,s.f,i.a,r.g],h.b]}),t})()},ibrm:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("AYtA"),s=n("fXoL");let r=(()=>{class t{constructor(t){this.apiCalle=t}ngOnInit(){}getLang(t){return this.a=JSON.parse(localStorage.getItem("language")),this.a?this.a[t]?this.a[t]:""==t?t:"***"+t+"***":"***"+t+"***"}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(i.a))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},itXk:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("z+Ro"),s=n("DH7j"),r=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const c={};function l(...t){let e=null,n=null;return Object(i.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(s.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new h(e))}class h{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new u(t,this.resultSelector))}}class u extends r.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),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 i=new s.a;let r=0;return i.add(e.schedule((function(){r!==t.length?(n.next(t[r++]),n.closed||i.add(this.schedule())):n.complete()}))),i})}},jhN1:function(t,e,n){"use strict";n.d(e,"a",(function(){return B})),n.d(e,"b",(function(){return I})),n.d(e,"c",(function(){return j})),n.d(e,"d",(function(){return w}));var i=n("ofXK"),s=n("fXoL");class r extends i.x{constructor(){super()}supportsDOMEvents(){return!0}}class o extends r{static makeCurrent(){Object(i.B)(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=c||(c=document.querySelector("base"),c)?c.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(){c=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(i.A)(document.cookie,t)}}let a,c=null;const l=new s.s("TRANSITION_ID"),h=[{provide:s.d,useFactory:function(t,e,n){return()=>{n.get(s.e).donePromise.then(()=>{const n=Object(i.z)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[l,i.d,s.t],multi:!0}];class u{static init(){Object(s.Z)(new u)}addToWindow(t){s.qb.getAngularTestability=(e,n=!0)=>{const i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},s.qb.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.qb.getAllAngularRootElements=()=>t.getAllRootElements(),s.qb.frameworkStabilizers||(s.qb.frameworkStabilizers=[]),s.qb.frameworkStabilizers.push(t=>{const e=s.qb.getAllAngularTestabilities();let n=e.length,i=!1;const r=function(e){i=i||e,n--,0==n&&t(i)};e.forEach((function(t){t.whenStable(r)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?Object(i.z)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new s.s("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 i=0;i{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=s.Ib({token:t,factory:t.\u0275fac}),t})(),m=(()=>{class t extends g{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(i.z)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(i.d))},t.\u0275prov=s.Ib({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 i=0;i{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 s.S.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new A(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case s.S.Native:case s.S.ShadowDom:return new C(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)(s.Wb(p),s.Wb(m),s.Wb(s.c))},t.\u0275prov=s.Ib({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,i){if(i){e=i+":"+e;const s=b[i];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const i=b[n];i?t.removeAttributeNS(i,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,i){i&s.I.DashCase?t.style.setProperty(e,n,i&s.I.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.I.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 A extends S{constructor(t,e,n,i){super(t),this.component=n;const s=y(i+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(_,i+"-"+n.id),this.hostAttr=function(t){return"_nghost-%COMP%".replace(_,t)}(i+"-"+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 C extends S{constructor(t,e,n,i){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=i,this.shadowRoot=i.encapsulation===s.S.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const r=y(i.id,i.styles,[]);for(let s=0;s{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)(s.Wb(i.d))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();const E=["alt","control","meta","shift"],D={"\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"},k={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"},O={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let R=(()=>{class t extends f{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const r=t.parseEventName(n),o=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(i.z)().onAndCancel(e,r.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(n.pop());let r="";if(E.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=i,o.fullKey=r,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&&k.hasOwnProperty(e)&&(e=k[e]))}return D[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),E.forEach(i=>{i!=n&&(0,O[i])(t)&&(e+=i+".")}),e+=n,e}static eventCallback(e,n,i){return s=>{t.getEventFullKey(s)===e&&i.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(i.d))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),I=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Ib)({factory:function(){return Object(s.Wb)(F)},token:t,providedIn:"root"}),t})();function T(t){return new F(t.get(i.d))}let F=(()=>{class t extends I{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case s.K.NONE:return e;case s.K.HTML:return Object(s.fb)(e,"HTML")?Object(s.xb)(e):Object(s.db)(this._doc,String(e));case s.K.STYLE:return Object(s.fb)(e,"Style")?Object(s.xb)(e):e;case s.K.SCRIPT:if(Object(s.fb)(e,"Script"))return Object(s.xb)(e);throw new Error("unsafe value used in a script context");case s.K.URL:return Object(s.pb)(e),Object(s.fb)(e,"URL")?Object(s.xb)(e):Object(s.eb)(String(e));case s.K.RESOURCE_URL:if(Object(s.fb)(e,"ResourceURL"))return Object(s.xb)(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(s.gb)(t)}bypassSecurityTrustStyle(t){return Object(s.jb)(t)}bypassSecurityTrustScript(t){return Object(s.ib)(t)}bypassSecurityTrustUrl(t){return Object(s.kb)(t)}bypassSecurityTrustResourceUrl(t){return Object(s.hb)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(i.d))},t.\u0275prov=Object(s.Ib)({factory:function(){return T(Object(s.Wb)(s.p))},token:t,providedIn:"root"}),t})();const P=[{provide:s.D,useValue:i.y},{provide:s.E,useValue:function(){o.makeCurrent(),u.init()},multi:!0},{provide:i.d,useFactory:function(){return Object(s.vb)(document),document},deps:[]}],j=Object(s.T)(s.Y,"browser",P),M=[[],{provide:s.bb,useValue:"root"},{provide:s.n,useFactory:function(){return new s.n},deps:[]},{provide:d,useClass:x,multi:!0,deps:[i.d,s.B,s.D]},{provide:d,useClass:R,multi:!0,deps:[i.d]},[],{provide:w,useClass:w,deps:[p,m,s.c]},{provide:s.H,useExisting:w},{provide:g,useExisting:m},{provide:m,useClass:m,deps:[i.d]},{provide:s.O,useClass:s.O,deps:[s.B]},{provide:p,useClass:p,deps:[d,s.B]},[]];let B=(()=>{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:s.c,useValue:e.appId},{provide:l,useExisting:s.c},h]}}}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)(s.Wb(t,12))},providers:M,imports:[i.c,s.f]}),t})();"undefined"!=typeof window&&window},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kmnG:function(t,e,n){"use strict";n.d(e,"a",(function(){return Y})),n.d(e,"b",(function(){return Q})),n.d(e,"c",(function(){return B})),n.d(e,"d",(function(){return X})),n.d(e,"e",(function(){return L})),n.d(e,"f",(function(){return K}));var i=n("GU7r"),s=n("ofXK"),r=n("fXoL"),o=n("FKr1"),a=n("8LU1"),c=n("XNiG"),l=n("VRyK"),h=n("xgIS"),u=n("JX91"),d=n("1G5W"),p=n("IzEk"),f=n("R0Ic"),g=n("R1ws"),m=n("cH1L"),b=n("nLfN");const _=["underline"],y=["connectionContainer"],v=["inputContainer"],w=["label"];function S(t,e){1&t&&(r.Qb(0),r.Sb(1,"div",14),r.Nb(2,"div",15),r.Nb(3,"div",16),r.Nb(4,"div",17),r.Rb(),r.Sb(5,"div",18),r.Nb(6,"div",15),r.Nb(7,"div",16),r.Nb(8,"div",17),r.Rb(),r.Pb())}function A(t,e){1&t&&(r.Sb(0,"div",19),r.hc(1,1),r.Rb())}function C(t,e){if(1&t&&(r.Qb(0),r.hc(1,2),r.Sb(2,"span"),r.Dc(3),r.Rb(),r.Pb()),2&t){const t=r.dc(2);r.Bb(3),r.Ec(t._control.placeholder)}}function x(t,e){1&t&&r.hc(0,3,["*ngSwitchCase","true"])}function E(t,e){1&t&&(r.Sb(0,"span",23),r.Dc(1," *"),r.Rb())}function D(t,e){if(1&t){const t=r.Tb();r.Sb(0,"label",20,21),r.Zb("cdkObserveContent",(function(){return r.sc(t),r.dc().updateOutlineGap()})),r.Cc(2,C,4,1,"ng-container",12),r.Cc(3,x,1,0,"ng-content",12),r.Cc(4,E,2,0,"span",22),r.Rb()}if(2&t){const t=r.dc();r.Eb("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),r.jc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.Cb("for",t._control.id)("aria-owns",t._control.id),r.Bb(2),r.jc("ngSwitchCase",!1),r.Bb(1),r.jc("ngSwitchCase",!0),r.Bb(1),r.jc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function k(t,e){1&t&&(r.Sb(0,"div",24),r.hc(1,4),r.Rb())}function O(t,e){if(1&t&&(r.Sb(0,"div",25,26),r.Nb(2,"span",27),r.Rb()),2&t){const t=r.dc();r.Bb(2),r.Eb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function R(t,e){if(1&t&&(r.Sb(0,"div"),r.hc(1,5),r.Rb()),2&t){const t=r.dc();r.jc("@transitionMessages",t._subscriptAnimationState)}}function I(t,e){if(1&t&&(r.Sb(0,"div",31),r.Dc(1),r.Rb()),2&t){const t=r.dc(2);r.jc("id",t._hintLabelId),r.Bb(1),r.Ec(t.hintLabel)}}function T(t,e){if(1&t&&(r.Sb(0,"div",28),r.Cc(1,I,2,2,"div",29),r.hc(2,6),r.Nb(3,"div",30),r.hc(4,7),r.Rb()),2&t){const t=r.dc();r.jc("@transitionMessages",t._subscriptAnimationState),r.Bb(1),r.jc("ngIf",t.hintLabel)}}const F=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],P=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],j=new r.s("MatError"),M={transitionMessages:Object(f.n)("transitionMessages",[Object(f.k)("enter",Object(f.l)({opacity:1,transform:"translateY(0%)"})),Object(f.m)("void => enter",[Object(f.l)({opacity:0,transform:"translateY(-100%)"}),Object(f.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let B=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t}),t})();const H=new r.s("MatHint");let L=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["mat-label"]]}),t})(),N=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["mat-placeholder"]]}),t})();const V=new r.s("MatPrefix"),U=new r.s("MatSuffix");let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Hb({type:t,selectors:[["","matSuffix",""]],features:[r.Ab([{provide:U,useExisting:t}])]}),t})(),z=0;class W{constructor(t){this._elementRef=t}}const q=Object(o.x)(W,"primary"),G=new r.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Y=new r.s("MatFormField");let Q=(()=>{class t extends q{constructor(t,e,n,i,s,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this._defaults=s,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new c.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+z++,this._labelId="mat-form-field-label-"+z++,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Object(a.c)(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+t.controlType),t.stateChanges.pipe(Object(u.a)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Object(d.a)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Object(l.a)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Object(u.a)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Object(u.a)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const e=this._control?this._control.ngControl:null;return e&&e[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Object(h.a)(this._label.nativeElement,"transitionend").pipe(Object(p.a)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||this._labelOptions.float||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const i=this._connectionContainerRef.nativeElement,s=i.querySelectorAll(".mat-form-field-outline-start"),r=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=i.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let c=0;for(let t=0;t0?.75*c+10:0}for(let o=0;o{class t{}return t.\u0275mod=r.Kb({type:t}),t.\u0275inj=r.Jb({factory:function(e){return new(e||t)},imports:[[s.c,o.j,i.c],o.j]}),t})()},l7GE:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");class s extends i.a{notifyNext(t,e,n,i,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lJxs:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");function s(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 r(t,e))}}class r{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 i.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)}}},mlxB:function(t,e,n){"use strict";function i(t){return t instanceof Date&&!isNaN(+t)}n.d(e,"a",(function(){return i}))},mrSG:function(t,e,n){"use strict";function i(t,e,n,i){return new(n||(n=Promise))((function(s,r){function o(t){try{c(i.next(t))}catch(e){r(e)}}function a(t){try{c(i.throw(t))}catch(e){r(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,a)}c((i=i.apply(t,e||[])).next())}))}n.d(e,"a",(function(){return i}))},n6bG:function(t,e,n){"use strict";function i(t){return"function"==typeof t}n.d(e,"a",(function(){return i}))},nLfN:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return _})),n.d(e,"d",(function(){return b})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return m}));var i=n("fXoL"),s=n("ofXK");let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){r=!1}let o,a=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Object(s.v)(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.Wb(i.D))},t.\u0275prov=Object(i.Ib)({factory:function(){return new t(Object(i.Wb)(i.D))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)}}),t})();const l=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(o)return o;if("object"!=typeof document||!document)return o=new Set(l),o;let t=document.createElement("input");return o=new Set(l.filter(e=>(t.setAttribute("type",e),t.type===e))),o}let u,d,p,f;function g(t){return function(){if(null==u&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>u=!0}))}finally{u=u||!1}return u}()?t:!!t.capture}function m(){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"),i=n.style;i.width="2px",i.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 r}));var i=n("7o/Q"),s=n("quSY");function r(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 i.a{constructor(t,e){super(t),this.add(new s.a(e))}}},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=t=>e=>{for(let n=0,i=t.length;n{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Ib)({factory:h,token:t,providedIn:"platform"}),t})();function h(){return Object(i.Wb)(d)}const u=new i.s("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=r().getLocation(),this._history=r().getHistory()}getBaseHrefFromDOM(){return r().getBaseHref(this._doc)}onPopState(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){r().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)(i.Wb(c))},t.\u0275prov=Object(i.Ib)({factory:f,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function f(){return new d(Object(i.Wb)(c))}function g(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function m(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(i.Ib)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(i.Wb)(c).location;return new w(Object(i.Wb)(l),e&&e.origin||"")}const v=new i.s("appBaseHref");let w=(()=>{class t extends _{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return g(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){const s=this.prepareExternalUrl(n+b(i));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(l),i.Wb(v,8))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})(),S=(()=>{class t extends _{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=g(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,i){let s=this.prepareExternalUrl(n+b(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(l),i.Wb(v,8))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})(),A=(()=>{class t{constructor(t,e){this._subject=new i.o,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=m(x(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,x(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)(i.Wb(_),i.Wb(l))},t.normalizeQueryParams=b,t.joinWithSlash=g,t.stripTrailingSlash=m,t.\u0275prov=Object(i.Ib)({factory:C,token:t,providedIn:"root"}),t})();function C(){return new A(Object(i.Wb)(_),Object(i.Wb)(l))}function x(t){return t.replace(/\/index.html$/,"")}const E={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var D=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),k=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}({}),O=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),R=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),I=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),T=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function F(t,e){return L(Object(i.lb)(t)[i.cb.DateFormat],e)}function P(t,e){return L(Object(i.lb)(t)[i.cb.TimeFormat],e)}function j(t,e){return L(Object(i.lb)(t)[i.cb.DateTimeFormat],e)}function M(t,e){const n=Object(i.lb)(t),s=n[i.cb.NumberSymbols][e];if(void 0===s){if(e===T.CurrencyDecimal)return n[i.cb.NumberSymbols][T.Decimal];if(e===T.CurrencyGroup)return n[i.cb.NumberSymbols][T.Group]}return s}const B=i.ob;function H(t){if(!t[i.cb.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[i.cb.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function L(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function N(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const V=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,U={},K=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var z=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),W=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),q=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function G(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Y(t,e,n="-",i,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=n));let o=String(t);for(;o.length0||a>-n)&&(a+=n),t===W.Hours)0===a&&-12===n&&(a=12);else if(t===W.FractionalSeconds)return c=e,Y(a,3).substr(0,c);var c;const l=M(o,T.MinusSign);return Y(a,e,l,i,s)}}function X(t,e,n=O.Format,s=!1){return function(r,o){return function(t,e,n,s,r,o){switch(n){case q.Months:return function(t,e,n){const s=Object(i.lb)(t),r=L([s[i.cb.MonthsFormat],s[i.cb.MonthsStandalone]],e);return L(r,n)}(e,r,s)[t.getMonth()];case q.Days:return function(t,e,n){const s=Object(i.lb)(t),r=L([s[i.cb.DaysFormat],s[i.cb.DaysStandalone]],e);return L(r,n)}(e,r,s)[t.getDay()];case q.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(o){const t=function(t){const e=Object(i.lb)(t);return H(e),(e[i.cb.ExtraData][2]||[]).map(t=>"string"==typeof t?N(t):[N(t[0]),N(t[1])])}(e),n=function(t,e,n){const s=Object(i.lb)(t);H(s);const r=L([s[i.cb.ExtraData][0],s[i.cb.ExtraData][1]],e)||[];return L(r,n)||[]}(e,r,s),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,i=a>=e.hours&&c>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case z.Short:return(s>=0?"+":"")+Y(o,2,r)+Y(Math.abs(s%60),2,r);case z.ShortGMT:return"GMT"+(s>=0?"+":"")+Y(o,1,r);case z.Long:return"GMT"+(s>=0?"+":"")+Y(o,2,r)+":"+Y(Math.abs(s%60),2,r);case z.Extended:return 0===i?"Z":(s>=0?"+":"")+Y(o,2,r)+":"+Y(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function J(t,e=!1){return function(n,i){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(n.getFullYear()),e=(r=n,new Date(r.getFullYear(),r.getMonth(),r.getDate()+(4-r.getDay()))).getTime()-t.getTime();s=1+Math.round(e/6048e5)}var r;return Y(s,t,M(i,T.MinusSign))}}const $={};function tt(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function et(t){return t instanceof Date&&!isNaN(t.valueOf())}const nt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function it(t,e,n,s,r){const o=function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),s=i[0],r=i[1],o=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let h=0;h-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(r=o.length))e=[0],n=1;else{for(r--;"0"===o.charAt(r);)r--;for(n-=i,e=[],s=0;i<=r;i++,s++)e[s]=Number(o.charAt(i))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(l=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));let h=e.minInt,u=e.minFrac,d=e.maxFrac;if(r){const t=r.match(nt);if(null===t)throw new Error(r+" is not a valid digit info");const e=t[1],n=t[3],i=t[5];null!=e&&(h=st(e)),null!=n&&(u=st(n)),null!=i?d=st(i):null!=n&&u>d&&(d=u)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let i=t.digits,s=i.length-t.integerLen;const r=Math.min(Math.max(e,s),n);let o=r+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let t=o;t=5)if(o-1<0){for(let e=0;e>o;e--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;s=l?i.pop():c=!1),e>=10?1:0}),0);h&&(i.unshift(h),t.integerLen++)}(l,u,d);let p=l.digits,f=l.integerLen;const g=l.exponent;let m=[];for(c=p.every(t=>!t);f0?m=p.splice(f,p.length):(m=p,p=[0]);const b=[];for(p.length>=e.lgSize&&b.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)b.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&b.unshift(p.join("")),a=b.join(M(n,i)),m.length&&(a+=M(n,s)+m.join("")),g&&(a+=M(n,T.Exponential)+"+"+g)}else a=M(n,T.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,o,e,T.CurrencyGroup,T.CurrencyDecimal,r).replace("\xa4",n).replace("\xa4","").trim()}function st(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class rt{}let ot=(()=>{class t extends rt{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(B(e||this.locale)(t)){case k.Zero:return"zero";case k.One:return"one";case k.Two:return"two";case k.Few:return"few";case k.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(i.w))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})();function at(t,e,n){return Object(i.ub)(t,e,n)}function ct(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[i,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}let lt=(()=>{class t{constructor(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,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(i.rb)(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(i.wb)(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)(i.Mb(i.u),i.Mb(i.v),i.Mb(i.l),i.Mb(i.G))},t.\u0275dir=i.Hb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class ht{constructor(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}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 ut=(()=>{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){Object(i.X)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),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,i)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new ht(null,this._ngForOf,-1,-1),null===i?void 0:i),s=new dt(t,n);e.push(s)}else if(null==i)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,i);const r=new dt(t,s);e.push(r)}});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)(i.Mb(i.R),i.Mb(i.N),i.Mb(i.u))},t.\u0275dir=i.Hb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class dt{constructor(t,e){this.record=t,this.view=e}}let pt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new ft,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){gt("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){gt("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)(i.Mb(i.R),i.Mb(i.N))},t.\u0275dir=i.Hb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class ft{constructor(){this.$implicit=null,this.ngIf=null}}function gt(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(i.wb)(e)}'.`)}class mt{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 bt=(()=>{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 mt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.R),i.Mb(i.N),i.Mb(bt,1))},t.\u0275dir=i.Hb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),yt=(()=>{class t{constructor(t,e,n){n._addDefault(new mt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.R),i.Mb(i.N),i.Mb(bt,1))},t.\u0275dir=i.Hb({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),vt=(()=>{class t{constructor(t,e,n){this._ngEl=t,this._differs=e,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,e){const[n,i]=t.split(".");null!=(e=null!=e&&i?`${e}${i}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,n,e):this._renderer.removeStyle(this._ngEl.nativeElement,n)}_applyChanges(t){t.forEachRemovedItem(t=>this._setStyle(t.key,null)),t.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),t.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.l),i.Mb(i.v),i.Mb(i.G))},t.\u0275dir=i.Hb({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),wt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.R))},t.\u0275dir=i.Hb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.zb]}),t})();function St(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(i.wb)(t)}'`)}class At{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Ct{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const xt=new Ct,Et=new At;let Dt=(()=>{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(i.tb)(e))return xt;if(Object(i.sb)(e))return Et;throw St(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(i.Yb())},t.\u0275pipe=i.Lb({name:"async",type:t,pure:!1}),t})(),kt=(()=>{class t{constructor(t){this.locale=t}transform(e,n="mediumDate",s,r){if(null==e||""===e||e!=e)return null;try{return function(t,e,n,s){let r=function(t){if(et(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,i]=t.split("-").map(t=>+t);return new Date(e,n-1,i)}let n;if(n=t.match(V))return function(t){const e=new Date(0);let n=0,i=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),i=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-i,c=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,c,l),e}(n)}const e=new Date(t);if(!et(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,n){const s=function(t){return Object(i.lb)(t)[i.cb.LocaleId]}(e);if(U[s]=U[s]||{},U[s][n])return U[s][n];let r="";switch(n){case"shortDate":r=F(e,I.Short);break;case"mediumDate":r=F(e,I.Medium);break;case"longDate":r=F(e,I.Long);break;case"fullDate":r=F(e,I.Full);break;case"shortTime":r=P(e,I.Short);break;case"mediumTime":r=P(e,I.Medium);break;case"longTime":r=P(e,I.Long);break;case"fullTime":r=P(e,I.Full);break;case"short":const n=t(e,"shortTime"),i=t(e,"shortDate");r=G(j(e,I.Short),[n,i]);break;case"medium":const s=t(e,"mediumTime"),o=t(e,"mediumDate");r=G(j(e,I.Medium),[s,o]);break;case"long":const a=t(e,"longTime"),c=t(e,"longDate");r=G(j(e,I.Long),[a,c]);break;case"full":const l=t(e,"fullTime"),h=t(e,"fullDate");r=G(j(e,I.Full),[l,h])}return r&&(U[s][n]=r),r}(n,e)||e;let o,a=[];for(;e;){if(o=K.exec(e),!o){a.push(e);break}{a=a.concat(o.slice(1));const t=a.pop();if(!t)break;e=t}}let c=r.getTimezoneOffset();s&&(c=tt(s,c),r=function(t,e,n){const i=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(tt(e,i)-i))}(r,s));let l="";return a.forEach(t=>{const e=function(t){if($[t])return $[t];let e;switch(t){case"G":case"GG":case"GGG":e=X(q.Eras,R.Abbreviated);break;case"GGGG":e=X(q.Eras,R.Wide);break;case"GGGGG":e=X(q.Eras,R.Narrow);break;case"y":e=Q(W.FullYear,1,0,!1,!0);break;case"yy":e=Q(W.FullYear,2,0,!0,!0);break;case"yyy":e=Q(W.FullYear,3,0,!1,!0);break;case"yyyy":e=Q(W.FullYear,4,0,!1,!0);break;case"M":case"L":e=Q(W.Month,1,1);break;case"MM":case"LL":e=Q(W.Month,2,1);break;case"MMM":e=X(q.Months,R.Abbreviated);break;case"MMMM":e=X(q.Months,R.Wide);break;case"MMMMM":e=X(q.Months,R.Narrow);break;case"LLL":e=X(q.Months,R.Abbreviated,O.Standalone);break;case"LLLL":e=X(q.Months,R.Wide,O.Standalone);break;case"LLLLL":e=X(q.Months,R.Narrow,O.Standalone);break;case"w":e=J(1);break;case"ww":e=J(2);break;case"W":e=J(1,!0);break;case"d":e=Q(W.Date,1);break;case"dd":e=Q(W.Date,2);break;case"E":case"EE":case"EEE":e=X(q.Days,R.Abbreviated);break;case"EEEE":e=X(q.Days,R.Wide);break;case"EEEEE":e=X(q.Days,R.Narrow);break;case"EEEEEE":e=X(q.Days,R.Short);break;case"a":case"aa":case"aaa":e=X(q.DayPeriods,R.Abbreviated);break;case"aaaa":e=X(q.DayPeriods,R.Wide);break;case"aaaaa":e=X(q.DayPeriods,R.Narrow);break;case"b":case"bb":case"bbb":e=X(q.DayPeriods,R.Abbreviated,O.Standalone,!0);break;case"bbbb":e=X(q.DayPeriods,R.Wide,O.Standalone,!0);break;case"bbbbb":e=X(q.DayPeriods,R.Narrow,O.Standalone,!0);break;case"B":case"BB":case"BBB":e=X(q.DayPeriods,R.Abbreviated,O.Format,!0);break;case"BBBB":e=X(q.DayPeriods,R.Wide,O.Format,!0);break;case"BBBBB":e=X(q.DayPeriods,R.Narrow,O.Format,!0);break;case"h":e=Q(W.Hours,1,-12);break;case"hh":e=Q(W.Hours,2,-12);break;case"H":e=Q(W.Hours,1);break;case"HH":e=Q(W.Hours,2);break;case"m":e=Q(W.Minutes,1);break;case"mm":e=Q(W.Minutes,2);break;case"s":e=Q(W.Seconds,1);break;case"ss":e=Q(W.Seconds,2);break;case"S":e=Q(W.FractionalSeconds,1);break;case"SS":e=Q(W.FractionalSeconds,2);break;case"SSS":e=Q(W.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Z(z.Short);break;case"ZZZZZ":e=Z(z.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Z(z.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Z(z.Long);break;default:return null}return $[t]=e,e}(t);l+=e?e(r,n,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}(e,n,r||this.locale,s)}catch(o){throw St(t,o.message)}}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.w))},t.\u0275pipe=i.Lb({name:"date",type:t,pure:!0}),t})(),Ot=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:[{provide:rt,useClass:ot}]}),t})();const Rt="browser";function It(t){return t===Rt}let Tt=(()=>{class t{}return t.\u0275prov=Object(i.Ib)({token:t,providedIn:"root",factory:()=>new Ft(Object(i.Wb)(c),window,Object(i.Wb)(i.n))}),t})();class Ft{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.scrollX,this.window.scrollY]:[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,i=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],i-s[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=Pt(this.window.history)||Pt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function Pt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},pLZG:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");function s(t,e){return function(n){return n.lift(new r(t,e))}}class r{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 i.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)}}},qFsG:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return y})),n.d(e,"c",(function(){return v}));var i=n("nLfN"),s=n("fXoL"),r=n("8LU1"),o=n("EY2u"),a=n("XNiG");n("xgIS"),n("3UWI"),n("1G5W"),n("ofXK");const c=Object(i.f)({passive:!0});let l=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return o.a;const e=Object(r.e)(t),n=this._monitoredElements.get(e);if(n)return n.subject;const i=new a.a,s="cdk-text-field-autofilled",l=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(s)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(s)&&(e.classList.remove(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>i.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",l,c),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:i,unlisten:()=>{e.removeEventListener("animationstart",l,c)}}),i}stopMonitoring(t){const e=Object(r.e)(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(i.a),s.Wb(s.B))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(i.a),Object(s.Wb)(s.B))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},imports:[[i.b]]}),t})();var u=n("FKr1"),d=n("kmnG"),p=n("3Pt+");const f=new s.s("MAT_INPUT_VALUE_ACCESSOR"),g=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let m=0;class b{constructor(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}const _=Object(u.A)(b);let y=(()=>{class t extends _{constructor(t,e,n,s,r,o,c,l,h,u){super(o,s,r,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=l,this._formField=u,this._uid="mat-input-"+m++,this.focused=!1,this.stateChanges=new a.a,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Object(i.e)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=c||d,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&h.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===p,this._isTextarea="textarea"===p,this._isNativeSelect&&(this.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(r.c)(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Object(r.c)(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Object(i.e)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Object(r.c)(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){g.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(i.a),s.Mb(p.k,10),s.Mb(p.m,8),s.Mb(p.g,8),s.Mb(u.d),s.Mb(f,10),s.Mb(l),s.Mb(s.B),s.Mb(d.a,8))},t.\u0275dir=s.Hb({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&s.Zb("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(s.Vb("disabled",e.disabled)("required",e.required),s.Cb("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),s.Eb("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[s.Ab([{provide:d.c,useExisting:t}]),s.yb,s.zb]}),t})(),v=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[u.d],imports:[[h,d.d],h,d.d]}),t})()},quSY:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("DH7j"),s=n("XoHu"),r=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._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_unsubscribe:a,_subscriptions:l}=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),[])}},rDax:function(t,e,n){"use strict";n.d(e,"a",(function(){return G})),n.d(e,"b",(function(){return q})),n.d(e,"c",(function(){return K})),n.d(e,"d",(function(){return E})),n.d(e,"e",(function(){return F})),n.d(e,"f",(function(){return Q}));var i=n("vxfF"),s=n("fXoL"),r=n("nLfN"),o=n("cH1L"),a=n("ofXK"),c=n("8LU1"),l=n("+rOU"),h=n("XNiG"),u=n("quSY"),d=n("VRyK"),p=n("IzEk"),f=n("1G5W"),g=n("7o/Q");class m{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new b(t,this.predicate,this.inclusive))}}class b extends g.a{constructor(t,e,n){super(t),this.predicate=e,this.inclusive=n,this.index=0}_next(t){const e=this.destination;let n;try{n=this.predicate(t,this.index++)}catch(i){return void e.error(i)}this.nextOrComplete(t,n)}nextOrComplete(t,e){const n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}var _=n("FtGj");class y{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Object(c.d)(-this._previousScrollPosition.left),t.style.top=Object(c.d)(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",s=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=s}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class v{constructor(t,e,n,i){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class w{enable(){}disable(){}attach(){}}function S(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function A(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class C{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:n}=this._viewportRuler.getViewportSize();S(t,[{width:e,height:n,bottom:n,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let x=(()=>{class t{constructor(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new w,this.close=t=>new v(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new y(this._viewportRuler,this._document),this.reposition=t=>new C(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=i}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(i.c),s.Wb(i.e),s.Wb(s.B),s.Wb(a.d))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(i.c),Object(s.Wb)(i.e),Object(s.Wb)(s.B),Object(s.Wb)(a.d))},token:t,providedIn:"root"}),t})();class E{constructor(t){if(this.scrollStrategy=new w,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class D{constructor(t,e,n,i,s){this.offsetX=n,this.offsetY=i,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class k{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let O=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(a.d))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(a.d))},token:t,providedIn:"root"}),t})(),R=(()=>{class t extends O{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(a.d))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(a.d))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends O{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let i=n.length-1;i>-1;i--){const s=n[i];if(!(s._outsidePointerEvents.observers.length<1)&&s.hasAttached()){if(s.overlayElement.contains(e))break;s._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(a.d),s.Wb(r.a))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(a.d),Object(s.Wb)(r.a))},token:t,providedIn:"root"}),t})();const T=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let F=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window;if(t||T){const t=this._document.querySelectorAll('.cdk-overlay-container[platform="server"], .cdk-overlay-container[platform="test"]');for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new h.a,this._outsidePointerEvents=new h.a,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Object(p.a)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Object(c.d)(this._config.width),t.height=Object(c.d)(this._config.height),t.minWidth=Object(c.d)(this._config.minWidth),t.minHeight=Object(c.d)(this._config.minHeight),t.maxWidth=Object(c.d)(this._config.maxWidth),t.maxHeight=Object(c.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const i=t.classList;Object(c.b)(e).forEach(t=>{t&&(n?i.add(t):i.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Object(f.a)(Object(d.a)(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const j=/([A-Za-z%]+)$/;class M{constructor(t,e,n,i,s){this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new h.a,this._resizeSubscription=u.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,i=[];let s;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),c=this._getOverlayFit(a,e,n,r);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(c,a,n)?i.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!s||s.overlayFit.visibleAreae&&(e=i,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(s.position,s.originPoint);this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&B(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,i;if("center"==e.originX)n=t.left+t.width/2;else{const i=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;n="start"==e.originX?i:s}return i="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:i}}_getOverlayPoint(t,e,n){let i,s;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+i,y:t.y+s}}_getOverlayFit(t,e,n,i){let{x:s,y:r}=t,o=this._getOffset(i,"x"),a=this._getOffset(i,"y");o&&(s+=o),a&&(r+=a);let c=0-r,l=r+e.height-n.height,h=this._subtractOverflows(e.width,0-s,s+e.width-n.width),u=this._subtractOverflows(e.height,c,l),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const i=n.bottom-e.y,s=n.right-e.x,r=H(this._overlayRef.getConfig().minHeight),o=H(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=s;return(t.fitsInViewportVertically||null!=r&&r<=i)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const i=this._viewportRect,s=Math.max(t.x+e.width-i.width,0),r=Math.max(t.y+e.height-i.height,0),o=Math.max(i.top-n.top-t.y,0),a=Math.max(i.left-n.left-t.x,0);let c=0,l=0;return c=e.width<=i.width?a||-s:t.xi&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-i/2)}if("end"===e.overlayX&&!i||"start"===e.overlayX&&i)l=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!i||"end"===e.overlayX&&i)c=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),i=this._lastBoundingBoxSize.width;a=2*e,c=t.x-e,a>i&&!this._isInitialRender&&!this._growAfterOpen&&(c=t.x-i/2)}return{top:r,left:c,bottom:o,right:l,width:a,height:s}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Object(c.d)(n.height),i.top=Object(c.d)(n.top),i.bottom=Object(c.d)(n.bottom),i.width=Object(c.d)(n.width),i.left=Object(c.d)(n.left),i.right=Object(c.d)(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(i.maxHeight=Object(c.d)(t)),s&&(i.maxWidth=Object(c.d)(s))}this._lastBoundingBoxSize=n,B(this._boundingBox.style,i)}_resetBoundingBoxStyles(){B(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){B(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},i=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(i){const i=this._viewportRuler.getViewportScrollPosition();B(n,this._getExactOverlayY(e,t,i)),B(n,this._getExactOverlayX(e,t,i))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(i?n.maxHeight=Object(c.d)(r.maxHeight):s&&(n.maxHeight="")),r.maxWidth&&(i?n.maxWidth=Object(c.d)(r.maxWidth):s&&(n.maxWidth="")),B(this._pane.style,n)}_getExactOverlayY(t,e,n){let i={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":i.top=Object(c.d)(s.y),i}_getExactOverlayX(t,e,n){let i,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===i?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=Object(c.d)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:A(t,n),isOriginOutsideView:S(t,n),isOverlayClipped:A(e,n),isOverlayOutsideView:S(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Object(c.b)(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof s.l)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function B(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function H(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(j);return n&&"px"!==n?null:parseFloat(e)}return t||null}class L{constructor(t,e,n,i,s,r,o){this._preferredPositions=[],this._positionStrategy=new M(n,i,s,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,i){const s=new D(t,e,n,i);return this._preferredPositions.push(s),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}class N{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:s,maxWidth:r,maxHeight:o}=n,a=!("100%"!==i&&"100vw"!==i||r&&"100%"!==r&&"100vw"!==r),c=!("100%"!==s&&"100vh"!==s||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=c?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove("cdk-global-overlay-wrapper"),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let V=(()=>{class t{constructor(t,e,n,i){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=i}global(){return new N}connectedTo(t,e,n){return new L(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new M(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(i.e),s.Wb(a.d),s.Wb(r.a),s.Wb(F))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(i.e),Object(s.Wb)(a.d),Object(s.Wb)(r.a),Object(s.Wb)(F))},token:t,providedIn:"root"}),t})(),U=0,K=(()=>{class t{constructor(t,e,n,i,s,r,o,a,c,l,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=i,this._keyboardDispatcher=s,this._injector=r,this._ngZone=o,this._document=a,this._directionality=c,this._location=l,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),s=new E(t);return s.direction=s.direction||this._directionality.value,new P(i,e,n,s,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+U++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(s.g)),new l.e(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(x),s.Wb(F),s.Wb(s.j),s.Wb(V),s.Wb(R),s.Wb(s.t),s.Wb(s.B),s.Wb(a.d),s.Wb(o.b),s.Wb(a.h),s.Wb(I))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();const z=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],W=new s.s("cdk-connected-overlay-scroll-strategy");let q=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),G=(()=>{class t{constructor(t,e,n,i,r){this._overlay=t,this._dir=r,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=u.a.EMPTY,this._attachSubscription=u.a.EMPTY,this._detachSubscription=u.a.EMPTY,this._positionSubscription=u.a.EMPTY,this.viewportMargin=0,this.open=!1,this.backdropClick=new s.o,this.positionChange=new s.o,this.attach=new s.o,this.detach=new s.o,this.overlayKeydown=new s.o,this.overlayOutsideClick=new s.o,this._templatePortal=new l.h(e,n),this._scrollStrategyFactory=i,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(c.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(c.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(c.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(c.c)(t)}get push(){return this._push}set push(t){this._push=Object(c.c)(t)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){this.positions&&this.positions.length||(this.positions=z);const t=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode!==_.h||Object(_.t)(t)||(t.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{this.overlayOutsideClick.next(t)})}_buildConfig(){const t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new E({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){const e=this.positions.map(t=>({originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||this.offsetX,offsetY:t.offsetY||this.offsetY,panelClass:t.panelClass||void 0}));return t.setOrigin(this.origin.elementRef).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t,e=!1){return n=>n.lift(new m(t,e))}(()=>this.positionChange.observers.length>0)).subscribe(t=>{this.positionChange.emit(t),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(K),s.Mb(s.N),s.Mb(s.R),s.Mb(W),s.Mb(o.b,8))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.zb]}),t})();const Y={provide:W,deps:[K],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Q=(()=>{class t{}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)},providers:[K,Y],imports:[[o.a,l.g,i.d],i.d]}),t})()},sVev:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));const i=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},sroB:function(t,e,n){"use strict";function i(t){this.message=t}n.d(e,"a",(function(){return d})),(i.prototype=new Error).name="InvalidCharacterError";var s="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new i("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,s,r=0,o=0,a="";s=e.charAt(o++);~s&&(n=r%4?64*n+s:s,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(s);return a};function r(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(s(t).replace(/(.)/g,(function(t,e){var n=e.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(e)}catch(t){return s(e)}}function o(t){this.message=t}(o.prototype=new Error).name="InvalidTokenError";var a=n("AYtA"),c=n("ibrm"),l=n("fXoL"),h=n("dNgK"),u=n("tyNb");let d=(()=>{class t{constructor(t,e,n,i){this._snackBar=t,this.router=e,this.apiCaller=n,this.lang=i,this.duration=5}fcaIinit(){fcaInit()}exportAsExcelFile(t,e){return!0}dateAdd(t,e,n){if(!Date.parse(t))return"";let i=new Date(t),s=i.setMonth(i.getMonth()+e),r=new Date(s);return r.setDate(r.getDate()+n),this.toShortFormat(r)}toShortFormat(t){return t.getDate()+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][t.getMonth()]+" "+t.getFullYear()}login(){this.router.navigate(["/login"])}static log(t,e){console.log(t,e)}openSnackBar(t,e){this._snackBar.open(this.lang.getLang(t),this.lang.getLang(e),{duration:1e3*this.getDuration()})}setUrlAndLogin(){t.requestedUrl.get()||t.requestedUrl.set(window.location.href),this.login()}static getDecodedAccessToken(t){try{return function(t,e){if("string"!=typeof t)throw new o("Invalid token specified");var n=!0===(e=e||{}).header?0:1;try{return JSON.parse(r(t.split(".")[n]))}catch(t){throw new o("Invalid token specified: "+t.message)}}(t)}catch(e){return null}}getDuration(){return this.duration}openPrivacyOne(){open(window.location.href.replace("/manager/F04930D","")+"/img")}openPrivacyTwo(){open(window.location.href.replace("/manager/F04930D","")+"/img2")}checkPerm(e,n,i){return new Promise(n=>{t.token.isValid()&&null!=t.loggedUser.get()?t.loggedUser.get().permissions.includes(e)||this.router.navigate(["/callback"]):this.setUrlAndLogin(),n("j")})}}return t.language={get:()=>JSON.parse(localStorage.getItem("language")),set:t=>{localStorage.setItem("language",JSON.stringify(t))},delete:()=>{localStorage.removeItem("language")}},t.loggedUser={get:()=>JSON.parse(localStorage.getItem("loggedUser")),set:t=>{localStorage.setItem("loggedUser",JSON.stringify(t))},delete:()=>{localStorage.removeItem("loggedUser")}},t.token={get:()=>localStorage.getItem("token"),validate:()=>{let e=t.getDecodedAccessToken(t.token.get());(!e||e.exp<=(new Date).getTime()/1e3)&&t.token.delete()},isValid:()=>(t.token.validate(),t.token.get()),set:e=>{e&&localStorage.setItem("token",e),t.token.validate()},delete:()=>{localStorage.removeItem("token")}},t.requestedUrl={get:()=>localStorage.getItem("requestedUrl"),set:t=>{localStorage.setItem("requestedUrl",JSON.stringify(t).replace('"',"").replace('"',""))},delete:()=>{localStorage.removeItem("requestedUrl")}},t.\u0275fac=function(e){return new(e||t)(l.Wb(h.a),l.Wb(u.c),l.Wb(a.a),l.Wb(c.a))},t.\u0275prov=l.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},tS1D:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("D0XW");const s=(()=>{function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t})();var r=n("mlxB"),o=n("l7GE"),a=n("ZUHj");class c{constructor(t,e,n,i){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler=i}call(t,e){return e.subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}class l extends o.a{constructor(t,e,n,i,s){super(t),this.absoluteTimeout=e,this.waitFor=n,this.withObservable=i,this.scheduler=s,this.action=null,this.scheduleTimeout()}static dispatchTimeout(t){const{withObservable:e}=t;t._unsubscribeAndRecycle(),t.add(Object(a.a)(t,e))}scheduleTimeout(){const{action:t}=this;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(l.dispatchTimeout,this.waitFor,this))}_next(t){this.absoluteTimeout||this.scheduleTimeout(),super._next(t)}_unsubscribe(){this.action=null,this.scheduler=null,this.withObservable=null}}var h=n("z6cu");function u(t,e=i.a){return function(t,e,n=i.a){return i=>{let s=Object(r.a)(t),o=s?+t-n.now():Math.abs(t);return i.lift(new c(o,s,e,n))}}(t,Object(h.a)(new s),e)}},"tk/3":function(t,e,n){"use strict";n.d(e,"a",(function(){return k})),n.d(e,"b",(function(){return E})),n.d(e,"c",(function(){return V})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return g}));var i=n("fXoL"),s=n("LRne"),r=n("HDdC"),o=n("bOdf"),a=n("pLZG"),c=n("lJxs"),l=n("ofXK");class h{}class u{}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),i=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const i=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(i,n),this.maybeSetNormalizedName(e,i))})}: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 i=("a"===t.op?this.headers.get(e):void 0)||[];i.push(...n),this.headers.set(e,i);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.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 g{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 i=t.indexOf("="),[s,r]=-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],o=n.get(s)||[];o.push(r),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new g({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function m(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,n,i){let s;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)||i?(this.body=void 0!==n?n:null,s=i):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.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&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new y(e,n,s,{params:c,headers:a,reportProgress:o,responseType:i,withCredentials:r})}}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 A extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new A({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 C 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 x(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 i;if(t instanceof y)i=t;else{let s=void 0;s=n.headers instanceof d?n.headers:new d(n.headers);let r=void 0;n.params&&(r=n.params instanceof g?n.params:new g({fromObject:n.params})),i=new y(t,e,void 0!==n.body?n.body:null,{headers:s,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const r=Object(s.a)(i).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===n.observe)return r;const l=r.pipe(Object(a.a)(t=>t instanceof A));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return l.pipe(Object(c.a)(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(c.a)(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(c.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 l.pipe(Object(c.a)(t=>t.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new g).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,x(n,e))}post(t,e,n={}){return this.request("POST",t,x(n,e))}put(t,e,n={}){return this.request("PUT",t,x(n,e))}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(h))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})();class D{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const k=new i.s("HTTP_INTERCEPTORS");let O=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})();const R=/^\)\]\}',?\n/;class I{}let T=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})(),F=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new r.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 i=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,i=n.statusText||"OK",r=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 s=new S({headers:r,status:e,statusText:i,url:o}),s},o=()=>{let{headers:i,status:s,statusText:o,url:a}=r(),c=null;204!==s&&(c=void 0===n.response?n.responseText:n.response),0===s&&(s=c?200:0);let l=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(R,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=t,l&&(l=!1,c={error:h,text:c})}}l?(e.next(new A({body:c,headers:i,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new C({error:c,headers:i,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:i}=r(),s=new C({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:i||void 0});e.error(s)};let c=!1;const l=i=>{c||(e.next(r()),c=!0);let s={type:v.DownloadProgress,loaded:i.loaded};i.lengthComputable&&(s.total=i.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},h=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",l),null!==i&&n.upload&&n.upload.addEventListener("progress",h)),n.send(i),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",l),null!==i&&n.upload&&n.upload.removeEventListener("progress",h)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(I))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})();const P=new i.s("XSRF_COOKIE_NAME"),j=new i.s("XSRF_HEADER_NAME");class M{}let B=(()=>{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(l.A)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(l.d),i.Wb(i.D),i.Wb(P))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})(),H=(()=>{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 i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(M),i.Wb(j))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})(),L=(()=>{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(k,[]);this.chain=t.reduceRight((t,e)=>new D(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(u),i.Wb(i.t))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac}),t})(),N=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:H,useClass:O}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:P,useValue:e.cookieName}:[],e.headerName?{provide:j,useValue:e.headerName}:[]]}}}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:[H,{provide:k,useExisting:H,multi:!0},{provide:M,useClass:B},{provide:P,useValue:"XSRF-TOKEN"},{provide:j,useValue:"X-XSRF-TOKEN"}]}),t})(),V=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:[E,{provide:h,useClass:L},F,{provide:u,useExisting:F},T,{provide:I,useExisting:T}],imports:[[N.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",(function(){return Nt})),n.d(e,"b",(function(){return V})),n.d(e,"c",(function(){return en})),n.d(e,"d",(function(){return pn})),n.d(e,"e",(function(){return nn}));var i=n("ofXK"),s=n("fXoL"),r=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),c=n("HDdC"),l=n("sVev"),h=n("itXk"),u=n("NXyV"),d=n("EY2u"),p=n("XNiG"),f=n("lJxs"),g=n("0EUg"),m=n("pLZG"),b=n("7o/Q"),_=n("4I5i");function y(t){return function(e){return 0===t?Object(d.b)():e.lift(new v(t))}}class v{constructor(t){if(this.total=t,this.total<0)throw new _.a}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends b.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,i=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,i=this.ring;for(let s=0;st.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.lengthe.indexOf(t)>-1):t===e}function ct(t){return Array.prototype.concat.apply([],t)}function lt(t){return t.length>0?t[t.length-1]:null}function ht(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function ut(t){return Object(s.sb)(t)?t:Object(s.tb)(t)?Object(o.a)(Promise.resolve(t)):Object(r.a)(t)}function dt(t,e,n){return n?function(t,e){return ot(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!mt(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>at(t[n],e[n]))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,s){if(n.segments.length>s.length)return!!mt(n.segments.slice(0,s.length),s)&&!i.hasChildren();if(n.segments.length===s.length){if(!mt(n.segments,s))return!1;for(const e in i.children){if(!n.children[e])return!1;if(!t(n.children[e],i.children[e]))return!1}return!0}{const t=s.slice(0,n.segments.length),r=s.slice(n.segments.length);return!!mt(n.segments,t)&&!!n.children.primary&&e(n.children.primary,i,r)}}(e,n,n.segments)}(t.root,e.root)}class pt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return vt.serialize(this)}}class ft{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ht(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return wt(this)}}class gt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=it(this.parameters)),this._parameterMap}toString(){return Dt(this)}}function mt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function bt(t,e){let n=[];return ht(t.children,(t,i)=>{"primary"===i&&(n=n.concat(e(t,i)))}),ht(t.children,(t,i)=>{"primary"!==i&&(n=n.concat(e(t,i)))}),n}class _t{}class yt{parse(t){const e=new Tt(t);return new pt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,n){if(!e.hasChildren())return wt(e);if(n){const n=e.children.primary?t(e.children.primary,!1):"",i=[];return ht(e.children,(e,n)=>{"primary"!==n&&i.push(`${n}:${t(e,!1)}`)}),i.length>0?`${n}(${i.join("//")})`:n}{const n=bt(e,(n,i)=>"primary"===i?[t(e.children.primary,!1)]:[`${i}:${t(n,!1)}`]);return`${wt(e)}/(${n.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${At(e)}=${At(t)}`).join("&"):`${At(e)}=${At(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const vt=new yt;function wt(t){return t.segments.map(t=>Dt(t)).join("/")}function St(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function At(t){return St(t).replace(/%3B/gi,";")}function Ct(t){return St(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xt(t){return decodeURIComponent(t)}function Et(t){return xt(t.replace(/\+/g,"%20"))}function Dt(t){return`${Ct(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Ct(t)}=${Ct(e[t])}`).join("")}`;var e}const kt=/^[^\/()?;=#]+/;function Ot(t){const e=t.match(kt);return e?e[0]:""}const Rt=/^[^=?&#]+/,It=/^[^?&#]+/;class Tt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ft([],{}):new ft([],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 ft(t,e)),n}parseSegment(){const t=Ot(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new gt(xt(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Ot(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=Ot(this.remaining);t&&(n=t,this.capture(n))}t[xt(e)]=xt(n)}parseQueryParam(t){const e=function(t){const e=t.match(Rt);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 i=Et(e),s=Et(n);if(t.hasOwnProperty(i)){let e=t[i];Array.isArray(e)||(e=[e],t[i]=e),e.push(s)}else t[i]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=Ot(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s="primary");const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new ft([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Ft{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Pt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Pt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=jt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return jt(t,this._root).map(t=>t.value)}}function Pt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Pt(t,n);if(e)return e}return null}function jt(t,e){if(t===e.value)return[e];for(const n of e.children){const i=jt(t,n);if(i.length)return i.unshift(e),i}return[]}class Mt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Bt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ht extends Ft{constructor(t,e){super(t),this.snapshot=e,zt(this,t)}toString(){return this.snapshot.toString()}}function Lt(t,e){const n=function(t,e){const n=new Ut([],{},{},"",{},"primary",e,null,t.root,-1,{});return new Kt("",new Mt(n,[]))}(t,e),i=new a.a([new gt("",{})]),s=new a.a({}),r=new a.a({}),o=new a.a({}),c=new a.a(""),l=new Nt(i,s,o,c,r,"primary",e,n.root);return l.snapshot=n.root,new Ht(new Mt(l,[]),n)}class Nt{constructor(t,e,n,i,s,r,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,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=>it(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(f.a)(t=>it(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Vt(t,e="emptyOnly"){const n=t.pathFromRoot;let i=0;if("always"!==e)for(i=n.length-1;i>=1;){const t=n[i],e=n[i-1];if(t.routeConfig&&""===t.routeConfig.path)i--;else{if(e.component)break;i--}}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(i))}class Ut{constructor(t,e,n,i,s,r,o,a,c,l,h){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=s,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}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=it(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Kt extends Ft{constructor(t,e){super(e),this.url=t,zt(this,e)}toString(){return Wt(this._root)}}function zt(t,e){e.value._routerState=t,e.children.forEach(e=>zt(t,e))}function Wt(t){const e=t.children.length>0?` { ${t.children.map(Wt).join(", ")} } `:"";return`${t.value}${e}`}function qt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ot(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ot(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;not(t.parameters,i[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Gt(t.parent,e.parent))}function Yt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Qt(t,e,n,i,s){let r={};return i&&ht(i,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new pt(n.root===t?e:function t(e,n,i){const s={};return ht(e.children,(e,r)=>{s[r]=e===n?i:t(e,n,i)}),new ft(e.segments,s)}(n.root,t,e),r,s)}class Xt{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Yt(n[0]))throw new Error("Root segment cannot have matrix parameters");const i=n.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(i&&i!==lt(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Zt{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function Jt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function $t(t,e,n){if(t||(t=new ft([],{})),0===t.segments.length&&t.hasChildren())return te(t,e,n);const i=function(t,e,n){let i=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return r;const e=t.segments[s],o=Jt(n[i]),a=i0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!se(o,a,e))return r;i+=2}else{if(!se(o,{},e))return r;i++}s++}return{match:!0,pathIndex:s,commandIndex:i}}(t,e,n),s=n.slice(i.commandIndex);if(i.match&&i.pathIndex{null!==n&&(s[i]=$t(t.children[i],e,n))}),ht(t.children,(t,e)=>{void 0===i[e]&&(s[e]=t)}),new ft(t.segments,s)}}function ee(t,e,n){const i=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[n]=ee(new ft([],{}),0,t))}),e}function ie(t){const e={};return ht(t,(t,n)=>e[n]=""+t),e}function se(t,e,n){return t==n.path&&ot(e,n.parameters)}class re{constructor(t,e,n,i){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=i}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),qt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const i=Bt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,i[e],n),delete i[e]}),ht(i,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(i===s)if(i.component){const s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&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(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:i})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const i=Bt(t),s=t.value.component?n.children:e;ht(i,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const i=Bt(e);t.children.forEach(t=>{this.activateRoutes(t,i[t.value.outlet],n),this.forwardEvent(new tt(t.value.snapshot))}),t.children.length&&this.forwardEvent(new J(t.value.snapshot))}activateRoutes(t,e,n){const i=t.value,s=e?e.value:null;if(qt(i),i===s)if(i.component){const s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(i.component){const e=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const t=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),oe(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}(i.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=i,e.resolver=s,e.outlet&&e.outlet.activateWith(i,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function oe(t){qt(t.value),t.children.forEach(oe)}class ae{constructor(t,e){this.routes=t,this.module=e}}function ce(t){return"function"==typeof t}function le(t){return t instanceof pt}class he{constructor(t){this.segmentGroup=t||null}}class ue{constructor(t){this.urlTree=t}}function de(t){return new c.a(e=>e.error(new he(t)))}function pe(t){return new c.a(e=>e.error(new ue(t)))}function fe(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class ge{constructor(t,e,n,i,r){this.configLoader=e,this.urlSerializer=n,this.urlTree=i,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.z)}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 ue)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof he)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 he)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const i=t.segments.length>0?new ft([],{primary:t}):t;return new pt(i,e,n)}expandSegmentGroup(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(f.a)(t=>new ft([],t))):this.expandSegment(t,n,e,n.segments,i,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(r.a)({});const n=[],i=[],s={};return ht(t,(t,r)=>{const o=e(r,t).pipe(Object(f.a)(t=>s[r]=t));"primary"===r?n.push(o):i.push(o)}),r.a.apply(null,n.concat(i)).pipe(Object(g.a)(),function(t,e){const n=arguments.length>=2;return i=>i.pipe(t?Object(m.a)((e,n)=>t(e,n,i)):C.a,y(1),n?Object(A.a)(e):Object(S.a)(()=>new l.a))}(),Object(f.a)(()=>s))}(n.children,(n,i)=>this.expandSegmentGroup(t,e,i,n))}expandSegment(t,e,n,i,s,o){return Object(r.a)(...n).pipe(Object(f.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,i,s,o).pipe(Object(x.a)(t=>{if(t instanceof he)return Object(r.a)(null);throw t}))),Object(g.a)(),Object(E.a)(t=>!!t),Object(x.a)((t,n)=>{if(t instanceof l.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,i,s))return Object(r.a)(new ft([],{}));throw new he(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,i,s,r,o){return ye(i)!==r?de(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r):de(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,i){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?pe(s):this.lineralizeSegments(n,s).pipe(Object(D.a)(n=>{const s=new ft(n,{});return this.expandSegment(t,s,e,n,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,s,r){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:l}=me(e,i,s);if(!o)return de(e);const h=this.applyRedirectCommands(a,i.redirectTo,l);return i.redirectTo.startsWith("/")?pe(h):this.lineralizeSegments(i,h).pipe(Object(D.a)(i=>this.expandSegment(t,e,n,i.concat(s.slice(c)),r,!1)))}matchSegmentAgainstRoute(t,e,n,i){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(f.a)(t=>(n._loadedConfig=t,new ft(i,{})))):Object(r.a)(new ft(i,{}));const{matched:s,consumedSegments:o,lastChild:a}=me(e,n,i);if(!s)return de(e);const c=i.slice(a);return this.getChildConfig(t,n,i).pipe(Object(D.a)(t=>{const n=t.module,i=t.routes,{segmentGroup:s,slicedSegments:a}=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some(n=>_e(t,e,n)&&"primary"!==ye(n))}(t,n,i)?{segmentGroup:be(new ft(e,function(t,e){const n={};n.primary=e;for(const i of t)""===i.path&&"primary"!==ye(i)&&(n[ye(i)]=new ft([],{}));return n}(i,new ft(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>_e(t,e,n))}(t,n,i)?{segmentGroup:be(new ft(t.segments,function(t,e,n,i){const s={};for(const r of n)_e(t,e,r)&&!i[ye(r)]&&(s[ye(r)]=new ft([],{}));return Object.assign(Object.assign({},i),s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,c,i);return 0===a.length&&s.hasChildren()?this.expandChildren(n,i,s).pipe(Object(f.a)(t=>new ft(o,t))):0===i.length&&0===a.length?Object(r.a)(new ft(o,{})):this.expandSegment(n,s,i,a,"primary",!0).pipe(Object(f.a)(t=>new ft(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(r.a)(new ae(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(r.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(D.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(st(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(r.a)(new ae([],t))}runCanLoadGuards(t,e,n){const i=e.canLoad;return i&&0!==i.length?Object(o.a)(i).pipe(Object(f.a)(i=>{const s=t.get(i);let r;if(function(t){return t&&ce(t.canLoad)}(s))r=s.canLoad(e,n);else{if(!ce(s))throw new Error("Invalid CanLoad guard");r=s(e,n)}return ut(r)})).pipe(Object(g.a)(),Object(k.a)(t=>{if(!le(t))return;const e=st(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),(s=t=>!0===t,t=>t.lift(new O(s,void 0,t)))):Object(r.a)(!0);var s}lineralizeSegments(t,e){let n=[],i=e.root;for(;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(r.a)(n);if(i.numberOfChildren>1||!i.children.primary)return fe(t.redirectTo);i=i.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,i){const s=this.createSegmentGroup(t,e.root,n,i);return new pt(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return ht(t,(t,i)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[i]=e[s]}else n[i]=t}),n}createSegmentGroup(t,e,n,i){const s=this.createSegments(t,e.segments,n,i);let r={};return ht(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,n,i)}),new ft(s,r)}createSegments(t,e,n,i){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,i):this.findOrReturn(e,n))}findPosParam(t,e,n){const i=n[e.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return i}findOrReturn(t,e){let n=0;for(const i of e){if(i.path===t.path)return e.splice(n),i;n++}return t}}function me(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 i=(e.matcher||rt)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function be(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new ft(t.segments.concat(e.segments),e.children)}return t}function _e(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ye(t){return t.outlet||"primary"}class ve{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class we{constructor(t,e){this.component=t,this.route=e}}function Se(t,e,n){const i=t._root;return function t(e,n,i,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=Bt(n);return e.children.forEach(e=>{!function(e,n,i,s,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=n?n.value:null,c=i?i.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.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)||!ot(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Gt(t,e)||!ot(t.queryParams,e.queryParams);case"paramsChange":default:return!Gt(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new ve(s)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,n,o.component?c?c.children:null:i,s,r),l&&r.canDeactivateChecks.push(new we(c&&c.outlet&&c.outlet.component||null,a))}else a&&Ce(n,c,r),r.canActivateChecks.push(new ve(s)),t(e,null,o.component?c?c.children:null:i,s,r)}(e,o[e.value.outlet],i,s.concat([e.value]),r),delete o[e.value.outlet]}),ht(o,(t,e)=>Ce(t,i.getContext(e),r)),r}(i,e?e._root:null,n,[i.value])}function Ae(t,e,n){const i=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(i?i.module.injector:n).get(t)}function Ce(t,e,n){const i=Bt(t),s=t.value;ht(i,(t,i)=>{Ce(t,s.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new we(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}const xe=Symbol("INITIAL_VALUE");function Ee(){return Object(I.a)(t=>Object(h.a)(...t.map(t=>t.pipe(Object(T.a)(1),Object(F.a)(xe)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new P(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,i,s)=>{if(t!==xe)return t;if(i===xe&&(n=!0),!n){if(!1===i)return i;if(s===e.length-1||le(i))return i}return t},t)},xe),Object(m.a)(t=>t!==xe),Object(f.a)(t=>le(t)?t:!0===t),Object(T.a)(1)))}function De(t,e){return null!==t&&e&&e(new $(t)),Object(r.a)(!0)}function ke(t,e){return null!==t&&e&&e(new Z(t)),Object(r.a)(!0)}function Oe(t,e,n){const i=e.routeConfig?e.routeConfig.canActivate:null;if(!i||0===i.length)return Object(r.a)(!0);const s=i.map(i=>Object(u.a)(()=>{const s=Ae(i,e,n);let r;if(function(t){return t&&ce(t.canActivate)}(s))r=ut(s.canActivate(e,t));else{if(!ce(s))throw new Error("Invalid CanActivate guard");r=ut(s(e,t))}return r.pipe(Object(E.a)())}));return Object(r.a)(s).pipe(Ee())}function Re(t,e,n){const i=e[e.length-1],s=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(u.a)(()=>{const s=e.guards.map(s=>{const r=Ae(s,e.node,n);let o;if(function(t){return t&&ce(t.canActivateChild)}(r))o=ut(r.canActivateChild(i,t));else{if(!ce(r))throw new Error("Invalid CanActivateChild guard");o=ut(r(i,t))}return o.pipe(Object(E.a)())});return Object(r.a)(s).pipe(Ee())}));return Object(r.a)(s).pipe(Ee())}class Ie{}class Te{constructor(t,e,n,i,s,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=je(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new Ut([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Mt(n,e),s=new Kt(this.url,i);return this.inheritParamsAndData(s._root),Object(r.a)(s)}catch(t){return new c.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=Vt(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=bt(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("/"),i=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${i}'.`)}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,i){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,n,i)}catch(s){if(!(s instanceof Ie))throw s}if(this.noLeftoversInUrl(e,n,i))return[];throw new Ie}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,i){if(t.redirectTo)throw new Ie;if((t.outlet||"primary")!==i)throw new Ie;let s,r=[],o=[];if("**"===t.path){const r=n.length>0?lt(n).parameters:{};s=new Ut(n,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,He(t),i,t.component,t,Fe(e),Pe(e)+n.length,Le(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Ie;return{consumedSegments:[],lastChild:0,parameters:{}}}const i=(e.matcher||rt)(n,t,e);if(!i)throw new Ie;const s={};ht(i.posParams,(t,e)=>{s[e]=t.path});const r=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(e,t,n);r=a.consumedSegments,o=n.slice(a.lastChild),s=new Ut(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,He(t),i,t.component,t,Fe(e),Pe(e)+r.length,Le(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=je(e,r,o,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new Mt(s,t)]}if(0===a.length&&0===l.length)return[new Mt(s,[])];const h=this.processSegment(a,c,l,"primary");return[new Mt(s,h)]}}function Fe(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function Pe(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function je(t,e,n,i,s){if(n.length>0&&function(t,e,n){return n.some(n=>Me(t,e,n)&&"primary"!==Be(n))}(t,n,i)){const s=new ft(e,function(t,e,n,i){const s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;for(const r of n)if(""===r.path&&"primary"!==Be(r)){const n=new ft([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[Be(r)]=n}return s}(t,e,i,new ft(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>Me(t,e,n))}(t,n,i)){const r=new ft(t.segments,function(t,e,n,i,s,r){const o={};for(const a of i)if(Me(t,n,a)&&!s[Be(a)]){const n=new ft([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[Be(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,i,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}const r=new ft(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:n}}function Me(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Be(t){return t.outlet||"primary"}function He(t){return t.data||{}}function Le(t){return t.resolve||{}}function Ne(t){return function(e){return e.pipe(Object(I.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(f.a)(()=>e)):Object(o.a)([e])}))}}class Ve{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}let Ue=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Gb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Nb(0,"router-outlet")},directives:function(){return[nn]},encapsulation:2}),t})();function Ke(t,e=""){for(let n=0;n{this.onLoadEndListener&&this.onLoadEndListener(e);const i=n.create(t);return new ae(ct(i.injector.get(Ge)).map(qe),i)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):ut(t()).pipe(Object(D.a)(t=>t instanceof s.x?Object(r.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class Qe{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Xe,this.attachRef=null}}class Xe{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 Qe,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class Ze{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Je(t){throw t}function $e(t,e,n){return e.parse("/")}function tn(t,e){return Object(r.a)(null)}let en=(()=>{class t{constructor(t,e,n,i,r,o,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new p.a,this.errorHandler=Je,this.malformedUriErrorHandler=$e,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:tn,afterPreactivation:tn},this.urlHandlingStrategy=new Ze,this.routeReuseStrategy=new Ve,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(s.z),this.console=r.get(s.ab);const h=r.get(s.B);this.isNgZoneEnabled=h instanceof s.B,this.resetConfig(l),this.currentUrlTree=new pt(new ft([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Ye(o,c,t=>this.triggerEvent(new Q(t)),t=>this.triggerEvent(new X(t))),this.routerState=Lt(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(m.a)(t=>0!==t.id),Object(f.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(I.a)(t=>{let n=!1,i=!1;return Object(r.a)(t).pipe(Object(k.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(I.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(r.a)(t).pipe(Object(I.a)(t=>{const n=this.transitions.getValue();return e.next(new N(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?d.a:[t]}),Object(I.a)(t=>Promise.resolve(t)),(i=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(I.a)(t=>function(t,e,n,i,s){return new ge(t,e,n,i,s).apply()}(i,s,o,t.extractedUrl,a).pipe(Object(f.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(k.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,i,s){return function(r){return r.pipe(Object(D.a)(r=>function(t,e,n,i,s="emptyOnly",r="legacy"){return new Te(t,e,n,i,s,r).recognize()}(t,e,r.urlAfterRedirects,n(r.urlAfterRedirects),i,s).pipe(Object(f.a)(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(k.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(k.a)(t=>{const n=new z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var i,s,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:i,source:s,restoredState:o,extras:a}=t,c=new N(n,this.serializeUrl(i),s,o);e.next(c);const l=Lt(i,this.rootComponentType).snapshot;return Object(r.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:i,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a}),Ne(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Object(k.a)(t=>{const e=new W(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:Se(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(D.a)(n=>{const{targetSnapshot:i,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(r.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return Object(o.a)(t).pipe(Object(D.a)(t=>function(t,e,n,i,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(r.a)(!0);const a=o.map(r=>{const o=Ae(r,e,s);let a;if(function(t){return t&&ce(t.canDeactivate)}(o))a=ut(o.canDeactivate(t,e,n,i));else{if(!ce(o))throw new Error("Invalid CanDeactivate guard");a=ut(o(t,e,n,i))}return a.pipe(Object(E.a)())});return Object(r.a)(a).pipe(Ee())}(t.component,t.route,n,e,i)),Object(E.a)(t=>!0!==t,!0))}(c,i,s,t).pipe(Object(D.a)(n=>n&&"boolean"==typeof n?function(t,e,n,i){return Object(o.a)(e).pipe(Object(M.a)(e=>Object(o.a)([ke(e.route.parent,i),De(e.route,i),Re(t,e.path,n),Oe(t,e.route,n)]).pipe(Object(g.a)(),Object(E.a)(t=>!0!==t,!0))),Object(E.a)(t=>!0!==t,!0))}(i,a,t,e):Object(r.a)(n)),Object(f.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(k.a)(t=>{if(le(t.guardsResult)){const e=st(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(k.a)(t=>{const e=new q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(m.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new U(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),Ne(t=>{if(t.guards.canActivateChecks.length)return Object(r.a)(t).pipe(Object(k.a)(t=>{const e=new G(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(I.a)(t=>{let n=!1;return Object(r.a)(t).pipe((i=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(Object(D.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(r.a)(t);let a=0;return Object(o.a)(n).pipe(Object(M.a)(t=>function(t,e,n,i){return function(t,e,n,i){const s=Object.keys(t);if(0===s.length)return Object(r.a)({});const a={};return Object(o.a)(s).pipe(Object(D.a)(s=>function(t,e,n,i){const s=Ae(t,e,i);return ut(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,i).pipe(Object(k.a)(t=>{a[s]=t}))),y(1),Object(D.a)(()=>Object.keys(a).length===s.length?Object(r.a)(a):d.a))}(t._resolve,t,e,i).pipe(Object(f.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Vt(t,n).resolve),null)))}(t.route,e,i,s)),Object(k.a)(()=>a++),y(1),Object(D.a)(e=>a===n.length?Object(r.a)(t):d.a))}))}),Object(k.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new U(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var i,s}),Object(k.a)(t=>{const e=new Y(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Ne(t=>{const{targetSnapshot:e,id:n,extractedUrl:i,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:i,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!o})}),Object(f.a)(t=>{const e=function(t,e,n){const i=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){const s=i.value;s._futureSnapshot=n.value;const r=function(e,n,i){return n.children.map(n=>{for(const s of i.children)if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s);return t(e,n)})}(e,n,i);return new Mt(s,r)}{const i=e.retrieve(n.value);if(i){const t=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(let i=0;it(e,n));return new Mt(i,r)}}var s}(t,e._root,n?n._root:void 0);return new Ht(i,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(k.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)}),(s=this.rootContexts,c=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(f.a)(t=>(new re(c,t.targetRouterState,t.currentRouterState,l).activate(s),t))),Object(k.a)({next(){n=!0},complete(){n=!0}}),Object(B.a)(()=>{if(!n&&!i){this.resetUrlToCurrentUrlTree();const n=new U(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(i=!0,(s=n)&&s.ngNavigationCancelingError){const i=le(n.url);i||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new U(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),i?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 i=new K(t.id,this.serializeUrl(t.extractedUrl),n);e.next(i);try{t.resolve(this.errorHandler(n))}catch(r){t.reject(r)}}var s;return d.a}));var s,c,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=>{let e=this.parseUrl(t.url);const n="popstate"===t.type?"popstate":"hashchange",i=t.state&&t.state.navigationId?t.state:null;setTimeout(()=>{this.scheduleNavigation(e,n,i,{replaceUrl:!0})},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ke(t),this.config=t.map(qe),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:i,fragment:r,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:c}=e;Object(s.X)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,h=c?this.currentUrlTree.fragment:r;let u=null;if(a)switch(a){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}else u=o?this.currentUrlTree.queryParams:i||null;return null!==u&&(u=this.removeEmptyProps(u)),function(t,e,n,i,s){if(0===n.length)return Qt(e.root,e.root,e,i,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Xt(!0,0,t);let e=0,n=!1;const i=t.reduce((t,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const e={};return ht(i.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(i.segmentPath)return[...t,i.segmentPath]}return"string"!=typeof i?[...t,i]:0===s?(i.split("/").forEach((i,s)=>{0==s&&"."===i||(0==s&&""===i?n=!0:".."===i?e++:""!=i&&t.push(i))}),t):[...t,i]},[]);return new Xt(n,e,i)}(n);if(r.toRoot())return Qt(e.root,new ft([],{}),e,i,s);const o=function(t,e,n){if(t.isAbsolute)return new Zt(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new Zt(t,t===e.root,0)}const i=Yt(t.commands[0])?0:1;return function(t,e,n){let i=t,s=e,r=n;for(;r>s;){if(r-=s,i=i.parent,!i)throw new Error("Invalid number of '../'");s=i.segments.length}return new Zt(i,!1,s-r)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?te(o.segmentGroup,o.index,r.commands):$t(o.segmentGroup,o.index,r.commands);return Qt(o.segmentGroup,a,e,i,s)}(l,this.currentUrlTree,t,u,h)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.X)()&&this.isNgZoneEnabled&&!s.B.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=le(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const i=t[n];return null!=i&&(e[n]=i),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new V(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,i,s){const r=this.getTransition();if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"popstate"==e&&"hashchange"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);let o,a,c;s?(o=s.resolve,a=s.reject,c=s.promise):c=new Promise((t,e)=>{o=t,a=e});const l=++this.navigationId;return this.setTransition({id:l,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:o,reject:a,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,i){const s=this.urlSerializer.serialize(t);i=i||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},i),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},i),{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)(s.Wb(s.P),s.Wb(_t),s.Wb(Xe),s.Wb(i.h),s.Wb(s.t),s.Wb(s.y),s.Wb(s.i),s.Wb(void 0))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),nn=(()=>{class t{constructor(t,e,n,i,r){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.o,this.deactivateEvents=new s.o,this.name=i||"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),i=this.parentContexts.getOrCreateContext(this.name).children,s=new sn(t,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(Xe),s.Mb(s.R),s.Mb(s.j),s.Xb("name"),s.Mb(s.h))},t.\u0275dir=s.Hb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class sn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===Nt?this.route:t===Xe?this.childContexts:this.parent.get(t,e)}}class rn{}class on{preload(t,e){return Object(r.a)(null)}}let an=(()=>{class t{constructor(t,e,n,i,s){this.router=t,this.injector=i,this.preloadingStrategy=s,this.loader=new Ye(e,n,e=>t.triggerEvent(new Q(e)),e=>t.triggerEvent(new X(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(m.a)(t=>t instanceof V),Object(M.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.z);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const i of e)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const t=i._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else i.loadChildren&&!i.canLoad?n.push(this.preloadConfig(t,i)):i.children&&n.push(this.processRoutes(t,i.children));return Object(o.a)(n).pipe(Object(H.a)(),Object(f.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(D.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(en),s.Wb(s.y),s.Wb(s.i),s.Wb(s.t),s.Wb(rn))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})(),cn=(()=>{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 N?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof V&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof et&&(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 et(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)(s.Wb(en),s.Wb(i.t),s.Wb(void 0))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();const ln=new s.s("ROUTER_CONFIGURATION"),hn=new s.s("ROUTER_FORROOT_GUARD"),un=[i.h,{provide:_t,useClass:yt},{provide:en,useFactory:function(t,e,n,s,r,o,a,c={},l,h){const u=new en(null,t,e,n,s,r,o,ct(a));if(l&&(u.urlHandlingStrategy=l),h&&(u.routeReuseStrategy=h),c.errorHandler&&(u.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(u.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){const t=Object(i.z)();u.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return c.onSameUrlNavigation&&(u.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(u.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(u.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(u.relativeLinkResolution=c.relativeLinkResolution),u},deps:[_t,Xe,i.h,s.t,s.y,s.i,Ge,ln,[class{},new s.C],[class{},new s.C]]},Xe,{provide:Nt,useFactory:function(t){return t.routerState.root},deps:[en]},{provide:s.y,useClass:s.M},an,on,class{preload(t,e){return e().pipe(Object(x.a)(()=>Object(r.a)(null)))}},{provide:ln,useValue:{enableTracing:!1}}];function dn(){return new s.A("Router",en)}let pn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[un,bn(e),{provide:hn,useFactory:mn,deps:[[en,new s.C,new s.L]]},{provide:ln,useValue:n||{}},{provide:i.i,useFactory:gn,deps:[i.s,[new s.q(i.a),new s.C],ln]},{provide:cn,useFactory:fn,deps:[en,i.t,ln]},{provide:rn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:on},{provide:s.A,multi:!0,useFactory:dn},[_n,{provide:s.d,multi:!0,useFactory:yn,deps:[_n]},{provide:wn,useFactory:vn,deps:[_n]},{provide:s.b,multi:!0,useExisting:wn}]]}}static forChild(e){return{ngModule:t,providers:[bn(e)]}}}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)(s.Wb(hn,8),s.Wb(en,8))}}),t})();function fn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new cn(t,e,n)}function gn(t,e,n={}){return n.useHash?new i.f(t,e):new i.r(t,e)}function mn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function bn(t){return[{provide:s.a,multi:!0,useValue:t},{provide:Ge,multi:!0,useValue:t}]}let _n=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new p.a}appInitializer(){return this.injector.get(i.g,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(en),i=this.injector.get(ln);if(this.isLegacyDisabled(i)||this.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error(`Invalid initialNavigation options: '${i.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(r.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(ln),n=this.injector.get(an),i=this.injector.get(cn),r=this.injector.get(en),o=this.injector.get(s.g);t===o.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(s.t))},t.\u0275prov=s.Ib({token:t,factory:t.\u0275fac}),t})();function yn(t){return t.appInitializer.bind(t)}function vn(t){return t.bootstrapListener.bind(t)}const wn=new s.s("Router Initializer")},u47x:function(t,e,n){"use strict";n.d(e,"a",(function(){return U})),n.d(e,"b",(function(){return A})),n.d(e,"c",(function(){return w})),n.d(e,"d",(function(){return P})),n.d(e,"e",(function(){return N})),n.d(e,"f",(function(){return R})),n.d(e,"g",(function(){return C})),n.d(e,"h",(function(){return H})),n.d(e,"i",(function(){return O})),n.d(e,"j",(function(){return V})),n.d(e,"k",(function(){return F})),n.d(e,"l",(function(){return j}));var i=n("ofXK"),s=n("fXoL"),r=n("nLfN"),o=n("XNiG"),a=n("quSY"),c=n("LRne"),l=n("FtGj"),h=n("vkgz"),u=n("Kj3r"),d=n("pLZG"),p=n("lJxs"),f=n("IzEk"),g=n("8LU1"),m=n("GU7r");function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}let _=0;const y=new Map;let v=null,w=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),y.set(e,{messageElement:e,referenceCount:0})):y.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=y.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}v&&0===v.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=y.get(e);!function(t,e,n){const i=b(t,e);i.some(t=>t.trim()==n.trim())||(i.push(n.trim()),t.setAttribute(e,i.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute("cdk-describedby-host",""),n.referenceCount++}_removeMessageReference(t,e){const n=y.get(e);n.referenceCount--,function(t,e,n){const i=b(t,e).filter(t=>t!=n.trim());i.length?t.setAttribute(e,i.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute("cdk-describedby-host")}_isElementDescribedByMessage(t,e){const n=b(t,"aria-describedby"),i=y.get(e),s=i&&i.messageElement.id;return!!s&&-1!=n.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),i=t.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(i.d),s.Wb(r.a))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(i.d),Object(s.Wb)(r.a))},token:t,providedIn:"root"}),t})();class S{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 s.F&&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(h.a)(t=>this._pressedLetters.push(t)),Object(u.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 l.p:return void this.tabOut.next();case l.e:if(this._vertical&&n){this.setNextItemActive();break}return;case l.q:if(this._vertical&&n){this.setPreviousItemActive();break}return;case l.n:if(this._horizontal&&n){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case l.j:if(this._horizontal&&n){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case l.i:if(this._homeAndEnd&&n){this.setFirstItemActive();break}return;case l.f:if(this._homeAndEnd&&n){this.setLastItemActive();break}return;default:return void((n||Object(l.t)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=l.a&&e<=l.r||e>=l.s&&e<=l.k)&&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),i=e[n];this._activeItem=null==i?null:i,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 i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}_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 s.F?this._items.toArray():this._items}}class A extends S{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class C extends S{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 x=(()=>{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===D(e))return!1;if(!this.isVisible(e))return!1}let i=t.nodeName.toLowerCase(),s=D(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==i&&"object"!==i&&!(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"===i?!!t.hasAttribute("controls")&&-1!==s:"video"===i?-1!==s&&(null!==s||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")||E(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(r.a))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(r.a))},token:t,providedIn:"root"}),t})();function E(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 D(t){if(!E(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class k{constructor(t,e,n,i,s=!1){this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,s||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 O=(()=>{class t{constructor(t,e,n){this._checker=t,this._ngZone=e,this._document=n}create(t,e=!1){return new k(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(x),s.Wb(s.B),s.Wb(i.d))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(x),Object(s.Wb)(s.B),Object(s.Wb)(i.d))},token:t,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Object(g.c)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Object(g.c)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(O),s.Mb(i.d))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.zb]}),t})();"undefined"!=typeof Element&∈const I=new s.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),T=new s.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let F=(()=>{class t{constructor(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}announce(t,...e){const n=this._defaultOptions;let i,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[i,s]=e,this.clear(),clearTimeout(this._previousTimeout),i||(i=n&&n.politeness?n.politeness:"polite"),null==s&&n&&(s=n.duration),this._liveElement.setAttribute("aria-live",i),this._ngZone.runOutsideAngular(()=>new Promise(e=>{clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,e(),"number"==typeof s&&(this._previousTimeout=setTimeout(()=>this.clear(),s))},100)}))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement&&this._liveElement.parentNode&&(this._liveElement.parentNode.removeChild(this._liveElement),this._liveElement=null)}_createLiveElement(){const t=this._document.getElementsByClassName("cdk-live-announcer-element"),e=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,n,i){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=n,this._ngZone=i,this._politeness="polite"}get politeness(){return this._politeness}set politeness(t){this._politeness="off"===t||"assertive"===t?t:"polite","off"===this._politeness?this._subscription&&(this._subscription.unsubscribe(),this._subscription=null):this._subscription||(this._subscription=this._ngZone.runOutsideAngular(()=>this._contentObserver.observe(this._elementRef).subscribe(()=>{const t=this._elementRef.nativeElement.textContent;t!==this._previousAnnouncedText&&(this._liveAnnouncer.announce(t,this._politeness),this._previousAnnouncedText=t)})))}ngOnDestroy(){this._subscription&&this._subscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Mb(s.l),s.Mb(F),s.Mb(m.b),s.Mb(s.B))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function j(t){return 0===t.buttons}const M=new s.s("cdk-focus-monitor-default-options"),B=Object(r.f)({passive:!0,capture:!0});let H=(()=>{class t{constructor(t,e,n,i){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=j(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=L(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=L(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let i=e;i;i=i.parentElement)n.call(this,t,i)},this._document=n,this._detectionMode=(null==i?void 0:i.detectionMode)||0}monitor(t,e=!1){const n=Object(g.e)(t);if(!this._platform.isBrowser||1!==n.nodeType)return Object(c.a)(null);const i=Object(r.c)(n)||this._getDocument(),s=this._elementInfo.get(n);if(s)return e&&(s.checkChildren=!0),s.subject;const a={checkChildren:e,subject:new o.a,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(t){const e=Object(g.e)(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 i=Object(g.e)(t);this._setOriginForCurrentEventQueue(e),"function"==typeof i.focus&&i.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=L(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);if(!n||!n.checkChildren&&e!==L(t))return;const i=this._getFocusOrigin(t);this._setClasses(e,i),this._emitOrigin(n.subject,i),this._lastFocusOrigin=i}_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,B),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,B)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,B),t.addEventListener("mousedown",this._documentMousedownListener,B),t.addEventListener("touchstart",this._documentTouchstartListener,B),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,B),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,B),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,B),t.removeEventListener("mousedown",this._documentMousedownListener,B),t.removeEventListener("touchstart",this._documentTouchstartListener,B),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(s.Wb(s.B),s.Wb(r.a),s.Wb(i.d,8),s.Wb(M,8))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(s.B),Object(s.Wb)(r.a),Object(s.Wb)(i.d,8),Object(s.Wb)(M,8))},token:t,providedIn:"root"}),t})();function L(t){return t.composedPath?t.composedPath()[0]:t.target}let N=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new s.o}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)(s.Mb(s.l),s.Mb(H))},t.\u0275dir=s.Hb({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})(),V=(()=>{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,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){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)(s.Wb(r.a),s.Wb(i.d))},t.\u0275prov=Object(s.Ib)({factory:function(){return new t(Object(s.Wb)(r.a),Object(s.Wb)(i.d))},token:t,providedIn:"root"}),t})(),U=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=s.Kb({type:t}),t.\u0275inj=s.Jb({factory:function(e){return new(e||t)(s.Wb(V))},imports:[[r.b,m.c]]}),t})()},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("7o/Q");function s(){}var r=n("n6bG");function o(t,e,n){return function(i){return i.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 c(t,this.nextOrObserver,this.error,this.complete))}}class c extends i.a{constructor(t,e,n,i){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=n||s,this._tapComplete=i||s,Object(r.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s,this._tapError=e.error||s,this._tapComplete=e.complete||s)}_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 g})),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 m})),n("8LU1");var i=n("fXoL"),s=n("XNiG"),r=n("LRne"),o=n("HDdC"),a=n("xgIS"),c=(n("eNwd"),n("7Hc7"),n("quSY"),n("7+OI"),n("/uUt"),n("3UWI")),l=n("pLZG"),h=n("1G5W");n("JX91"),n("7o/Q"),n("eIep"),n("3N8a"),n("IjjT"),n("WMd4"),n("9ppp"),n("Ylt2");var u=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 s.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(c.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Object(r.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(l.a)(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,i)=>{this._scrollableContainsElement(i,t)&&e.push(i)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)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)(i.Wb(i.B),i.Wb(u.a),i.Wb(d.d,8))},t.\u0275prov=Object(i.Ib)({factory:function(){return new t(Object(i.Wb)(i.B),Object(i.Wb)(u.a),Object(i.Wb)(d.d,8))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{constructor(t,e,n,i){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=n,this.dir=i,this._destroyed=new s.a,this._elementScrolled=new o.a(t=>this.ngZone.runOutsideAngular(()=>Object(a.a)(this.elementRef.nativeElement,"scroll").pipe(Object(h.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(u.d)()?(null!=t.left&&(t.right=e.scrollWidth-e.clientWidth-t.left),2==Object(u.d)()?t.left=t.right:1==Object(u.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(u.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(u.d)()?"left"==t?e.scrollWidth-e.clientWidth-e.scrollLeft:e.scrollLeft:n&&1==Object(u.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)(i.Mb(i.l),i.Mb(f),i.Mb(i.B),i.Mb(p.b,8))},t.\u0275dir=i.Hb({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),m=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new s.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._getDocument(),e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(c.a)(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().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)(i.Wb(u.a),i.Wb(i.B),i.Wb(d.d,8))},t.\u0275prov=Object(i.Ib)({factory:function(){return new t(Object(i.Wb)(u.a),Object(i.Wb)(i.B),Object(i.Wb)(d.d,8))},token:t,providedIn:"root"}),t})(),b=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)}}),t})(),_=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[p.a,u.b,b],p.a,b]}),t})()},w1tV:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n("XNiG"),s=n("HDdC"),r=n("7o/Q"),o=n("quSY");function a(){return function(t){return t.lift(new c(t))}}class c{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const i=new l(t,n),s=e.subscribe(i);return i.closed||(i.connection=n.connect()),s}}class l extends r.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,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}class h extends s.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 u=(()=>{const t=h.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class d extends i.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 i.a}function f(){return t=>{return a()((e=p,function(t){let n;n="function"==typeof e?e:function(){return e};const i=Object.create(t,u);return i.source=t,i.subjectFactory=n,i})(t));var e}}},wZkO:function(t,e,n){"use strict";n.d(e,"a",(function(){return Y})),n.d(e,"b",(function(){return rt})),n.d(e,"c",(function(){return pt}));var i=n("u47x"),s=n("GU7r"),r=n("+rOU"),o=n("ofXK"),a=n("fXoL"),c=n("FKr1"),l=n("R1ws"),h=n("XNiG"),u=n("quSY"),d=n("VRyK"),p=n("xgIS"),f=n("LRne"),g=n("PqYM"),m=n("R0Ic"),b=n("JX91"),_=n("/uUt"),y=n("1G5W"),v=n("8LU1"),w=n("nLfN"),S=n("FtGj"),A=n("cH1L"),C=n("vxfF");function x(t,e){1&t&&a.hc(0)}const E=["*"];function D(t,e){}const k=function(t){return{animationDuration:t}},O=function(t,e){return{value:t,params:e}},R=["tabBodyWrapper"],I=["tabHeader"];function T(t,e){}function F(t,e){if(1&t&&a.Cc(0,T,0,0,"ng-template",9),2&t){const t=a.dc().$implicit;a.jc("cdkPortalOutlet",t.templateLabel)}}function P(t,e){if(1&t&&a.Dc(0),2&t){const t=a.dc().$implicit;a.Ec(t.textLabel)}}function j(t,e){if(1&t){const t=a.Tb();a.Sb(0,"div",6),a.Zb("click",(function(){a.sc(t);const n=e.$implicit,i=e.index,s=a.dc(),r=a.qc(1);return s._handleClick(n,r,i)})),a.Sb(1,"div",7),a.Cc(2,F,1,1,"ng-template",8),a.Cc(3,P,1,1,"ng-template",8),a.Rb(),a.Rb()}if(2&t){const t=e.$implicit,n=e.index,i=a.dc();a.Eb("mat-tab-label-active",i.selectedIndex==n),a.jc("id",i._getTabLabelId(n))("disabled",t.disabled)("matRippleDisabled",t.disabled||i.disableRipple),a.Cb("tabIndex",i._getTabIndex(t,n))("aria-posinset",n+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(n))("aria-selected",i.selectedIndex==n)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.Bb(2),a.jc("ngIf",t.templateLabel),a.Bb(1),a.jc("ngIf",!t.templateLabel)}}function M(t,e){if(1&t){const t=a.Tb();a.Sb(0,"mat-tab-body",10),a.Zb("_onCentered",(function(){return a.sc(t),a.dc()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return a.sc(t),a.dc()._setTabBodyWrapperHeight(e)})),a.Rb()}if(2&t){const t=e.$implicit,n=e.index,i=a.dc();a.Eb("mat-tab-body-active",i.selectedIndex==n),a.jc("id",i._getTabContentId(n))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",i.animationDuration),a.Cb("aria-labelledby",i._getTabLabelId(n))}}const B=["tabListContainer"],H=["tabList"],L=["nextPaginator"],N=["previousPaginator"],V=new a.s("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let U=(()=>{class t{constructor(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.B),a.Mb(V),a.Mb(l.a,8))},t.\u0275dir=a.Hb({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&a.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const K=new a.s("MatTabContent"),z=new a.s("MatTabLabel");class W{}const q=Object(c.z)(W),G=new a.s("MAT_TAB_GROUP");let Y=(()=>{class t extends q{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new h.a,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new r.h(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.R),a.Mb(G,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(a.Fb(n,z,!0),a.wc(n,K,!0,a.N)),2&t&&(a.pc(i=a.ac())&&(e.templateLabel=i.first),a.pc(i=a.ac())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&a.xc(a.N,!0),2&t&&a.pc(n=a.ac())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.yb,a.zb],ngContentSelectors:E,decls:1,vars:0,template:function(t,e){1&t&&(a.ic(),a.Cc(0,x,1,0,"ng-template"))},encapsulation:2}),t})();const Q={translateTab:Object(m.n)("translateTab",[Object(m.k)("center, void, left-origin-center, right-origin-center",Object(m.l)({transform:"none"})),Object(m.k)("left",Object(m.l)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Object(m.k)("right",Object(m.l)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Object(m.m)("* => left, * => right, left => center, right => center",Object(m.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Object(m.m)("void => left-origin-center",[Object(m.l)({transform:"translate3d(-100%, 0, 0)"}),Object(m.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Object(m.m)("void => right-origin-center",[Object(m.l)({transform:"translate3d(100%, 0, 0)"}),Object(m.e)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let X=(()=>{class t extends r.c{constructor(t,e,n,i){super(t,e,i),this._host=n,this._centeringSub=u.a.EMPTY,this._leavingSub=u.a.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Object(b.a)(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.j),a.Mb(a.R),a.Mb(Object(a.V)(()=>J)),a.Mb(o.d))},t.\u0275dir=a.Hb({type:t,selectors:[["","matTabBodyHost",""]],features:[a.yb]}),t})(),Z=(()=>{class t{constructor(t,e,n){this._elementRef=t,this._dir=e,this._dirChangeSubscription=u.a.EMPTY,this._translateTabComplete=new h.a,this._onCentering=new a.o,this._beforeCentering=new a.o,this._afterLeavingCenter=new a.o,this._onCentered=new a.o(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),n.markForCheck()})),this._translateTabComplete.pipe(Object(_.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(A.b,8),a.Mb(a.h))},t.\u0275dir=a.Hb({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),J=(()=>{class t extends Z{constructor(t,e,n){super(t,e,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(A.b,8),a.Mb(a.h))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&a.Ic(r.f,!0),2&t&&a.pc(n=a.ac())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[a.yb],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(a.Sb(0,"div",0,1),a.Zb("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),a.Cc(2,D,0,0,"ng-template",2),a.Rb()),2&t&&a.jc("@translateTab",a.oc(3,O,e._position,a.nc(1,k,e.animationDuration)))},directives:[X],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Q.translateTab]}}),t})();const $=new a.s("MAT_TABS_CONFIG");let tt=0;class et{}class nt{constructor(t){this._elementRef=t}}const it=Object(c.x)(Object(c.y)(nt),"primary");let st=(()=>{class t extends it{constructor(t,e,n,i){super(t),this._changeDetectorRef=e,this._animationMode=i,this._tabs=new a.F,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=u.a.EMPTY,this._tabLabelSubscription=u.a.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.o,this.focusChange=new a.o,this.animationDone=new a.o,this.selectedTabChange=new a.o(!0),this._groupId=tt++,this.animationDuration=n&&n.animationDuration?n.animationDuration:"500ms",this.disablePagination=!(!n||null==n.disablePagination)&&n.disablePagination}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Object(v.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Object(v.f)(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,n)=>e.isActive=n===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,n)=>{e.position=n-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>!t._closestTabGroup||t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new et;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Object(d.a)(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,n){t.disabled||(this.selectedIndex=e.focusIndex=n)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h),a.Mb($,8),a.Mb(l.a,8))},t.\u0275dir=a.Hb({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.yb]}),t})(),rt=(()=>{class t extends st{constructor(t,e,n,i){super(t,e,n,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h),a.Mb($,8),a.Mb(l.a,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){var i;1&t&&a.Fb(n,Y,!0),2&t&&a.pc(i=a.ac())&&(e._allTabs=i)},viewQuery:function(t,e){var n;1&t&&(a.Ic(R,!0),a.Ic(I,!0)),2&t&&(a.pc(n=a.ac())&&(e._tabBodyWrapper=n.first),a.pc(n=a.ac())&&(e._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&a.Eb("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.Ab([{provide:G,useExisting:t}]),a.yb],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(a.Sb(0,"mat-tab-header",0,1),a.Zb("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),a.Cc(2,j,4,14,"div",2),a.Rb(),a.Sb(3,"div",3,4),a.Cc(5,M,1,8,"mat-tab-body",5),a.Rb()),2&t&&(a.jc("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),a.Bb(2),a.jc("ngForOf",e._tabs),a.Bb(1),a.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Bb(2),a.jc("ngForOf",e._tabs))},directives:function(){return[dt,o.k,ct,c.s,i.e,o.l,r.c,J]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class ot{}const at=Object(c.z)(ot);let ct=(()=>{class t extends at{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l))},t.\u0275dir=a.Hb({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(a.Cb("aria-disabled",!!e.disabled),a.Eb("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[a.yb]}),t})();const lt=Object(w.f)({passive:!0});let ht=(()=>{class t{constructor(t,e,n,i,s,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=n,this._dir=i,this._ngZone=s,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new h.a,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new h.a,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.o,this.indexFocused=new a.o,s.runOutsideAngular(()=>{Object(p.a)(t.nativeElement,"mouseleave").pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Object(v.f)(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Object(p.a)(this._previousPaginator.nativeElement,"touchstart",lt).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Object(p.a)(this._nextPaginator.nativeElement,"touchstart",lt).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Object(f.a)(null),e=this._viewportRuler.change(150),n=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new i.g(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(n):n(),Object(d.a)(t,e,this._items.changes).pipe(Object(y.a)(this._destroyed)).subscribe(()=>{Promise.resolve().then(n),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Object(y.a)(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Object(S.t)(t))switch(t.keyCode){case S.g:case S.o:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e=this._platform,n="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:s}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=i,o=r+s):(o=this._tabList.nativeElement.offsetWidth-i,r=o-s);const a=this.scrollDistance,c=this.scrollDistance+n;rc&&(this.scrollDistance+=o-c+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Object(g.a)(650,100).pipe(Object(y.a)(Object(d.a)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:n}=this._scrollHeader(t);(0===n||n>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h),a.Mb(C.e),a.Mb(A.b,8),a.Mb(a.B),a.Mb(w.a),a.Mb(l.a,8))},t.\u0275dir=a.Hb({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),ut=(()=>{class t extends ht{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(v.c)(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h),a.Mb(C.e),a.Mb(A.b,8),a.Mb(a.B),a.Mb(w.a),a.Mb(l.a,8))},t.\u0275dir=a.Hb({type:t,inputs:{disableRipple:"disableRipple"},features:[a.yb]}),t})(),dt=(()=>{class t extends ut{constructor(t,e,n,i,s,r,o){super(t,e,n,i,s,r,o)}}return t.\u0275fac=function(e){return new(e||t)(a.Mb(a.l),a.Mb(a.h),a.Mb(C.e),a.Mb(A.b,8),a.Mb(a.B),a.Mb(w.a),a.Mb(l.a,8))},t.\u0275cmp=a.Gb({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&a.Fb(n,ct,!1),2&t&&a.pc(i=a.ac())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(a.xc(U,!0),a.xc(B,!0),a.xc(H,!0),a.Ic(L,!0),a.Ic(N,!0)),2&t&&(a.pc(n=a.ac())&&(e._inkBar=n.first),a.pc(n=a.ac())&&(e._tabListContainer=n.first),a.pc(n=a.ac())&&(e._tabList=n.first),a.pc(n=a.ac())&&(e._nextPaginator=n.first),a.pc(n=a.ac())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&a.Eb("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.yb],ngContentSelectors:E,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(a.ic(),a.Sb(0,"div",0,1),a.Zb("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),a.Nb(2,"div",2),a.Rb(),a.Sb(3,"div",3,4),a.Zb("keydown",(function(t){return e._handleKeydown(t)})),a.Sb(5,"div",5,6),a.Zb("cdkObserveContent",(function(){return e._onContentChanges()})),a.Sb(7,"div",7),a.hc(8),a.Rb(),a.Nb(9,"mat-ink-bar"),a.Rb(),a.Rb(),a.Sb(10,"div",8,9),a.Zb("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),a.Nb(12,"div",2),a.Rb()),2&t&&(a.Eb("mat-tab-header-pagination-disabled",e._disableScrollBefore),a.jc("matRippleDisabled",e._disableScrollBefore||e.disableRipple),a.Bb(5),a.Eb("_mat-animation-noopable","NoopAnimations"===e._animationMode),a.Bb(5),a.Eb("mat-tab-header-pagination-disabled",e._disableScrollAfter),a.jc("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[c.s,s.a,U],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),pt=(()=>{class t{}return t.\u0275mod=a.Kb({type:t}),t.\u0275inj=a.Jb({factory:function(e){return new(e||t)},imports:[[o.c,c.j,r.g,c.t,s.c,i.a],c.j]}),t})()},xbPD:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7o/Q");function s(t=null){return e=>e.lift(new r(t))}class r{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new o(t,this.defaultValue))}}class o extends i.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 i=n("HDdC"),s=n("DH7j"),r=n("n6bG"),o=n("lJxs");function a(t,e,n,c){return Object(r.a)(n)&&(c=n,n=void 0),c?a(t,e,n).pipe(Object(o.a)(t=>Object(s.a)(t)?c(...t):c(t))):new i.a(i=>{!function t(e,n,i,s,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,i,r),o=()=>t.removeEventListener(n,i,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,i),o=()=>t.off(n,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,i),o=()=>t.removeListener(n,i)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o1?Array.prototype.slice.call(arguments):t)}),i,n)})}},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("HDdC"),s=n("ngJS"),r=n("jZKg");function o(t,e){return e?Object(r.a)(t,e):new i.a(Object(s.a)(t))}},"z+Ro":function(t,e,n){"use strict";function i(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return i}))},z6cu:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("HDdC");function s(t,e){return new i.a(e?n=>e.schedule(r,0,{error:t,subscriber:n}):e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,n){"use strict";n.r(e);var i=n("fXoL"),s=n("sroB"),r=n("EY2u"),o=n("JIr8"),a=n("dNgK");let c=(()=>{class t{constructor(t,e){this.varLive=t,this._snackBar=e}openSnackBar(t,e){this._snackBar.open(t,e,{duration:1e3*this.varLive.getDuration()})}intercept(t,e){return t=t.clone({setHeaders:{user:localStorage.getItem("getUserForLogin")?localStorage.getItem("getUserForLogin").toUpperCase():"firstInteraction",lang:navigator.language.substring(0,2),linkfe:"localhost"==window.location.hostname?window.location.hostname+":4201":window.location.host,authorization:"Bearer "+s.a.token.get()}}),e.handle(t).pipe(Object(o.a)(t=>(401===t.status&&this.varLive.login(),r.a)))}}return t.\u0275fac=function(e){return new(e||t)(i.Wb(s.a),i.Wb(a.a))},t.\u0275prov=i.Ib({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var l=n("jhN1");let h=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=i.Gb({type:t,selectors:[["app-error-page"]],decls:8,vars:0,consts:[[1,"fca_ux-container-medium-large","mdc-card"],[1,"content-card","fca_ux-border-box-1"],[1,"message-card","fca_ux-space-around","fca_ux-column"],["width","128px","src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAwAAAAMACAYAAACTgQCOAAAACXBIWXMAACE3AAAhNwEzWJ96AAAgAElEQVR4nO3dO4xc52Ev8ENRcmzpYsgmTknarR+kKyNuSBtJM4AhThcghSgYSKrE9G2MAEZMXQS4SBNTSZUAhskiQLohYWCaBDHZ2FBlMrJbmSzjFOEOrmTHMr0Xh/qGGnJf882cx/f4/QBC8i4N7Z4zO/v/n+91an9/vwEAAOrwkvsMAAD1UAAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUJGX3WyAtCyns4tN05wNX9Tl8M/2f18M/97+80wCX/SjpmkeNk1zv2max2sfv7v2748ni/n9A/9PAEZzan9/39UHGMByOluF+fPhT7MW8Nv/fa6C+3Av/PNxKA7NWoFQFgAGoAAAdGA5na2e0K/C/ep/t/+84BpHWxWF+2tloS0Idzv8bwBUSQEA2NBayF8F+8sC/mjurRUD5QAgggIA8ILldLZ6in957Yn+pQN/kRSt1iXcDf98qBgAPE8BAKoW5uWvpu5cFPSL9WBtwXJbCO5PFvPHlV4LoHIKAFCNtbC/+mPqTt321gqBUgBUQwEAihS20rwYpvEI+2zq0XopsCsRUCIFAChCeLp/eS3wp7BPPmW4Z5QAKIkCAGQn7MazHvg93WdID9YKwV2FAMiNAgAkT+AncffWyoAdh4DkKQBAksIc/ish8NuZh5zcCYXg9mQxf+jOAalRAIAkhKf8q8B/xRx+CtEuKr4dRgduu6lAChQAYDRrT/mvmNZDBfZWIwNhdMDaAWAUCgAwqOV0dmXtSf85V5+KtYuJb5oqBAxNAQB6ZWoPbEQZAAajAACdWwv97Z/XXWGIogwAvVIAgM4sp7OrQj90ShkAOqcAADtZm9Nveg/0a1UGblpADOxCAQCihd17roY/Qj8M704YFbjp2gOxFABgI8vp7Hx4yn/N7j2QjL2wrehNpxADm1IAgGOFKT5XzeuH5LWHjt2wXgA4iQIAHBCe9l8zxQeydSeMCjh9GDhAAQCeCbv4tH8uuSpQhEdrC4eNCgBPKQBQufC0fxX8ze2HchkVAJ5SAKBSy+nscgj9b3gNQFVWowI3bCcKdVIAoDJhmk87v/+Cew/VuxWKwP3aLwTURAGACiyns7Mh9F+zqBc4xL0wPci5AlABBQAKFub3XzfNB9iQ6UFQAQUAChTm91+zdz+wpdUBY9ftHgTlUQCgICH4X7eNJ9Ah6wSgMAoAFMDCXmAA98KIwF0XG/KmAEDGQvC/bv9+YED3woiA8wQgUwoAZEjwBxLwKIwI2DkIMqMAQEYEfyBBigBkRgGADAj+QAYUAciEAgAJs6sPkCFFABKnAECCBH+gAG0RuGrXIEiPAgAJCSf33nCAF1AQ24dCYhQASMByOjsbgv8b7gdQqLYIXHOgGIxPAYCRLaez6+EQrzPuBVCBW2FE4KGbDeNQAGAkdvYBKvdWOFDsce0XAoamAMDALPAFeGYvjAbccElgOAoADMQ8f4Aj2TEIBqQAwADM8wfYyL1QBKwPgB4pANCjMN3npnn+AFHeDlODrA+AHigA0AP7+QPsbC9sG+pEYeiYAgAdM90HoFPOD4COKQDQkTDdp33qf8E1BeicaUHQEQUAdmR3H4DB7IVFwrddctieAgA7CId53TDdB2BQdguCHSgAsIWwyPemw7wARuMQMdiSAgCRltPZtXCSr6f+AON7EEYDLBKGDSkAsKHldHYxPPW3yBcgPW9NFvPr7gucTAGADYStPb/rWgEk7UHYMvSu2wRHUwDgGJ76A2TJlqFwjJeO/hTULTz1/6nwD5CdbzZNczc8xAFeYAQAXuCpP0BRrA2AFygAsCbs8PM91wSgKHYKgjUKANjXH6AW33JuACgA4DRfgLq0pwhfsUCYmikAVGs5nZ0NT/1f9yoAqMpemBJ0222nRgoAVVpOZ5dD+D/nFQBQLduFUiXbgFKdsL3nj4R/gOrZLpQqGQGgGmGh723bewLwgr1wgvDNA5+BAikAVGE5nV0JU34s9AXgKLdCETAliKKZAkTxltNZu8PPXPgH4ARvmBJEDYwAUCxTfgDYkilBFM0IAEUKU37uC/8AbKEdMf7BcjpTACiSEQCKE6b8fNOdBaADD8LBYQ9dTEqhAFCMcLBXO+XnkrsKQIf2Qgm466JSAlOAKEJYsPVQ+AegB+2UoB8tp7NrLi4lMAJA9pbT2dV2rqY7CcAAbBVK9hQAshYWaL3hLgIwIOsCyJoCQJbCfP+7dvkBYCTtuoDLk8X8vhtAbqwBIDtr8/2FfwDG0q4L+GmYhgpZUQDISnijvetUXwAS8YOw/TRkwxQgsmF/fwASdqdpmqsWB5MDBYDkhfn+Nyz2BSBxD8K6ACWApCkAJM1iXwAyY3EwybMGgGRZ7AtAhto1aneX09llN49UKQAkaTmdXbHYF4BMrU4OtkMQSVIASE54w5wL/wBkrt0h6LqbSGqsASApdvoBoEC3Jou50QCSoQCQjOV0dtNOPwAU6lbTNNfsEEQKFABGF3b6ud00zSV3A4CC2SaUJCgAjMo2nwBURglgdBYBM5rldHZe+AegMhfCNqHn3XjGYgSAUYQ9/m3zCUCtHBjGaIwAMDjhHwCeHRh20aVgaAoAgxL+AeAZJYBRKAAMJhzw9VPhHwCeUQIYnALAIEL4/4GrDQAHKAEMSgGgd8I/AJyoLQE/Db8zoVcKAL0S/gEgyg+UAPqmANAb4R8AtqIE0CsFgF4I/wCwEyWA3igAdE74B4BOKAH0wknAdEr4B4DOfcmJwXTJCACdEf4BoBe2CKVTCgCdEP4BoDfOCaBTCgA7E/4BoHdKAJ1RANiJ8A8Ag1EC6IRFwGxN+AeAUew1TXNxspg/dPnZhgLAVsLTh7vhaQQAMKwHTdNcnizmj113YpkCRDThHwBGdyFMBzrrVhBLASCK8A8AyVAC2IoCwMbCG4zwDwDpaEvADfeDGAoAGxH+ASBZbyyns5tuD5tSADjRWvi/4GoBQJLaEnDdrWETCgCbuCn8A0Dyvhu26IZjKQAcKwwpvn7c3wEAkvGD5XR2xe3gOAoAR1pOZ9faIcWjPg8AJOmm04I5joPAOJRTfgEga04L5kgKAAeEpwY/PfAJACAnTgvmUKYA8Zy1g74AgLy1G3jcdg95kQLAM2G7z5v2+geAYlxyRgAvUgBYZ69/ACjPG7YHZZ0CwFPh6YDwDwBlarcHveze0igANLb7BIBa3LY9KI1dgAiHhcyrvxAAUAc7A2EEoGbhKYCFQQBQjwt+96MAVMqOPwBQrdeX09kNt79eCkC9LPoFgHp9085A9VIAKrSczq637b/26wAAlbthUXCdLAKujEW/AMCaR03TXLQouC5GACqynM7OW/gDAKw5JxvURwGoRFj0e9uiXwDgBa+H6cFUQgGoxw2LfgGAI3zXScH1sAagAmGV/w9qvw4AwLH2wnqAh8f9JfJnBKBwYXW/vX4BgJOcCdOFKZwCUDCHfQEAkS44JKx8CkDZzPsHAGJ9M2wbTqGsASiUef8AwA6sByiYEYACmfcPAOzIeoCCKQCFMe8fAOiI9QCFUgDKc928fwCgI990PkB5rAEoSFiwM6/9OgAAnWrXA5yfLOaPXdYyGAEoxNrUHwCALlkPUBgFoBzm/QMAfbm0nM6uubplMAWoAOEH8nu1XwcAoHdfmizm913mvBkByNxyOjsfFv4CAPTNdOMCKAD5u23qDwAwEFuDFkAByNhyOrPlJwAwNFuDZs4agEyF035/Wvt1AABG8ahpmou2Bs2TEYB8mYMHAIzlXNM0pgJlSgHIkKk/AEAC3giHkJIZU4AyY+oPAJAQpwRnyAhAfkz9AQBScUY2yY8CkJFw4JepPwBASl43FSgvpgBlIhz4dd+e/wBAgkwFyogRgHzcFP4BgESdsStQPhSADCyns6tN01yq/ToAAEl7wwFheTAFKHHL6exs0zQPPf0HADLggLAMGAFI3w3hHwDIRHtA2HU3K21GABIWhtF+VPt1AACy86XJYn7fbUuTEYC02VcXAMiRDJMwBSBRy+nsehhGAwDIzYVwfhEJMgUoQfb8BwAKsBcWBD90M9NiBCBNFv4CALlzNkCijAAkxsJfAKAwX50s5nfd1HQYAUiPRTMAQElkm8QoAAmx8BcAKNC5kHFIhClAiXDiLwBQMAuCE2IEIB0W/gIApbIgOCFGABKwnM4uNk3z09qvAwBQPAuCE2AEIA0aMQBQA5knAQrAyJbT2ZWmaS5VfREAgFq0JwRfdbfHpQCMTxMGAGpyI2x+wkgUgBEtp7Nrtv0EACrTLgi+5qaPxyLgkdj2EwCo3GdsCzoOIwDjuSb8AwAVczjYSIwAjMDTfwCAp2wLOgIjAONw6BcAgFGAURgBGNhyOjvfNM0vqvqmAQCOZhRgYEYAhqfpAgB8zJboAzMCMCBP/wEADvXmZDG/edgn6J4RgGF5YZOVU6+91pz+7GfcNMhI+zPb/uxCZsyQGJARgIEsp7PLTdP8qIpvlmy9/MXPN6/80dea01/8fPPSp3//uW9j//0Pmifv/qz58CfvNL/98TvN/vvvu9Ewsjbov/yVLzev/OGXm9Nf+Hxz6rVXn/uCfvfL/2qe/MfPmt/c/mHz5D0D0CTPKMBAFICBLKezdnHLpSq+WbLTPjH85J9/ozn9hc9t9KW3ZeB//vlfnoYKYByfuPL15vf+9E8OhP6jPHn3582v//H7igApezRZzM+7Q/1TAAbg6T8pe+WPv9Z86lt/sdVX2AaKD/7P/zUaAANqn/q/+td/tXFhf9GvvvcPzYf/+u8HPg6JeGuymJsO1DMFYACe/pOqT/3vv2xe+aOv7vTVPXnvYfPBt7+jBMAAnob/v/2b5vRnd3tI+uG//aj51d/9/YGPQwL2mqY5P1nMH7sZ/bEIuGfh6b/wT3K6CP/N0+lD558GEosOoV9dhf9W+7PfvgdAgtqDUq+5Mf1SAPpnGIvkdBX+V5QA6FeX4X9FCSBh15bT2Vk3qD8KQI88/SdFXYf/FSUA+tFH+F9RAkiUUYCeKQD98uIlKX2F/xUlALrVZ/hfUQJIlFGAHikAPQmn/r5e5DdHlvoO/ytKAHRjiPC/ogSQoHYU4Kob0w8FoD/m/pOMocL/ihIAuxky/K8oASTITIqeKAA9CE//3yjuGyNLQ4f/FSUAtjNG+F9RAkjMueV0ZhSgBwpAPzz9Jwljhf8VJQDijBn+V5QAEiNT9cBBYB0LC1b+u6hviiyNHf7XOSwMTpZC+F/nsDAS8uZkMb/phnTHCED3zFdjdCmF/8ZIAJwotfDfGAkgLUYBOmYEoEPh6f/DsHIdRpFa+F9nJAAOSjH8rzMSQCK+OlnM77oZ3TAC0K2rwj9jSjn8N0YC4IDUw39jJIB0GAXokALQLdN/GE3q4X9FCYCP5BD+V5QAEnBpOZ1ddCO6oQB0JGxTda6Ib4bs5BL+V5QAapdT+F9RAkiAB60dUQC6Y59aRpFb+F9RAqhVjuF/RQlgZG+Es5bYkQLQgeV0drkdmsr+GyE7uYb/FSWA2uQc/leUAEbmgWsHFIBueDEyuNzD/4oSQC1KCP8rSgAjuhZ2XWQHCsCOwlDUG1l/E2SnlPC/ogRQupLC/4oSwEja3RavuPi7UQB25+k/gyot/K8oAZSqxPC/ogQwEluC7kgB2J0V6Qym1PC/ogRQmpLD/4oSwAjOhfWXbEkB2EHY+tPBXwyi9PC/ogRQihrC/4oSwAg8gN2BArAbLz4G8coff62K8L+iBJC7msL/Svse1b5XwUBetyXo9hSALYXT6C5k+cWTldOf/UzzqW/9RXU3TQkgVzWG/5X2vap9z4KBWIe5JQVge57+M4hP/vk3qr3QSgC5qTn8r9T8nsXgZLEtKQBbCPvP2oKK3rVP0k5/4XNVX2glgFwI/x9p37OMAjCQM2E9JpEUgO1Y/MsgPnHl6y60EkAGhP/nee9iQArAFhSA7RhyYhCnv/h5FzpQAkiV8H+Q9y4GdMli4HgKQKSw7+y5rL5osvXSp3/fzVujBJAa4f9w3rsYmAezkRSAeIaaGISQezglgFQI/8fzM8qArMuMpABEsPiXIb30B592vY+gBDA24f9k3sMYUHsysHwWQQGIc8XiX4by5L1fuNbHUAIYi/C/Ge9hDMwMjQgKQBxzzBjU/vsfuODHUAIYmvC/Ge9djOD1MFODDSgAGworzJ38y6CevPszF/wESgBDEf43572LkRgF2JACsDlP/xnchz95x0XfgBJA34T/ON67GIkCsCEFYHNeVAzutz9+x1D6hpQA+iL8x2nfs9r3LhjBheV0dtGFP5kCsIGwstziXwa3//77zf/887+48BtSAuia8B+vfc9q37tgJB7YbkAB2IytpRjNb27/sHny7s/dgA0pAXRF+I/Xvle171kwIpltA6f29/eT/yLHFFaU/3e9V4AUCCLxnrz3sPng29/xJJKt+JmL52eOhHx1spjfdUOOZgTgZJoko2t/oba/WNtfsGzGSADbEv7jCf8kxjSgEygAJ/MiIglKQDwlgFjCfzzhnwR5eHsCBeAYYe//S0f/DRiWEhBPCWBTwn884Z9EnQkbuHAEBeB4XjwkRwmIpwRwEuE/nvBP4mS4YygAxzP9hyQpAfGUAI4i/McT/smAAnAMBeAIYfrPhcM/C+NTAuIpAbxI+I8n/JMJ04COoQAczdN/kqcExFMCWBH+4wn/ZEYBOIICcDQFgCwoAfGUAIT/eMI/GVIAjqAAHGI5nV1smubcwc9AmpSAeEpAvYT/eMI/mTIN6AgKwOG8WMiOEhBPCaiP8B9P+CdzMt0hFIDDebGQJSUgnhJQD+E/nvBPAWS6QygAL7D7D7lTAuIpAeUT/uMJ/xTiTJjazRoF4CBNkewpAfGUgHIJ//GEfwpjY5cXKAAHeZFQBCUgnhJQHuE/nvBPgTzcfcGp/f39Ax+sVZj+84varwNlEYDiCUBl8NqP57VPwT4zWcw9EQuMADzv8oGPQOaMBMQzEpA/4T+e8E/hjAKsUQCe58VBkZSAeEpAvoT/eMI/FZDx1igAz3v9wEegEEpAPCUgP8J/POGfSlxaTmdn3eyPKACBk+KogRIQTwnIh/AfT/inMqZ6BwrAxxQAqqAExFMC0if8xxP+qZCsFygAH9MKqYYSEE8JSJfwH0/4p1KyXqAAfDT9pz0h7tyBT0DBlIB4SkB6hP94wj8VOxe2fK+eAvARjZAqKQHxlIB0CP/xhH8wDahRAJ5RAKiWEhBPCRif8B9P+Ienqs98jQLwjO0/qZoSEE8JGI/wH0/4h2eqLwCNAvB0/r8XAigBW1EChif8xxP+4TlnZD8FoDEXDD6mBMRTAoYj/McT/uFQCsCBj9Sn+hcBrFMC4ikB/RP+4wn/cKTqs1/VBSAcCX3hwCegckpAPCWgP8J/POEfjnXpuE/WoPYRgOobIBxFCYinBHRP+I8n/MPJal8HoAAAR1IC4ikB3RH+4wn/sDEFoGIKAJxACYinBOxO+I8n/EMUBaBG5v/D5pSAeErA9oT/eMI/RKt6HUDNIwCe/kMEJSCeEhBP+I8n/MN2ltPZxVovXc0FoNqbDttSAuIpAZsT/uMJ/7CTah8GGwEAoigB8ZSAkwn/8YR/2JkCUKHq94CFbSkB8ZSAown/8YR/6IQpQDWpfe9X6IISEE8JOEj4jyf8Q2fOLaezKt98ah0BMP8fOqAExFMCPib8xxP+oXNVZsJaC4ARAOiIEhBPCRD+tyH8Qy+qzIRGAICdKQHxai4Bwn884R96YwSgBuEAsHO1fd/QNyUgXo0lQPiPJ/xDr6rcFKbGEQDTf6AnSkC8mkqA8B9P+If+1XggWI0FwPQf6JESEK+GEiD8xxP+YTAKQAWMAEDPlIB4JZcA4T+e8A+DUgAqYAQABqAExCuxBAj/8YR/GJwCULJw2MOZmr5nGJMSEK+kEiD8xxP+YRTVLQSubQTAbyEYmBIQr4QSIPzHE/5hPLUtBK6tAJj/DyNQAuLlXAKE/3jCP4xOASiY+f8wEiUgXo4lQPiPJ/xDEqp601IAgMEoAfFyKgHCfzzhH5JR1SyR2gqAE4BhZEpAvBxKgPAfT/iHpJgCVKLldGb+PyRCCYiXcgkQ/uMJ/5CcM8vp7Gwtt6WmEQC/mSAhSkC8FEuA8B9P+IdkVTMKoAAAo1EC4qVUAoT/eMI/JE0BKJApQJAgJSBeCiVA+I8n/EPyqnlDMwIAjE4JiDdmCRD+4wn/kAUjAAWyAxAkTAmIN0YJEP7jCf+QDQWgJHYAgjwoAfGGLAHCfzzhH7JyppbbVcsIQDXbOkHulIB4Q5QA4T+e8A/5qeWhcS0FwAnAkBElIF6fJUD4jyf8Q7aqeKOrpQD4rQWZUQLi9VEChP94wj9kTQEoiN9ckCElIF6XJUD4jyf8Q/aqmDViChCQNCUgXhclQPiPJ/xDEapYN1pLAahmVTeUSAmIt0sJEP7jCf9QjEs13MriC4AtQKEMSkC8bUqA8B9P+IeyLKez4kcBajoIDMicEhAvpgQI//GEfyhS8VPHaygARgCgIEpAvE1KgPAfT/iHYhkBAEiNEhCvDfb/6+Y/Na/88deeKwLtv7cfaz8n/G9O+IeiFT8CcGp/f//AB0uynM7u1rKgA2rjqfX2VuXJtYsn/EPx3p4s5tdK/iaNAADZMhKwvTb4C//xhH+ogjUABfD0HwqmBDAU4R8ohREAIHtKAH0T/qEqxT88LroALKczJwBDJZQA+iL8A6UpfQSgiuOcgY8oAXRN+Ic6lf4QWQEAiqIE0BXhH6pWdIYsvQCYAgQVUgLYlfAP1St6mzSLgIEiKQFsS/gHFIC8GQGAiikBxBL+gRpYAwAUTQlgU8I/sOZyyRfDFCCgeEoAJxH+gZqYAgRUQQngKMI/cAhrADJ2pvDvD4igBPAi4R84wrnDP1wGU4CAqigBrAj/QK2KLQCln+AGbE8JQPgHTlJylix5BMAOQMCRlIB6Cf/AhorNkqYAAdVSAuoj/AMoAEDllIB6CP9ApGLPAii5ABR9gAPQHSWgfMI/wMeMAAAoAUUT/oEtWQMAUDoloDzCP7ADuwAB1EAJKIfwD3A4awAAXqAE5E/4BzpwvtSLWHIBKPamAf1TAvIl/AMdOVfqhSy5ABR704BhKAH5Ef4BTmYNAMAxlIB8CP8Am1EAAE6gBKRP+AfYnAIAsAElIF3CP0AcBQBgQ0pAeoR/gHgKAEAEJSAdwj/AdhQAgEhKwPiEf4DtKQAAW1ACxiP8A+xGAQDYkhIwPOEfYHcKAMAOlIDhCP8A3VAAAHakBPRP+AfojgIA0AEloD/CP0C3FACAjqxKwP77H7ikHWmvpfAP0C0FAKBDbVD99T993yXtSHsthX+AbikAAB377Y/fcUk74loCdE8BAOhY+8TaWoDdtdfQ03+A7ikAAABQEQUAoGOnXnutOf3Z8y7rjtpr2F5LALqlAAB07OWvfNkl7YhrCdA9BQCgQ+0T60/+2Tdc0o6019IoAEC3FACAjrRB9dW//Zvm1GuvuqQdaa/lR9dUCQDoigIA0IFV+Df3v3vtNVUCALqjAADsSPjvnxIA0B0FAGAHwv9wlACAbigAAFsS/oenBADsTgEA2ILwPx4lAGA3CgBAJOF/fEoAwPYUAIAIwn86lACA7SgAABsS/tOjBADEUwAANiD8p0sJAIijAACcQPhPnxIAsDkFAOAYwn8+lACAzSgAAEcQ/vOjBAAdelTqxSy5AOwd+AjAhoT/fCkBQEcelnohSy4A9w98BGADwn/+lACgA3dLvYimAAGsEf7LoQQAHM4IAEAg/JdHCQA4qOQC8PjARwCOIPyXSwkAeJ4pQED1hP/yKQHAFqwByFCxNw3ojvBfDyUA4CNGAIBqCf/1UQIArAEAKiX810sJADZUbJY8tb+/f+CDpVhOZ+V+c8DWhH9aT9572Hzw7e80+++/73oAB0wW81MHPlgIU4CAqgj/rBgJAGpVegF4dOAjQLWEf16kBAA1Kr0APDzwEaBKwj9HUQKAQ9w7+KFymAIEFE/45yRKAFCT0guAswCgcsI/m1ICgDVF7yZpBAAolvBPLCUACO6XfCGsAQCKJPyzLSUAKJ0CABRH+GdXSgBUr+gMaQoQUBThn64oAVA1BSBXk8XcImCoiPBP15QAoERGAIAiCP/0RQmA+pT+ELmGAvDgwEeAogj/9E0JAEpSQwEoeh9XqJ3wz1CUAKhG0acAN5UUgKL3cYWaCf/be/Lew6d/iKMEACV4uYK7aAQACiT8x9t//4Pm1//0/ea3P36n2X///af///Y6vvyVLzef/LNvNKdeezWvb2gkqxLwwbe/8+w6AkUp/uGxEQAgO8J/vPZp//+7+mfNh//678+F1vbf24+1nzMisDkjAVC04h8eWwMAZEX4j9cG+5OeVrefa/+OErA5JQCKZQSgAEYAoBDCf7xNwv+KEhBPCYAiFf/w+NT+/v6BD5ZmOZ2V/01C4YT/eDHhf51rHW/baw2kZ7KYnyr9ttRyEFjx2zlByQTSeLsEUiMB8YwEADmppQBYBwCZEv7jdfE0WgmIpwRAEap4aFxLAbAOADIk/MfrciqKEhBPCYDsVfHQuJYC4LcXZEb4j5wpVlwAABkTSURBVNfHPHQlIJ4SAFmr4qGxAgAkR/iP1+ciVCUgnhIA2VIACmIKEGRC+I83xA40SkA8JQCyVMUUoCq2AW0+2gq0vaFnDnwCSIbwH2/o7Sfdo3i2CIV81LAFaFPRCEBjFADSJljGGyNYGgmIZyQAsvGollulAACjE/7jjflUWQmIpwRAFqp5U6upAPhNBQkS/uOlMKVECYinBEDy7tZyi4wAAKMR/uOlNJ9cCYinBEDSjAAUSAGAhAj/8VJcTKoExFMCIFnVZMVqdgFq7AQEyRD+46W+k4x7Gs/uQJCWWnYAaiobAWiMAsD4BMV4OQRFIwHxjARAUh7UdDtqKwDVLO6AFAn/8XJ6SqwExFMCIBlVPSSurQD4rQQjEf7j5ThFRAmIpwRAEhSAgpkCBCMQ/uPlPD9cCYinBMDoFIBSTRZzBQAGJvzHK2FxqBIQTwmAUSkAhbtX4fcMoxD+45W0M4wSEE8JgFE8mizmj2u69DUWAKMAMADhP16J20IqAfGUABhcdZvEKABA54T/eCXvCa8ExFMCYFDVZUMFAOiU8B+vhgOhlIB4SgAMprpsWNVJwCvL6ay+bxoGIPzHq+00WK+ReE4Mhn7VdALwSo0jAI2FwNA9wS5ejcHOSEA8IwHQqyozYa0FwDQg6JDwH6/mp7pKQDwlAHpTZSZUAICdCP/xTOlQArahBEAvqtsBqKm4AFR5s6Frwn884f9jSkA8JQA6V+VD4SoXATcfLQRuD3w4c+ATwEaE/3jC/+G8luJ5LUEn2gPAqnzjqXUEoDEKANsT2OIJbEczEhDPSAB0otosqAAAUYT/eML/yZSAeEoA7EwBqJCFwBBJ+I8n/G9OCYinBMBOqi0A1a4BaBwIBlGE/3jC/3a81uJ5rUG0auf/N5WPADQOBIPNCGTxBLLtGQmIZyQAolU9Fbz2AmAdAJxA+I8n/O9OCYinBEAUBaBiCgAcQ/iPJ/x3RwmIpwTAxqrOgFWvAWisA4AjCf/xhP9+eC3G81qEY1U9/78xAvCUdQDwAoErnsDVHyMB8YwEwLGqnwGiAHgRwHOE/3jCf/+UgHhKAByp+uynAHgRwDPCfzzhfzhKQDwlAA51+7AP1qT6NQDNR+sAHjdNc+bAJ6Aiwn884X8cXqvxvFbhmQeTxfxi7ZfDCMBHjAJQNYEqnkA1HiMB8YwEwDPVZ75GAXjGi4FqCf/xhP/xKQHxlAB4qvrpP40C8IwCQJWE/3jCfzqUgHhKAJXbmyzm1We+RgH4yGQxv9/uCXvgE1Aw4T+e8J8eJSCeEkDFhP9AAfiYFwXVEP7jCf/pUgLiKQFUyvSfQAH4mBcFVRD+4wn/6VMC4ikBVMjD3kAB+JgXBcUT/uMJ//lQAuIpAVSk3f7Tm0OgAASTxbw9C+DegU9AIYT/eMJ/fpSAeEoAlfCgd40C8DzTgCiS8B9P+M+XEhBPCaACN93kjykAz1MAKI7wH0/4z58SEE8JoGB7YcdHAgVgTZgbZjtQiiH8xxP+y6EExFMCKJQHvC9QAA7yIqEIwn884b88SkA8JYACyXYvUAAOMkeM7An/8YT/cikB8ZQASjJZzBWAFygALwhzxPYOfAIyIfzHE/7LpwTEUwIoxB038iAF4HCaIlkS/uMJ//VQAuIpARRApjuEAnA4LxayI/zHE/7rowTEUwLInEx3CAXgEGGumGlAZEP4jyf810sJiKcEkKk74aBXXqAAHE1jJAvCfzzhHyUgnhJAhmS5IygAR/OiIXnCfzzhnxUlIJ4SQGZkuSMoAEcwDYjUCf/xhH9epATEUwLIhOk/x1AAjqc5kiThP57wz1GUgHhKABmQ4Y6hABzPi4fkCP/xhH9OogTEUwJInAx3DAXgGKYBkRrhP57wz6aUgHhKAIky/ecECsDJNEiSIPzHE/6JpQTEUwJIkOx2AgXgZDdT/wIpn/AfT/hnW0pAPCWAhOwpACdTAE4wWczvNk3z6Pi/Bf169a//SviPIPyzKyUg3tMS8Nd/lduXTXlum/5zMgVgM5oko/nEla83p7/wOTdgQ8I/XVEC4rXvVe17FoxIZtuAArCZGzl8kZSnHU7/vT/9E3d2Q8I/XVMC4rXvWaYCMZK9sIELJ1AANjBZzNt3/gfJf6EU5+WvfLk59dqrbuwGhH/6ogTEad+z2vcuGIF1mxtSADbnRcXgXvlDv0Q3IfzTNyUgjvcuRiKrbUgB2JwXFYM7/YXPu+gnEP4ZihKwOe9djODBZDG/78JvRgHYUFhRfiuLL5ZimP5zPOGfoSkBm/HexQg8qI2gAMSxsITBnP7sZ1zsYwj/jEUJ2Iz3MAamAERQACKEleXOBGAQv/vPX7rQRxD+GZsScDLvYQzojr3/4ygA8TRMBiHcHk74JxVKwPH8jDIg2SySAhDPi4zB/O6X/+VirxH+SY0ScDjvXQzokb3/4ykAkcKZAHey+qLJ1pP/+JmbFwj/pEoJOOi3P3nnwMegJx7MbkEB2I4XG4P4ze0futDCPxlQAp734b/++4GPQU9ksi0oAFuwGJihPHnvF82Td39e9fUW/smFEvCR9j2rfe+CAdwJMzOIpABsT+NkEL/+x+9Xe6GFf3KjBNT9nsXgZLEtKQDb86JjEO2TtF997x+qu9jCP7mquQS071We/jMQi393oABsKQw5ORmYQbTzaT/8tx9Vc7GFf3JXYwlo36PM/WdAHsTuQAHYjRcfg/nV3/19FSVA+KcUNZWA9r2pfY+CAd1wsbenAOxgspjfbZrmQbbfANkpvQQI/5SmhhIg/DOCW07+3Y0CsDsNlEGVWgKEf0pVcgkQ/hmJGRg7OrW/v5/1N5CC5XTWttAztV8HhvWp//2XzSt/9NUirrrwTw1OvfZa8+rf/k1z+rPni/huhX9G8mCymF908XdjBKAbRgEYXCkjAcI/tShpJED4Z0QyVwcUgG54MTKK3EuA8E9tSigBwj8j2pss5qb/dEAB6EBYiGJLUEaRawkQ/qlVziVA+GdkHrh2RAHozvVSvhHyk1sJEP6pXY4lQPgnAQpARxSAjoSDwe4V8c2QpVxKgPAPH8mpBAj/JMDWnx1SALplFIBRpV4ChH94Xg4lQPgnETJWhxSADoWDwYwCMKpUS4DwD4dLuQQI/yTiTphpQUcUgO5Znc7oUisBwj8cL8USIPyTEHP/O+YgsB4sp7P2Hfxccd8Y2UnhsDDhHzaXymFhwj8JuTdZzC+7Id0yAtAP89RIwtgjAcI/xElhJED4JzGe/vfACEBPjAKQkjFGAoR/2N5YIwHCP4l5NFnMxx0OK5QRgP4YBSAZQ48ECP+wmzFGAoR/EiRL9cQIQI+MApCaIUYChH/ozlAjAcI/CfL0v0dGAPqluZKUvkcChH/o1hAjAcI/iZKhemQEoGdGAUhRHyMBwj/0p6+RAOGfRHn63zMjAP3TYElO1yMBwj/0q4+RAOGfhMlOPTMCMACjAKSqi5EA4R+G09VIgPBPwjz9H4ARgGFosiSpDQC/+t4/bP2lPXn358I/DOjZSMC7P9/6P9r+zAv/JExmGoARgIEYBSBlpz/7meaTf/6N5vQXPrfRV7n//gfN//zzvzS/uf3DA58DhvGJK19vfu9P/6Q59dqrG/332tLw63/8fvPkvV8c+BwkwtP/gSgAA1lOZ1ebpvlBFd8s2WqLQBsqTn/x881Ln/79576NNvQ/efdnzYc/eaf57Y/f8dQfEtBOCXr5K19uXvnDLzenv/D5A2Xgd7/8r+bJf/zsaVkX/MnAm5PF/KYb1T8FYEBGAchNGy5e+oNPCw6QkbbI/+4/f6mkkxtP/wdkDcCwrtX0zZK/NkAI/5CX9mdW+CdD5v4PyAjAwJbT2d2maS5V9U0DABzN0/+BGQEYnoYLAPAxMyQGZgRgBEYBAACeujdZzC+7FMMyAjCOqzV+0wAALzAzYgQKwAgmi3m7G9Ct6r5xAICPtU//77oew1MAxtPOd9ur9ZsHAKpnRsRIFICRTBbzx03T3KjymwcAancrzIhgBArAuNoC8KjmCwAAVGfPzj/jUgBGFEYBLH4BAGpyI2QgRqIAjGyymN9sF8FUfREAgFo8MgV6fApAGowCAAA1uO7p//gUgASELbBsCwoAlOxemPnAyBSAdNgWFAAomRkPiVAAEmFBMABQsFsO/UqHApCQyWLeLop5UPt1AACKYtvPxCgA6fEDAgCUxMLfxJza39+v/RokZzmdtQtk3qj9OgAA2XswWcwvuo1pMQKQJguCAYASmNmQIAUgQRYEAwAFsPA3UQpAosKCYCcEAwA5svA3YQpA2vzgAAA5umbhb7oUgIRNFvP7TdO8Vft1AACy4sTfxCkAiZss5u1agEe1XwcAIBtX3aq0KQB58IMEAOTgrcli/tCdSptzADKxnM7aRcHfrP06AADJsud/JowA5MNUIAAgZTYvyYQCkImwkt5UIAAgRW/b8z8fCkBGwg/W27VfBwAgKY8cYJoXBSA/pgIBACm5as//vCgAmTEVCABIiKk/GVIAMmQqEACQAFN/MqUA5MtUIABgTKb+ZEoByJSpQADAiEz9yZgCkLHwg/dW7dcBABhUe+CXPf8zpgBkbrKYt1OBHtR+HQCAwZiBkDkFoAztD+Je7RcBAOjdW5PF/L7LnLdT+/v7tV+DIiyns3Yo7nu1XwcAoDf3Jov5ZZc3f0YACjFZzG80TXOn9usAAPRiz9SfcigAZTEVCADoQ7vl50NXtgwKQEHC1qBXar8OAECnbk0W89suaTkUgMI4JRgA6FC706AtPwtjEXChltNZu0L/Qu3XAQDYWjut+LJdf8pjBKBcV6wHAAB2cE34L5MCUKiwUMdqfQBgG+28/5uuXJkUgIKFBTvWAwAAMcz7L5w1ABWwHgAA2JB5/xUwAlAH6wEAgE2Y918BBaAC1gMAABsw778SCkAlwnqAt2q/DgDAoR5MFnMPCyuhAFRksphfb5rmXu3XAQB4zl6YLkwlFID6tD/gj2q/CADAM1fCdGEqoQBUZrKYP7YoGAAIvjVZzO+6GHVRACoUVvfb3xcA6tYu+r1R+0WokQJQqbDK3yFhAFAnh31VzEFglVtOZ+2w36XarwMAVKSdBnw+TAumQkYAsCgYAOqxOulX+K+YAlA5i4IBoCpO+kUB4NmiYId/AEDZ3nLSL40CwEo4KfhbLggAFOlWOBAUFAA+FrYCu+WSAEBR7PjDc+wCxAHL6aydEnThwCcAgNy0G31ctOiXdUYAOMzl8LQAAMhXu8HHFeGfFxkB4FDL6exi0zTtGQFnDvs8AJC8L9nxh8MYAeBQ4Q3jsu1BASBLbwr/HEUB4EjhjcOiIQDIy5u2++Q4CgDHCm8gbx73dwCAZNwS/jmJAsCJwhuJ7UEBIG1t+HewJyeyCJiNLaeztgi84YoBQHLuTBbzK24LmzACwMbCU4V7rhgAJKXdutuTfzamABDrijMCACAZ7e/ky/b6J4YCQJTwBuOgMAAYn/DPVqwBYCvL6exs0zQPHRQGAKNoz+m5OFnMH7r8xDICwFbWRgIcFAYAw9oLT/6Ff7aiALA1pwUDwOBW4d8pv2xNAWAnSgAADEb4pxMKADtTAgCgd8I/nVEA6ER4Q3IACQB0T/inUwoAnZks5nebpnnTFQWAzgj/dE4BoFOTxfymEgAAnRD+6YUCQOeUAADYmfBPbxQAeqEEAMDWhH96pQDQGyUAAKIJ//ROAaBXSgAAbEz4ZxAKAL1bKwHOCQCAwwn/DObU/v6+q80gltPZxaZp2q1Cz7jiAPDMo/YsHeGfoSgADEoJAIDnPAhP/h+7LAzFFCAGFZ5uXDYdCACEf8ahADA4JQAAhH/GowAwirUS8MAdAKAyt4R/xmQNAKNaTmdnw5qAC+4EABW4NVnMr7rRjMkIAKMKTz+MBABQg7eFf1KgADC6tRJwy90AoFBvThbza24uKTAFiKQsp7P20LA33BUACtFueHEtHIoJSVAASM5yOrveNM133RkAMud0X5JkChDJmSzmbQF4050BIGMPhH9SZQSAZC2ns3ZdwG2nBgOQGXv8kzQFgKQtp7OLoQScc6cAyIBtPkmeKUAkLQydXrRNKAAZeEv4JwcKAMmzTSgAidsL23xed6PIgSlAZGU5nd1omuab7hoAibDTD9kxAkBWwiEqb4Y3XAAYUzs99bzwT24UALITDlO5rAQAMKJbdvohV6YAka3ldHa2aZq7TdNccBcBGNC3Jov5DRecXCkAZG85nbUjAm+4kwD0rB15vjJZzO+60OTMFCCyF7Zcc3IwAH1q5/tfFP4pgQJAEcK6gC9ZFwBAD1bz/R+6uJTAFCCKYl0AAB0z35/iKAAUyXkBAOzI/v4UyxQgihTOC5iZEgTAFu7Z35+SGQGgaMvp7HzTNLdNCQJgQ29NFvPrLhYlUwCogilBAJzAFp9UQwGgGsvp7ErTNO1uQWfcdQDW3Avh36m+VEEBoCqmBAHwAlN+qI4CQJWW01n7Zv9ddx+gWqb8UC0FgGotp7PLYUrQOa8CgKrcaZrmqik/1EoBoGrh4LC2BLxe+7UAqED71P+6g72onQIAHxWBq03T3LBAGKBYD8JTf3v7Uz0FAIKwQLgdDbjkmgAU5e1wQCRUr1EA4KDldNb+krhuNAAge4/CU38LfWGNAgCHWE5nF8NogO1CAfJ0q2maaxb6wkEKABzDdqEA2dkLT/1vu3VwOAUAThBGA25YGwCQPNt7wgYUANiQtQEAyfLUHyIoABDBTkEAyTHXHyIpALAF5wYAjM4OP7Cll1w4iDdZzNtRgPPhyRMAw3q7aZqLwj9sxwgA7Gg5nV0O04LOuZYAvXKaL3RAAYCOhC1Dr5kWBNC5dpHvjclift2lhd0pANChsEi4XRvwuusK0Ik7YZHvQ5cTuqEAQA9MCwLYmUW+0BMFAHpkWhBAtL0wknrD1p7QDwUAeraczs6GX2ZvuNYAxzLdBwagAMBAwrSg6w4RAzjAdB8YkAIAAwuHiF23PgDg6XSf65PF/IZLAcNRAGAk1gcAlXs7hH/z/GFgCgCMKKwPaEvAd90HoBLm+cPIFABIQDg/4LqFwkDB7oUn/ub5w8gUAEhIKAI3LRQGCvIoPPG/7aZCGhQASJAdg4ACPApP/G+6mZAWBQASpggAGdoLh3hdd/MgTQoAZEARADLgBF/IhAIAGVEEgAQJ/pAZBQAypAgACRD8IVMKAGRMEQBGIPhD5hQAKMByOrsYDhRzjgDQl0dhm2LBHzKnAEBBHCgG9MB2nlAYBQAKtJzOzoYRgfbPGfcY2EJ7cu9NwR/KowBAwUIRuBJGBc6518AG7oRpPnddLCiTAgCVWE5nV8KIgAXDwIvahb23w1Sfhwc+CxRFAYDKrK0TuGJ6EFTvUdjR56aFvVAPBQAqFaYHXQ2jAqYHQV3uhWk+t913qI8CAKymB7Vl4HVXA4q1t7aNp2k+UDEFAHgmTA+6Gv4YFYAyPAih324+wFMKAHAoowKQtdXT/nZu/323ElinAADHMioAWWm38LztaT9wHAUA2NhyOrscioAdhCAdq518bpvbD2xCAQCirR0wdtW5AjCK1b79N0zxAWIpAMBOwhShVRm44GpCb1ah/7btO4FdKABAZ5bT2cW1KULWC0A3zOsHOqUAAL1QBmAnd9ae9juhF+iUAgD0ThmAE5neAwxGAQAGFcrAZWsG4OnuPW3Yvyv0A0NSAIDRhAXEl8PIgAPHqMGDcEDXXbv3AGNRAIBkhNOHL5sqREHap/x3wx/z+YEkKABAkta2F70c/jh4jFzcWYV+T/mBFCkAQBbCKcSrPw4fIyX31gL/XXcGSJ0CAGRJIWBEAj+QNQUAKMILheCiKUN0ZG9tDv99gR8ogQIAFClsN3pxrRDYcpRNtE/374c/7RP+h64aUBoFAKjCcjo7+0IhuGinoeqtwv5DC3aBmigAQLXWSsH6HyMF5dlbPdEPYf++sA/UTAEAeEGYPnR+rRScVwyysLc2fefh6t/tvQ/wPAUAYEOhGJwN04jOr/0xlWhY7dSdx2tB/6GgD7A5BQCgA2vl4LB/2pEozr3wt++vBf3HQj5ANxQAgAGEk43Ph//S5fDP9Y/VUBQehaf1TZiP36w9wX9sXj7AMBQAgMS8UBaatVGFZm10IZWpR+uhfvWkvlkL+II9QGIUAAAAqMhLbjYAANRDAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABARRQAAACoiAIAAAAVUQAAAKAiCgAAAFREAQAAgIooAAAAUBEFAAAAKqIAAABALZqm+f83pKgRzTuhLQAAAABJRU5ErkJggg==\n "],[1,"h3-error-message"],[1,"message-text-center"]],template:function(t,e){1&t&&(i.Sb(0,"div",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Nb(3,"img",3),i.Sb(4,"h3",4),i.Dc(5,"Error message"),i.Rb(),i.Sb(6,"span",5),i.Dc(7,"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s"),i.Rb(),i.Rb(),i.Rb(),i.Rb())},styles:[""]}),t})();var u=n("AYtA"),d=n("tyNb"),p=n("ofXK"),f=n("3ljP");function g(t,e){1&t&&(i.Sb(0,"p"),i.Dc(1),i.ec(2,"lang"),i.Rb()),2&t&&(i.Bb(1),i.Ec(i.fc(2,1,"CALLBACKWORK")))}function m(t,e){1&t&&(i.Sb(0,"p"),i.Dc(1,"Loading..."),i.Rb())}function b(t,e){if(1&t&&(i.Sb(0,"p",2),i.Dc(1),i.Rb()),2&t){const t=i.dc();i.Bb(1),i.Fc(" ",t.STRING_userNotFound(),"\n")}}let _=(()=>{class t{constructor(t,e,n){this.apiCaller=t,this.route=e,this.router=n,this.visibleErrorMex=!1}setToken(t=null){s.a.token.set(t);let e=s.a.getDecodedAccessToken(s.a.token.get());return localStorage.setItem("getUserForLogin",e.sub.toUpperCase()),this.apiCaller.getUserForLogin(e.networkid).then(t=>{s.a.loggedUser.set(t)}),e.sub}urlRedirect(t){s.a.requestedUrl.delete(),null==t?s.a.loggedUser.get().permissions.includes("manager.list")?this.router.navigate(["/backOffice/manager/list"]):s.a.loggedUser.get().permissions.includes("manager.detail.readonly")?this.router.navigate(["manager/"+s.a.loggedUser.get().networkId]):s.a.loggedUser.get().permissions.includes("seg.peoplePicker")?this.router.navigate(["/peoplePicker/manager/list"]):this.visibleErrorMex=!0:location.href=t}STRING_userNotFound(){return navigator.language.indexOf("it")>-1?"Utente ("+localStorage.getItem("getUserForLogin")+") non trovato":"User ("+localStorage.getItem("getUserForLogin")+") not found"}userNotFound(){return"true"===localStorage.getItem("userNotFound")}ngOnInit(){let t;this.route.queryParams.subscribe(e=>{t=e.code}),t?this.apiCaller.getToken(t).then(t=>{s.a.token.set(t);let e=s.a.getDecodedAccessToken(s.a.token.get());localStorage.setItem("getUserForLogin",e.sub.toUpperCase()),this.apiCaller.getUserForLogin(e.sub.toUpperCase()).then(t=>{s.a.loggedUser.set(t),this.apiCaller.getLang().then(t=>{s.a.language.set(t.langLabels),this.urlRedirect(s.a.requestedUrl.get().substring(0,s.a.requestedUrl.get().indexOf("?googleIdp")))})}).catch(t=>{throw t})}).catch(t=>{throw t}):this.urlRedirect(null)}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(u.a),i.Mb(d.a),i.Mb(d.c))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-call-back"]],decls:3,vars:3,consts:[[4,"ngIf"],["style","font-size: x-large; color: black; text-align: center",4,"ngIf"],[2,"font-size","x-large","color","black","text-align","center"]],template:function(t,e){1&t&&(i.Cc(0,g,3,3,"p",0),i.Cc(1,m,2,0,"p",0),i.Cc(2,b,2,1,"p",1)),2&t&&(i.jc("ngIf",e.visibleErrorMex&&!e.userNotFound()),i.Bb(1),i.jc("ngIf",!e.visibleErrorMex&&!e.userNotFound()),i.Bb(1),i.jc("ngIf",!e.visibleErrorMex&&e.userNotFound()))},directives:[p.l],pipes:[f.a],styles:[""]}),t})();var y=n("gfpf"),v=n("LgUO");class w extends v.a{constructor(){super(...arguments),this.allowedAlgorithms=["HS256","HS384","HS512","RS256","RS384","RS512","ES256","ES384","PS256","PS384","PS512"],this.gracePeriodInSec=600}validateSignature(t,e=!1){if(!t.idToken)throw new Error("Parameter idToken expected!");if(!t.idTokenHeader)throw new Error("Parameter idTokenHandler expected.");if(!t.jwks)throw new Error("Parameter jwks expected!");if(!t.jwks.keys||!Array.isArray(t.jwks.keys)||0===t.jwks.keys.length)throw new Error("Array keys in jwks missing!");let n,i=t.idTokenHeader.kid,s=t.jwks.keys,r=t.idTokenHeader.alg;if(i)n=s.find(t=>t.kid===i);else{let t=this.alg2kty(r),e=s.filter(e=>e.kty===t&&"sig"===e.use);if(e.length>1){let t="More than one matching key found. Please specify a kid in the id_token header.";return console.error(t),Promise.reject(t)}1===e.length&&(n=e[0])}if(!n&&!e&&t.loadKeys)return t.loadKeys().then(e=>t.jwks=e).then(e=>this.validateSignature(t,!0));if(!n&&e&&!i){let t="No matching key found.";return console.error(t),Promise.reject(t)}if(!n&&e&&i){let t="expected key not found in property jwks. This property is most likely loaded with the discovery document. Expected key id (kid): "+i;return console.error(t),Promise.reject(t)}let o=y.KEYUTIL.getKey(n);return y.KJUR.jws.JWS.verifyJWT(t.idToken,o,{alg:this.allowedAlgorithms,gracePeriod:this.gracePeriodInSec})?Promise.resolve():Promise.reject("Signature not valid")}alg2kty(t){switch(t.charAt(0)){case"R":return"RSA";case"E":return"EC";default:throw new Error("Cannot infer kty from alg: "+t)}}calcHash(t,e){let n=new y.KJUR.crypto.MessageDigest({alg:e}).digestString(t),i=this.toByteArrayAsString(n);return Promise.resolve(i)}toByteArrayAsString(t){let e="";for(let n=0;n{class t{constructor(t,e){this.oauthService=t,this.apiCaller=e}ngOnInit(){s.a.loggedUser.delete(),s.a.token.delete(),localStorage.removeItem("getUserForLogin"),localStorage.setItem("styleStatus","false");const t="true"==localStorage.getItem("googleIdp");localStorage.removeItem("googleIdp"),this.apiCaller.getAdfsConnection().then(e=>{let n;n=""!=e.scope?{issuer:e.issuer,loginUrl:e.loginUrl,redirectUri:e.redirectUri,clientId:e.clientId,resource:e.resource,tokenEndpoint:e.tokenEndpoint,showDebugInformation:!0,responseType:"code",scope:e.scope}:{issuer:e.issuer,loginUrl:e.loginUrl,redirectUri:e.redirectUri,clientId:e.clientId,resource:e.resource,tokenEndpoint:e.tokenEndpoint,showDebugInformation:!0,responseType:"code",scope:e.scope,oidc:!1},s.a.loggedUser.delete(),s.a.token.delete(),localStorage.removeItem("getUserForLogin"),this.oauthService.configure(n),this.oauthService.tokenValidationHandler=new w;let i=location.href.indexOf("localhost")>-1||location.href.indexOf("test")>-1?"C021ycgty":"C00sqgl87";this.oauthService.customQueryParams=t?{RedirectToIdentityProvider:"https://accounts.google.com/o/saml2?idpid="+i}:{RedirectToIdentityProvider:"AD+AUTHORITY"},this.oauthService.initLoginFlow()}).catch(t=>{console.log(t)})}get name(){return this.oauthService.getIdentityClaims()||null}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(v.c),i.Mb(u.a))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-login"]],decls:0,vars:0,template:function(t,e){},styles:[""]}),t})(),A=(()=>{class t{constructor(t){this.oauthService=t}ngOnInit(){}get name(){return this.oauthService.getIdentityClaims()||null}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(v.c))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-login2"]],decls:378,vars:0,template:function(t,e){1&t&&(i.Sb(0,"p"),i.Dc(1,"login2 works!"),i.Rb(),i.Sb(2,"p"),i.Dc(3,"login2 works!"),i.Rb(),i.Sb(4,"p"),i.Dc(5,"login2 works!"),i.Rb(),i.Sb(6,"p"),i.Dc(7,"login2 works!"),i.Rb(),i.Sb(8,"p"),i.Dc(9,"login2 works!"),i.Rb(),i.Sb(10,"p"),i.Dc(11,"login2 works!"),i.Rb(),i.Sb(12,"p"),i.Dc(13,"login2 works!"),i.Rb(),i.Sb(14,"p"),i.Dc(15,"login2 works!"),i.Rb(),i.Sb(16,"p"),i.Dc(17,"login2 works!"),i.Rb(),i.Sb(18,"p"),i.Dc(19,"login2 works!"),i.Rb(),i.Sb(20,"p"),i.Dc(21,"login2 works!"),i.Rb(),i.Sb(22,"p"),i.Dc(23,"login2 works!"),i.Rb(),i.Sb(24,"p"),i.Dc(25,"login2 works!"),i.Rb(),i.Sb(26,"p"),i.Dc(27,"login2 works!"),i.Rb(),i.Sb(28,"p"),i.Dc(29,"login2 works!"),i.Rb(),i.Sb(30,"p"),i.Dc(31,"login2 works!"),i.Rb(),i.Sb(32,"p"),i.Dc(33,"login2 works!"),i.Rb(),i.Sb(34,"p"),i.Dc(35,"login2 works!"),i.Rb(),i.Sb(36,"p"),i.Dc(37,"login2 works!"),i.Rb(),i.Sb(38,"p"),i.Dc(39,"login2 works!"),i.Rb(),i.Sb(40,"p"),i.Dc(41,"login2 works!"),i.Rb(),i.Sb(42,"p"),i.Dc(43,"login2 works!"),i.Rb(),i.Sb(44,"p"),i.Dc(45,"login2 works!"),i.Rb(),i.Sb(46,"p"),i.Dc(47,"login2 works!"),i.Rb(),i.Sb(48,"p"),i.Dc(49,"login2 works!"),i.Rb(),i.Sb(50,"p"),i.Dc(51,"login2 works!"),i.Rb(),i.Sb(52,"p"),i.Dc(53,"login2 works!"),i.Rb(),i.Sb(54,"p"),i.Dc(55,"login2 works!"),i.Rb(),i.Sb(56,"p"),i.Dc(57,"login2 works!"),i.Rb(),i.Sb(58,"p"),i.Dc(59,"login2 works!"),i.Rb(),i.Sb(60,"p"),i.Dc(61,"login2 works!"),i.Rb(),i.Sb(62,"p"),i.Dc(63,"login2 works!"),i.Rb(),i.Sb(64,"p"),i.Dc(65,"login2 works!"),i.Rb(),i.Sb(66,"p"),i.Dc(67,"login2 works!"),i.Rb(),i.Sb(68,"p"),i.Dc(69,"login2 works!"),i.Rb(),i.Sb(70,"p"),i.Dc(71,"login2 works!"),i.Rb(),i.Sb(72,"p"),i.Dc(73,"login2 works!"),i.Rb(),i.Sb(74,"p"),i.Dc(75,"login2 works!"),i.Rb(),i.Sb(76,"p"),i.Dc(77,"login2 works!"),i.Rb(),i.Sb(78,"p"),i.Dc(79,"login2 works!"),i.Rb(),i.Sb(80,"p"),i.Dc(81,"login2 works!"),i.Rb(),i.Sb(82,"p"),i.Dc(83,"login2 works!"),i.Rb(),i.Sb(84,"p"),i.Dc(85,"login2 works!"),i.Rb(),i.Sb(86,"p"),i.Dc(87,"login2 works!"),i.Rb(),i.Sb(88,"p"),i.Dc(89,"login2 works!"),i.Rb(),i.Sb(90,"p"),i.Dc(91,"login2 works!"),i.Rb(),i.Sb(92,"p"),i.Dc(93,"login2 works!"),i.Rb(),i.Sb(94,"p"),i.Dc(95,"login2 works!"),i.Rb(),i.Sb(96,"p"),i.Dc(97,"login2 works!"),i.Rb(),i.Sb(98,"p"),i.Dc(99,"login2 works!"),i.Rb(),i.Sb(100,"p"),i.Dc(101,"login2 works!"),i.Rb(),i.Sb(102,"p"),i.Dc(103,"login2 works!"),i.Rb(),i.Sb(104,"p"),i.Dc(105,"login2 works!"),i.Rb(),i.Sb(106,"p"),i.Dc(107,"login2 works!"),i.Rb(),i.Sb(108,"p"),i.Dc(109,"login2 works!"),i.Rb(),i.Sb(110,"p"),i.Dc(111,"login2 works!"),i.Rb(),i.Sb(112,"p"),i.Dc(113,"login2 works!"),i.Rb(),i.Sb(114,"p"),i.Dc(115,"login2 works!"),i.Rb(),i.Sb(116,"p"),i.Dc(117,"login2 works!"),i.Rb(),i.Sb(118,"p"),i.Dc(119,"login2 works!"),i.Rb(),i.Sb(120,"p"),i.Dc(121,"login2 works!"),i.Rb(),i.Sb(122,"p"),i.Dc(123,"login2 works!"),i.Rb(),i.Sb(124,"p"),i.Dc(125,"login2 works!"),i.Rb(),i.Sb(126,"p"),i.Dc(127,"login2 works!"),i.Rb(),i.Sb(128,"p"),i.Dc(129,"login2 works!"),i.Rb(),i.Sb(130,"p"),i.Dc(131,"login2 works!"),i.Rb(),i.Sb(132,"p"),i.Dc(133,"login2 works!"),i.Rb(),i.Sb(134,"p"),i.Dc(135,"login2 works!"),i.Rb(),i.Sb(136,"p"),i.Dc(137,"login2 works!"),i.Rb(),i.Sb(138,"p"),i.Dc(139,"login2 works!"),i.Rb(),i.Sb(140,"p"),i.Dc(141,"login2 works!"),i.Rb(),i.Sb(142,"p"),i.Dc(143,"login2 works!"),i.Rb(),i.Sb(144,"p"),i.Dc(145,"login2 works!"),i.Rb(),i.Sb(146,"p"),i.Dc(147,"login2 works!"),i.Rb(),i.Sb(148,"p"),i.Dc(149,"login2 works!"),i.Rb(),i.Sb(150,"p"),i.Dc(151,"login2 works!"),i.Rb(),i.Sb(152,"p"),i.Dc(153,"login2 works!"),i.Rb(),i.Sb(154,"p"),i.Dc(155,"login2 works!"),i.Rb(),i.Sb(156,"p"),i.Dc(157,"login2 works!"),i.Rb(),i.Sb(158,"p"),i.Dc(159,"login2 works!"),i.Rb(),i.Sb(160,"p"),i.Dc(161,"login2 works!"),i.Rb(),i.Sb(162,"p"),i.Dc(163,"login2 works!"),i.Rb(),i.Sb(164,"p"),i.Dc(165,"login2 works!"),i.Rb(),i.Sb(166,"p"),i.Dc(167,"login2 works!"),i.Rb(),i.Sb(168,"p"),i.Dc(169,"login2 works!"),i.Rb(),i.Sb(170,"p"),i.Dc(171,"login2 works!"),i.Rb(),i.Sb(172,"p"),i.Dc(173,"login2 works!"),i.Rb(),i.Sb(174,"p"),i.Dc(175,"login2 works!"),i.Rb(),i.Sb(176,"p"),i.Dc(177,"login2 works!"),i.Rb(),i.Sb(178,"p"),i.Dc(179,"login2 works!"),i.Rb(),i.Sb(180,"p"),i.Dc(181,"login2 works!"),i.Rb(),i.Sb(182,"p"),i.Dc(183,"login2 works!"),i.Rb(),i.Sb(184,"p"),i.Dc(185,"login2 works!"),i.Rb(),i.Sb(186,"p"),i.Dc(187,"login2 works!"),i.Rb(),i.Sb(188,"p"),i.Dc(189,"login2 works!"),i.Rb(),i.Sb(190,"p"),i.Dc(191,"login2 works!"),i.Rb(),i.Sb(192,"p"),i.Dc(193,"login2 works!"),i.Rb(),i.Sb(194,"p"),i.Dc(195,"login2 works!"),i.Rb(),i.Sb(196,"p"),i.Dc(197,"login2 works!"),i.Rb(),i.Sb(198,"p"),i.Dc(199,"login2 works!"),i.Rb(),i.Sb(200,"p"),i.Dc(201,"login2 works!"),i.Rb(),i.Sb(202,"p"),i.Dc(203,"login2 works!"),i.Rb(),i.Sb(204,"p"),i.Dc(205,"login2 works!"),i.Rb(),i.Sb(206,"p"),i.Dc(207,"login2 works!"),i.Rb(),i.Sb(208,"p"),i.Dc(209,"login2 works!"),i.Rb(),i.Sb(210,"p"),i.Dc(211,"login2 works!"),i.Rb(),i.Sb(212,"p"),i.Dc(213,"login2 works!"),i.Rb(),i.Sb(214,"p"),i.Dc(215,"login2 works!"),i.Rb(),i.Sb(216,"p"),i.Dc(217,"login2 works!"),i.Rb(),i.Sb(218,"p"),i.Dc(219,"login2 works!"),i.Rb(),i.Sb(220,"p"),i.Dc(221,"login2 works!"),i.Rb(),i.Sb(222,"p"),i.Dc(223,"login2 works!"),i.Rb(),i.Sb(224,"p"),i.Dc(225,"login2 works!"),i.Rb(),i.Sb(226,"p"),i.Dc(227,"login2 works!"),i.Rb(),i.Sb(228,"p"),i.Dc(229,"login2 works!"),i.Rb(),i.Sb(230,"p"),i.Dc(231,"login2 works!"),i.Rb(),i.Sb(232,"p"),i.Dc(233,"login2 works!"),i.Rb(),i.Sb(234,"p"),i.Dc(235,"login2 works!"),i.Rb(),i.Sb(236,"p"),i.Dc(237,"login2 works!"),i.Rb(),i.Sb(238,"p"),i.Dc(239,"login2 works!"),i.Rb(),i.Sb(240,"p"),i.Dc(241,"login2 works!"),i.Rb(),i.Sb(242,"p"),i.Dc(243,"login2 works!"),i.Rb(),i.Sb(244,"p"),i.Dc(245,"login2 works!"),i.Rb(),i.Sb(246,"p"),i.Dc(247,"login2 works!"),i.Rb(),i.Sb(248,"p"),i.Dc(249,"login2 works!"),i.Rb(),i.Sb(250,"p"),i.Dc(251,"login2 works!"),i.Rb(),i.Sb(252,"p"),i.Dc(253,"login2 works!"),i.Rb(),i.Sb(254,"p"),i.Dc(255,"login2 works!"),i.Rb(),i.Sb(256,"p"),i.Dc(257,"login2 works!"),i.Rb(),i.Sb(258,"p"),i.Dc(259,"login2 works!"),i.Rb(),i.Sb(260,"p"),i.Dc(261,"login2 works!"),i.Rb(),i.Sb(262,"p"),i.Dc(263,"login2 works!"),i.Rb(),i.Sb(264,"p"),i.Dc(265,"login2 works!"),i.Rb(),i.Sb(266,"p"),i.Dc(267,"login2 works!"),i.Rb(),i.Sb(268,"p"),i.Dc(269,"login2 works!"),i.Rb(),i.Sb(270,"p"),i.Dc(271,"login2 works!"),i.Rb(),i.Sb(272,"p"),i.Dc(273,"login2 works!"),i.Rb(),i.Sb(274,"p"),i.Dc(275,"login2 works!"),i.Rb(),i.Sb(276,"p"),i.Dc(277,"login2 works!"),i.Rb(),i.Sb(278,"p"),i.Dc(279,"login2 works!"),i.Rb(),i.Sb(280,"p"),i.Dc(281,"login2 works!"),i.Rb(),i.Sb(282,"p"),i.Dc(283,"login2 works!"),i.Rb(),i.Sb(284,"p"),i.Dc(285,"login2 works!"),i.Rb(),i.Sb(286,"p"),i.Dc(287,"login2 works!"),i.Rb(),i.Sb(288,"p"),i.Dc(289,"login2 works!"),i.Rb(),i.Sb(290,"p"),i.Dc(291,"login2 works!"),i.Rb(),i.Sb(292,"p"),i.Dc(293,"login2 works!"),i.Rb(),i.Sb(294,"p"),i.Dc(295,"login2 works!"),i.Rb(),i.Sb(296,"p"),i.Dc(297,"login2 works!"),i.Rb(),i.Sb(298,"p"),i.Dc(299,"login2 works!"),i.Rb(),i.Sb(300,"p"),i.Dc(301,"login2 works!"),i.Rb(),i.Sb(302,"p"),i.Dc(303,"login2 works!"),i.Rb(),i.Sb(304,"p"),i.Dc(305,"login2 works!"),i.Rb(),i.Sb(306,"p"),i.Dc(307,"login2 works!"),i.Rb(),i.Sb(308,"p"),i.Dc(309,"login2 works!"),i.Rb(),i.Sb(310,"p"),i.Dc(311,"login2 works!"),i.Rb(),i.Sb(312,"p"),i.Dc(313,"login2 works!"),i.Rb(),i.Sb(314,"p"),i.Dc(315,"login2 works!"),i.Rb(),i.Sb(316,"p"),i.Dc(317,"login2 works!"),i.Rb(),i.Sb(318,"p"),i.Dc(319,"login2 works!"),i.Rb(),i.Sb(320,"p"),i.Dc(321,"login2 works!"),i.Rb(),i.Sb(322,"p"),i.Dc(323,"login2 works!"),i.Rb(),i.Sb(324,"p"),i.Dc(325,"login2 works!"),i.Rb(),i.Sb(326,"p"),i.Dc(327,"login2 works!"),i.Rb(),i.Sb(328,"p"),i.Dc(329,"login2 works!"),i.Rb(),i.Sb(330,"p"),i.Dc(331,"login2 works!"),i.Rb(),i.Sb(332,"p"),i.Dc(333,"login2 works!"),i.Rb(),i.Sb(334,"p"),i.Dc(335,"login2 works!"),i.Rb(),i.Sb(336,"p"),i.Dc(337,"login2 works!"),i.Rb(),i.Sb(338,"p"),i.Dc(339,"login2 works!"),i.Rb(),i.Sb(340,"p"),i.Dc(341,"login2 works!"),i.Rb(),i.Sb(342,"p"),i.Dc(343,"login2 works!"),i.Rb(),i.Sb(344,"p"),i.Dc(345,"login2 works!"),i.Rb(),i.Sb(346,"p"),i.Dc(347,"login2 works!"),i.Rb(),i.Sb(348,"p"),i.Dc(349,"login2 works!"),i.Rb(),i.Sb(350,"p"),i.Dc(351,"login2 works!"),i.Rb(),i.Sb(352,"p"),i.Dc(353,"login2 works!"),i.Rb(),i.Sb(354,"p"),i.Dc(355,"login2 works!"),i.Rb(),i.Sb(356,"p"),i.Dc(357,"login2 works!"),i.Rb(),i.Sb(358,"p"),i.Dc(359,"login2 works!"),i.Rb(),i.Sb(360,"p"),i.Dc(361,"login2 works!"),i.Rb(),i.Sb(362,"p"),i.Dc(363,"login2 works!"),i.Rb(),i.Sb(364,"p"),i.Dc(365,"login2 works!"),i.Rb(),i.Sb(366,"p"),i.Dc(367,"login2 works!"),i.Rb(),i.Sb(368,"p"),i.Dc(369,"login2 works!"),i.Rb(),i.Sb(370,"p"),i.Dc(371,"login2 works!"),i.Rb(),i.Sb(372,"p"),i.Dc(373,"login2 works!"),i.Rb(),i.Sb(374,"p"),i.Dc(375,"login2 works!"),i.Rb(),i.Sb(376,"p"),i.Dc(377,"login2 works!"),i.Rb())},styles:[""]}),t})();const C=[{path:"backOffice",loadChildren:()=>Promise.all([n.e(1),n.e(2),n.e(7)]).then(n.bind(null,"o6bk")).then(t=>t.BackOfficeModule)},{path:"peoplePicker",loadChildren:()=>Promise.all([n.e(1),n.e(3),n.e(9)]).then(n.bind(null,"8lpb")).then(t=>t.PeoplePickerModule)},{path:"manager",loadChildren:()=>Promise.all([n.e(1),n.e(3),n.e(2),n.e(8)]).then(n.bind(null,"kY2p")).then(t=>t.ManagerModule)},{path:"img",component:A},{path:"img2",component:A},{path:"login",component:S},{path:"callback",component:_},{path:"errorpage",component:h}];let x=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[d.d.forRoot(C)],d.d]}),t})();var E=n("FtGj"),D=n("3Pt+"),k=n("pLZG");const O=["fruitInput"],R=["auto"];function I(t,e){1&t&&(i.cc(),i.Sb(0,"svg",21),i.Sb(1,"defs"),i.Sb(2,"style"),i.Dc(3," .cls-1 { fill: #243882; } "),i.Rb(),i.Rb(),i.Nb(4,"path",22),i.Rb())}function T(t,e){1&t&&(i.cc(),i.Sb(0,"svg",23),i.Sb(1,"defs"),i.Sb(2,"style"),i.Dc(3," .cls-1, .cls-2 { fill: #1556a1; } .cls-1 { fill-rule: evenodd; } "),i.Rb(),i.Rb(),i.Sb(4,"title"),i.Dc(5,"comau_typologo"),i.Rb(),i.Sb(6,"g",24),i.Sb(7,"g"),i.Nb(8,"path",25),i.Nb(9,"polygon",26),i.Nb(10,"path",27),i.Nb(11,"path",28),i.Nb(12,"path",29),i.Rb(),i.Rb(),i.Rb())}function F(t,e){1&t&&(i.cc(),i.Sb(0,"svg",30),i.Sb(1,"style",31),i.Dc(2," .st0 { fill: #A53534; } .st1 { fill: #221F20; } "),i.Rb(),i.Sb(3,"g"),i.Nb(4,"rect",32),i.Nb(5,"path",33),i.Rb(),i.Rb())}function P(t,e){1&t&&(i.cc(),i.Sb(0,"svg",34),i.Sb(1,"style",31),i.Dc(2," .st0 { fill: #63666A; } .st1 { fill: #1554FE; } "),i.Rb(),i.Sb(3,"g"),i.Nb(4,"path",35),i.Nb(5,"ellipse",36),i.Nb(6,"path",37),i.Rb(),i.Rb())}function j(t,e){if(1&t){const t=i.Tb();i.Sb(0,"a",38),i.Zb("click",(function(){return i.sc(t),i.dc().redirectPersonal()})),i.Sb(1,"li"),i.Dc(2),i.Rb(),i.Rb()}if(2&t){const t=i.dc();i.Bb(2),i.Ec(t.getLang("paginaPersonale"))}}function M(t,e){if(1&t){const t=i.Tb();i.Sb(0,"a",38),i.Zb("click",(function(){return i.sc(t),i.dc().redirect("/peoplePicker/manager/list")})),i.Sb(1,"li"),i.Dc(2),i.Rb(),i.Rb()}if(2&t){const t=i.dc();i.Bb(2),i.Ec(t.getLang("actAs"))}}function B(t,e){if(1&t){const t=i.Tb();i.Sb(0,"a",38),i.Zb("click",(function(){return i.sc(t),i.dc().redirect("/backOffice/manager/list")})),i.Sb(1,"li"),i.Dc(2),i.Rb(),i.Rb()}if(2&t){const t=i.dc();i.Bb(2),i.Ec(t.getLang("dashboard"))}}function H(t,e){if(1&t){const t=i.Tb();i.Sb(0,"button",38),i.Zb("click",(function(){return i.sc(t),i.dc().redirectPersonal()})),i.Dc(1),i.Rb()}if(2&t){const t=i.dc();i.Bb(1),i.Fc(" ",t.getLang("paginaPersonale")," ")}}function L(t,e){if(1&t){const t=i.Tb();i.Sb(0,"button",38),i.Zb("click",(function(){return i.sc(t),i.dc().redirect("/peoplePicker/manager/list")})),i.Dc(1),i.Rb()}if(2&t){const t=i.dc();i.Bb(1),i.Fc(" ",t.getLang("actAs")," ")}}function N(t,e){if(1&t){const t=i.Tb();i.Sb(0,"button",38),i.Zb("click",(function(){return i.sc(t),i.dc().redirect("/backOffice/manager/list")})),i.Dc(1),i.Rb()}if(2&t){const t=i.dc();i.Bb(1),i.Fc(" ",t.getLang("dashboard")," ")}}let V=(()=>{class t{constructor(t,e,n){this.router=t,this.apiCalle=e,this.route=n,this.title="checkupfe",this.visible=!0,this.selectable=!0,this.removable=!0,this.separatorKeysCodes=[E.g,E.c],this.fruitCtrl=new D.f,this.fruits=["Lemon"],this.allFruits=["Apple","Lemon","Lime","Orange","Strawberry"],this.router.events.pipe(Object(k.a)(t=>t instanceof d.b)).subscribe(t=>{s.a.token.get()&&this.apiCalle.getLang().then(t=>{s.a.language.set(t.langLabels)}).catch(t=>{})}),this.router.events.pipe(Object(k.a)(t=>t instanceof d.b)).subscribe(t=>{if(s.a.token.get()){document;const t=document.head.childNodes[17];t.outerHTML&&(t.outerHTML="stellantis"===this.company()?t.outerHTML.replace("_none",""):t.outerHTML.replace("none",this.company())),localStorage.setItem("styleStatus","true"),this.apiCalle.getLang().then(t=>{s.a.language.set(t.langLabels)}).catch(t=>{})}setTimeout((function(){fcaInit()}),6e3),setTimeout((function(){fcaInit()}),3e3)})}company(){return s.a.loggedUser.get()?s.a.loggedUser.get().holding:""}getUserEmail(){return s.a.loggedUser.get()?s.a.loggedUser.get().email:""}getInitials(){return s.a.loggedUser.get()?s.a.loggedUser.get().firstName.substring(0,1)+s.a.loggedUser.get().lastName.substring(0,1):""}ngOnInit(){localStorage.removeItem("googleIdp"),localStorage.getItem("googleIdp")||localStorage.setItem("googleIdp",location.href.indexOf("?googleIdp")>-1?"true":"false"),"/"==window.location.pathname&&this.router.navigate(["/peoplePicker/manager/list"])}redirect(t){this.router.navigate([t])}redirectPersonal(){this.router.navigate(["/manager/"+s.a.loggedUser.get().networkId.toUpperCase()])}isVisible(){return s.a.loggedUser.get()}getLang(t){return s.a.language.get()?s.a.language.get()[t]:null}getPermission(t){return!!s.a.loggedUser.get()&&s.a.loggedUser.get().permissions.includes(t)}add(t){const e=t.input,n=t.value;(n||"").trim()&&this.fruits.push(n.trim()),e&&(e.value=""),this.fruitCtrl.setValue(null)}remove(t){const e=this.fruits.indexOf(t);e>=0&&this.fruits.splice(e,1)}selected(t){this.fruits.push(t.option.viewValue),this.fruitInput.nativeElement.value="",this.fruitCtrl.setValue(null)}_filter(t){const e=t.toLowerCase();return this.allFruits.filter(t=>0===t.toLowerCase().indexOf(e))}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(d.c),i.Mb(u.a),i.Mb(d.a))},t.\u0275cmp=i.Gb({type:t,selectors:[["app-root"]],viewQuery:function(t,e){var n;1&t&&(i.Ic(O,!0),i.Ic(R,!0)),2&t&&(i.pc(n=i.ac())&&(e.fruitInput=n.first),i.pc(n=i.ac())&&(e.matAutocomplete=n.first))},features:[i.Ab([f.a])],decls:33,vars:13,consts:[["id","app-bar",1,"mdc-top-app-bar","mdc-top-app-bar--fixed"],[1,"mdc-top-app-bar__row"],[1,"container-header-1","fca_ux-align-item-center","fca_ux-width-100"],["id","Livello_1","data-name","Livello 1","xmlns","http://www.w3.org/2000/svg","width","300","height","60","viewBox","0 0 340 72","style","max-width: 80%",4,"ngIf"],["width","300","height","60","id","Layer_1","data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 88 36",4,"ngIf"],["width","100","height","60","id","Layer_1","data-name","Layer 1","version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 240 148","style","enable-background:new 0 0 240 148;",0,"xml","space","preserve",4,"ngIf"],["width","300","height","60","id","Layer_1","data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 88 36",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 240 34","style","enable-background:new 0 0 240 34;",0,"xml","space","preserve",4,"ngIf"],[1,"content-header-1","mdc-top-app-bar__section","mdc-top-app-bar__section--align-end"],[1,"account-name"],["type","checkbox","id","stl-trigger-menu"],["for","stl-trigger-menu",1,"stl-btn","account"],[1,"material-icons"],[1,"stl-sidebar"],["class","fca-button-menu mdc-button fca-button-header-menu",3,"click",4,"ngIf"],[1,"content-header-2"],[1,"mdc-button","account","menu-account"],[1,"container-header-2","fca_ux-flex-start","fca_ux-align-item-center","fca_ux-width-100"],[1,"fca_ux-d-flex"],["id","main-content",1,"main-content"],[1,"fca_ux-container-page"],[1,"fca_ux-container-large"],["id","Livello_1","data-name","Livello 1","xmlns","http://www.w3.org/2000/svg","width","300","height","60","viewBox","0 0 340 72",2,"max-width","80%"],["d","M232.75,26.05a.56.56,0,0,0,.52-.6.56.56,0,0,0-1.12.08h0a.56.56,0,0,0,.6.51M197.13,7.89a1.63,1.63,0,1,0,1.63-1.63,1.63,1.63,0,0,0-1.63,1.63h0m10.35,3.5a1.64,1.64,0,1,0,1.64-1.64h0a1.63,1.63,0,0,0-1.63,1.63h0m-39,42.69a1.64,1.64,0,1,0,1.65-1.63h0a1.63,1.63,0,0,0-1.64,1.62h0m8.05,6.78a1.64,1.64,0,1,0,1.64-1.64h0a1.65,1.65,0,0,0-1.63,1.64M186.82,64a1.64,1.64,0,1,0,1.64-1.64h0A1.63,1.63,0,0,0,186.82,64m10.54-.13A1.63,1.63,0,1,0,199,62.2a1.63,1.63,0,0,0-1.64,1.67h0m10.12-3.21A1.64,1.64,0,1,0,209.14,59h0a1.63,1.63,0,0,0-1.64,1.64m8.06-6.48a1.64,1.64,0,1,0,1.64-1.64h0a1.63,1.63,0,0,0-1.64,1.64m-.11-36.3a1.63,1.63,0,1,0,1.63-1.64,1.63,1.63,0,0,0-1.63,1.64h0M204,13.54a2.08,2.08,0,1,0-2.08,2.09A2.08,2.08,0,0,0,204,13.54h0m7,4.31a2.08,2.08,0,1,0-2.08,2.09A2.08,2.08,0,0,0,211,17.85h0M216.46,24a2.09,2.09,0,1,0-2.09,2.09h0A2.08,2.08,0,0,0,216.46,24h0M201.49.61A.56.56,0,0,0,201,0a.57.57,0,0,0-.61.51.57.57,0,0,0,.51.61.55.55,0,0,0,.6-.5h0m13.94,5.06a.55.55,0,0,0-.5-.6h0a.57.57,0,0,0-.55.57.57.57,0,0,0,.46.54.56.56,0,0,0,.6-.51m10.95,7.86a.56.56,0,0,0-.51-.61h0a.55.55,0,0,0-.6.5h0a.57.57,0,0,0,.44.66.58.58,0,0,0,.66-.45.41.41,0,0,0,0-.11M207.44,6.27a1.06,1.06,0,1,0-1.15,1,1.06,1.06,0,0,0,1.15-1v0m10.63,5.32a1.06,1.06,0,0,0-1-1.15h0a1.06,1.06,0,1,0-.28,2.1h.1a1.05,1.05,0,0,0,1.14-1v0m7.28,7.57a1.06,1.06,0,1,0,1,1.15,1.06,1.06,0,0,0-1-1.15h0M193.6,3.35a1.07,1.07,0,1,0,1.06,1.08v0a1.05,1.05,0,0,0-1.06-1.06m-5.16,2.91a1.64,1.64,0,1,0,1.63,1.65v0a1.63,1.63,0,0,0-1.63-1.63h0M178.09,9.75a1.64,1.64,0,1,0,1.63,1.65h0a1.65,1.65,0,0,0-1.63-1.64M162.94,34.43a1.64,1.64,0,1,0,1.63,1.65v0a1.63,1.63,0,0,0-1.63-1.63h0m2-9.63a1.64,1.64,0,1,0,1.63,1.65h0A1.63,1.63,0,0,0,165,24.8h0m5.21-8.59a1.64,1.64,0,1,0,1.63,1.65h0a1.65,1.65,0,0,0-1.63-1.64M193.6,61.88a2.09,2.09,0,1,0-2.08-2.1h0a2.09,2.09,0,0,0,2.08,2.09m0-47.48a2.09,2.09,0,1,0-2.08-2.1h0a2.09,2.09,0,0,0,2.08,2.09m-8.3,1.23a2.09,2.09,0,1,0-2.08-2.1h0a2.08,2.08,0,0,0,2.07,2.09h0m-7,4.31a2.09,2.09,0,1,0-2.08-2.1h0a2.08,2.08,0,0,0,2.07,2.09h0m-5.52,6.18a2.09,2.09,0,1,0-2-2.14v0a2.08,2.08,0,0,0,2.07,2.09h0m-2.27,7.77a2.09,2.09,0,1,0-2.08-2.1v0a2.08,2.08,0,0,0,2.08,2.08h0M186.31,1.12a.57.57,0,0,0,.51-.61.57.57,0,0,0-.61-.51.55.55,0,0,0-.5.61.55.55,0,0,0,.59.51h0M172.37,6.18a.55.55,0,0,0,.51-.59h0a.56.56,0,0,0-.6-.51.55.55,0,0,0-.51.59h0a.56.56,0,0,0,.6.51m60.38,43.71a.56.56,0,0,0,0-1.12h-.12a.55.55,0,0,0-.51.59h0a.56.56,0,0,0,.6.51m-6.68,9.3a.58.58,0,0,0,.51-.61.57.57,0,0,0-.61-.51.57.57,0,0,0-.51.61.56.56,0,0,0,.61.51M214.92,67a.55.55,0,0,0,.51-.59h0a.56.56,0,1,0-1.12,0,.41.41,0,0,0,0,.11.55.55,0,0,0,.6.5h0M201,72a.56.56,0,0,0-.09-1.12h0A.56.56,0,0,0,201,72m-14.68,0a.56.56,0,1,0-.1-1.12h0a.56.56,0,0,0,.09,1.12h0m-13.94-5.07a.55.55,0,0,0,.51-.59h0a.56.56,0,0,0-.6-.51.55.55,0,0,0-.51.59h0a.56.56,0,0,0,.6.51m-11-7.85a.56.56,0,0,0,.52-.6.56.56,0,1,0-1.12.08h0a.56.56,0,0,0,.6.51m-6.88-9.19a.56.56,0,0,0,0-1.12h-.12a.56.56,0,0,0,.09,1.11M161.42,14a.56.56,0,0,0,.52-.6.56.56,0,0,0-1.12.08h0a.56.56,0,0,0,.6.51m19.49-6.81a1.06,1.06,0,0,0-.18-2.11,1.06,1.06,0,0,0,.14,2.11h0m-10.64,5.32a1,1,0,1,0-.1,0h.1m-9.38,7.76a1,1,0,0,0,1,1H162a1.06,1.06,0,1,0-.16-2.11,1.06,1.06,0,0,0-1,1.11m68.65,20.14a1.06,1.06,0,1,0,.18,2.12h0a1.06,1.06,0,0,0-.18-2.12h0M225.37,50.7a1.06,1.06,0,0,0,.18,2.11,1.06,1.06,0,0,0-.14-2.11h0m-8.23,8.75a1.06,1.06,0,1,0,.16,2.11,1.06,1.06,0,0,0,1-1.11,1,1,0,0,0-1-1h-.15M206.3,64.78a1.06,1.06,0,0,0-1,1.11v0a1.06,1.06,0,1,0,2.12-.08s0-.07,0-.1a1.05,1.05,0,0,0-1.1-1h0M193.48,66.5a1.06,1.06,0,1,0,.08,2.12h.1a1.06,1.06,0,0,0-.18-2.11M181.2,65.1a1.06,1.06,0,1,0,1.15,1,1.06,1.06,0,0,0-1.15-1h0m-11.11-5.61a1.06,1.06,0,0,0,.08,2.12h.1a1.06,1.06,0,0,0-.18-2.11m-8.25-8.76a1.06,1.06,0,0,0,.18,2.11,1.06,1.06,0,0,0-.14-2.11h0m-4.6-20.31a1.06,1.06,0,0,0,.18,2.11,1.06,1.06,0,0,0-.14-2.11h0m30.14,28a2.08,2.08,0,1,0-2.08,2.08,2.08,2.08,0,0,0,2.08-2.08h0m14.36-2.09a2.09,2.09,0,1,0,2.08,2.1h0a2.08,2.08,0,0,0-2.07-2.09h0m7.13-4.14A2.09,2.09,0,1,0,211,54.32a2.1,2.1,0,0,0-2.13-2.13M216.43,48a2.08,2.08,0,1,0-2.08,2.09A2.08,2.08,0,0,0,216.43,48h0m-38.09,4.1a2.09,2.09,0,1,0,2.08,2.1h0a2.08,2.08,0,0,0-2.07-2.09h0m-5.52-6.18A2.09,2.09,0,1,0,174.9,48v0a2.08,2.08,0,0,0-2.08-2.08h0M256.32,28h12.89V45.2h4.53V28H285.5l1.09-3H257.42ZM151.81,25h-4.53V45.2h20.66l1.11-3H151.81Zm42.11,0,10.92,20h4.85L198.77,25.05Zm-16.5,20h4.85l10.91-19.95h-4.85Zm65.13-5-19-14.92H219V45h4.53V30l19,15h4.52V25.05h-4.52Zm91.54-6.49H320.21a2.53,2.53,0,0,1-2.75-2.29,1.62,1.62,0,0,1,0-.22v-.56A2.48,2.48,0,0,1,320,28H338.9l1.1-3H318.84c-3.81,0-5.75,2.57-5.8,5.12v1.32c0,2.59,2,5.27,5.91,5.27h13.88A2.53,2.53,0,0,1,335.58,39a1.21,1.21,0,0,1,0,.19v.56a2.49,2.49,0,0,1-2.54,2.44H314.14l-1.1,3H334.2c3.81,0,5.75-2.57,5.8-5.12V38.74c0-2.58-2-5.26-5.91-5.26m-313,0H7.17a2.53,2.53,0,0,1-2.75-2.29,1.21,1.21,0,0,1,0-.19v-.56A2.48,2.48,0,0,1,6.94,28H25.86L27,25H5.8C2,25.09.05,27.62,0,30.17v1.32c0,2.59,2,5.27,5.91,5.27H19.79a2.53,2.53,0,0,1,2.75,2.29,1.21,1.21,0,0,1,0,.19v.56A2.49,2.49,0,0,1,20,42.24H1.1l-1.1,3H21.16c3.81,0,5.75-2.57,5.8-5.12V38.74c0-2.58-2-5.26-5.91-5.26M296.16,45h4.53V25.05h-4.53ZM36.83,28H49.71V45.2h4.53V28H66l1.1-3H37.92Zm62,0,1.1-3H77V45.2H98.86l1.1-3H81.56V36.53H94.43l1.09-2.94h-14V28Zm19.25,14.22h17.24l-1.11,3H113.55V25.05h4.53Z","transform","translate(0 0)",1,"cls-1"],["width","300","height","60","id","Layer_1","data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 88 36"],["id","Livello_1","data-name","Livello 1"],["d","M31.84,20.3c0,2.11-1.27,2.58-2.85,2.58H22.31c-1.58,0-2.86-.47-2.86-2.58V15.73c0-2.11,1.28-2.59,2.86-2.59H29c1.57,0,2.85.48,2.85,2.59V20.3Zm-14-.62c0,3.07,1.05,4.55,4.34,4.55h7c3.29,0,4.33-1.48,4.33-4.55V16.35c0-3.07-1-4.55-4.33-4.55h-7c-3.27,0-4.32,1.48-4.32,4.55v3.33Z",1,"cls-1"],["points","34.61 24.21 36.24 24.21 36.24 13.27 36.28 13.42 43.64 24.21 44.81 24.21 52.18 13.27 52.21 13.42 52.21 24.21 53.85 24.21 53.85 11.77 51.29 11.77 44.23 22.22 37.16 11.77 34.61 11.77 34.61 24.21 34.61 24.21",1,"cls-2"],["d","M54.68,24.21h1.87l1.51-2.6H67.8l1.51,2.61h1.86L64,11.77H61.9Zm12.33-4H58.85l4.08-7.09Z",1,"cls-1"],["d","M71.85,21c0,2.48,1.23,3.21,4.29,3.21H81.7c3.07,0,4.3-.73,4.3-3.21V11.77H84.37V21c0,1.18-.4,1.88-2.62,1.88H76.09c-2.21,0-2.61-.7-2.61-1.88V11.77H71.85V21Z",1,"cls-2"],["d","M2,19.67c0,3.06,1,4.55,4.34,4.55h6.23c3.42,0,4.12-1.19,4.12-3.39V20H15.14v.75c0,1.65-.64,2.12-2.86,2.12H6.51c-1.58,0-2.86-.47-2.86-2.58V15.73c0-2.11,1.28-2.59,2.86-2.59h5.94c1.51,0,2.79.11,2.79,2.17v.56h1.45v-1c0-1.63-.83-3-3.82-3H6.34C3,11.8,2,13.28,2,16.35Z",1,"cls-2"],["width","100","height","60","id","Layer_1","data-name","Layer 1","version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 240 148",0,"xml","space","preserve",2,"enable-background","new 0 0 240 148"],["type","text/css"],["x","206.5","y","10.2","width","23.5","height","23.5",1,"st0"],["d","M71.6,122.3c-0.9-0.8-2-1.4-3.2-1.8c-1.4-0.4-2.9-0.7-4.4-0.6h-7v17.6h6.9c1.5,0,3-0.2,4.4-0.7\n c1.2-0.4,2.3-1,3.3-1.9c0.9-0.8,1.5-1.7,2-2.8c0.5-1.1,0.7-2.3,0.7-3.5l0,0c0-1.2-0.2-2.4-0.7-3.5\n C73.1,124.1,72.4,123.1,71.6,122.3 M69.1,128.7c0.1,1.3-0.4,2.5-1.4,3.3c-1,0.8-2.3,1.2-3.6,1.1H62v-8.9h2.1\n c1.3-0.1,2.6,0.4,3.6,1.2C68.6,126.2,69.1,127.4,69.1,128.7L69.1,128.7z M83,89.2H48.6c-3.2,0-6.2-1.2-8.5-3.4\n c-2.3-2.4-3.5-5.6-3.5-8.9v-2.2c0-3.1,1.2-6.1,3.4-8.3c2.2-2.2,5.2-3.4,8.4-3.4H83V39.5H54.2C42.1,39.6,9.9,40.5,9.9,76.1\n s32.3,35.8,44.5,35.9H83V89.2z M14.3,137.5h5.1v-17.6h-5.1V137.5z M41.6,129.2l-7.5-9.3h-4.7v17.6h5v-9.6l7.8,9.6h4.4v-17.6h-5\n L41.6,129.2z M93.9,129.8c0.1,1-0.2,2-0.9,2.7c-0.7,0.6-1.5,0.9-2.4,0.9c-0.9,0-1.8-0.3-2.4-0.9c-0.7-0.8-1-1.8-0.9-2.8v-9.8h-5.1\n v9.9c0,1.2,0.2,2.4,0.6,3.6c0.4,1,0.9,1.8,1.7,2.5c0.8,0.7,1.7,1.2,2.6,1.5c1.1,0.3,2.3,0.5,3.5,0.5c1.2,0,2.4-0.1,3.5-0.5\n c1-0.3,1.9-0.8,2.7-1.5c0.8-0.7,1.3-1.6,1.7-2.5c0.4-1.2,0.6-2.4,0.6-3.7v-9.7h-5.1V129.8z M221,119.9h-5v17.6h13.9v-4.3h-8.8\n L221,119.9z M198.2,119.8l-7.7,17.7h5.3l1.3-3.1h7l1.3,3.1h5.4l-7.7-17.7H198.2z M198.6,130.5l2-5l2,5H198.6z M178.6,137.5h5.1\n v-17.6h-5.1V137.5z M206.5,39.6v24.2h-31.4V39.5h-23.5v41.8c-3.9-5-25.7-30.6-27.9-33.1s-5.6-5.8-8.7-7.1\n c-3.3-1.1-6.8-1.7-10.3-1.6H88.9V112h23.5V71.3c4.1,4.6,28.1,31.4,28.1,31.4c3.1,3.6,7,6.4,11.4,8.1c2.9,1,5.9,1.4,9,1.3h14.2V86.6\n h31.4V112h23.4V39.6H206.5z M121.2,128.4c-0.7-0.4-1.4-0.8-2.1-1.1c-0.9-0.3-1.9-0.6-2.8-0.8c-0.6-0.1-1.1-0.3-1.6-0.4\n c-0.3-0.1-0.7-0.2-1-0.4c-0.2-0.1-0.4-0.2-0.5-0.4c-0.1-0.2-0.1-0.3-0.1-0.5v-0.1c0-0.3,0.2-0.6,0.4-0.8c0.4-0.2,0.9-0.4,1.4-0.3\n c0.9,0,1.7,0.2,2.5,0.4c0.9,0.3,1.8,0.7,2.6,1.3l2.5-3.4c-1-0.8-2.1-1.4-3.3-1.8c-1.3-0.4-2.8-0.6-4.2-0.6c-1,0-2,0.1-2.9,0.4\n c-0.8,0.2-1.6,0.6-2.2,1.2c-0.6,0.5-1.1,1.1-1.4,1.8c-0.3,0.7-0.5,1.5-0.5,2.3l0,0c0,0.8,0.2,1.6,0.5,2.3c0.4,0.6,0.9,1.1,1.4,1.5\n c0.7,0.4,1.4,0.8,2.2,1c0.8,0.3,1.7,0.5,2.7,0.7c0.6,0.1,1.1,0.3,1.5,0.4c0.3,0.1,0.6,0.2,0.9,0.4c0.2,0.1,0.4,0.2,0.5,0.4l0.1,0.5\n v0.1c0,0.4-0.2,0.7-0.5,0.9c-0.5,0.2-1,0.3-1.5,0.3c-2.1,0-4.2-0.8-5.9-2.1l-2.8,3.2c1.1,1,2.5,1.8,3.9,2.2\n c1.5,0.5,3.1,0.7,4.6,0.7c1,0,2-0.1,3-0.4c0.8-0.2,1.6-0.6,2.3-1.1c1.3-1,2-2.6,2-4.2v0c0-0.7-0.1-1.5-0.5-2.1\n C122.2,129.3,121.7,128.8,121.2,128.4 M168.3,129.3c0.7-1,1-2.2,1-3.4l0,0c0.1-1.5-0.5-3-1.6-4.1c-0.7-0.6-1.5-1.1-2.4-1.4\n c-1.2-0.4-2.4-0.5-3.6-0.5h-8.6v17.6h5v-5.3h2.2l3.7,5.3h5.8l-4.3-6.1C166.6,131,167.6,130.3,168.3,129.3 M164.2,126.3\n c0,0.6-0.2,1.1-0.7,1.5c-0.6,0.4-1.3,0.6-2,0.6h-3.3v-4.2h3.3c0.7,0,1.4,0.1,2,0.5C164,125.1,164.3,125.7,164.2,126.3L164.2,126.3z\n M130,124.2h5.5v13.3h5v-13.3h5.5v-4.3h-16V124.2z",1,"st1"],["width","300","height","60","id","Layer_1","data-name","Layer 1","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 88 36",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 240 34",0,"xml","space","preserve",2,"enable-background","new 0 0 240 34"],["d","M10,10.5h1.9v13H10V10.5z M34.2,10.5h1.9l-5.5,13.1h-0.4l-5.6-13h1.9l3.9,9.1L34.2,10.5z M97.5,10.3\n\t\tc2,0,3.7,0.6,5,1.9c1.3,1.3,2,2.9,2,4.8s-0.7,3.5-2,4.7c-1.3,1.2-3,1.9-5.1,1.9c-2,0-3.6-0.6-4.9-1.9c-1.3-1.2-1.9-2.8-1.9-4.7\n\t\tc0-1.9,0.7-3.5,2-4.8C93.8,11,95.5,10.3,97.5,10.3z M97.6,12.1c-1.5,0-2.7,0.5-3.6,1.4c-1,0.9-1.4,2.1-1.4,3.6\n\t\tc0,1.4,0.5,2.6,1.4,3.5c1,0.9,2.2,1.4,3.6,1.4c1.4,0,2.7-0.5,3.6-1.4s1.4-2.1,1.4-3.5s-0.5-2.5-1.4-3.5S99,12.1,97.6,12.1\n\t\tL97.6,12.1z M182.7,10.3c2,0,3.7,0.6,5,1.9s2,2.9,2,4.8s-0.7,3.5-2,4.7c-1.3,1.2-3,1.9-5.1,1.9c-2,0-3.6-0.6-4.9-1.9\n\t\tc-1.3-1.2-1.9-2.8-1.9-4.7c0-1.9,0.7-3.5,2-4.8C179,11,180.7,10.3,182.7,10.3L182.7,10.3z M182.8,12.1c-1.5,0-2.7,0.5-3.6,1.4\n\t\tc-1,0.9-1.4,2.1-1.4,3.6c0,1.4,0.5,2.6,1.4,3.5c1,0.9,2.2,1.4,3.6,1.4c1.4,0,2.7-0.5,3.6-1.4s1.4-2.1,1.4-3.5s-0.5-2.5-1.4-3.5\n\t\tC185.4,12.6,184.2,12.1,182.8,12.1L182.8,12.1z M208.7,10.5h1.9v7.4c0,1-0.1,1.7-0.2,2.3c-0.1,0.5-0.3,0.9-0.6,1.3\n\t\tc-0.2,0.3-0.5,0.6-0.8,0.9c-1,0.9-2.4,1.3-4,1.3c-1.7,0-3-0.4-4.1-1.3c-0.3-0.3-0.6-0.6-0.8-0.9c-0.2-0.3-0.4-0.8-0.5-1.2\n\t\tc-0.1-0.5-0.2-1.2-0.2-2.3v-7.3h1.9v7.4c0,1.2,0.1,2.1,0.4,2.5c0.3,0.5,0.7,0.9,1.3,1.2c0.6,0.3,1.2,0.4,2,0.4c1.1,0,2-0.3,2.7-0.9\n\t\tc0.4-0.3,0.6-0.7,0.8-1.1c0.2-0.4,0.2-1.1,0.2-2.2L208.7,10.5L208.7,10.5z M221.2,23.6V10.5h4.7c1.2,0,2.2,0.3,3,1\n\t\tc0.7,0.7,1.1,1.6,1.1,2.7c0,0.8-0.2,1.4-0.6,2c-0.4,0.6-0.9,1-1.6,1.3c-0.7,0.3-1.6,0.4-2.8,0.4h-2v5.7H221.2L221.2,23.6z\n\t\t M225.6,12.2h-2.5v4.1h2.6c0.8,0,1.3-0.2,1.7-0.5c0.4-0.3,0.6-0.9,0.6-1.5C228.1,12.8,227.2,12.2,225.6,12.2L225.6,12.2z",1,"st0"],["cx","119.2","cy","18.2","rx","2.6","ry","2.7",1,"st1"],["d","M167.4,23.6l-4.1-6.5c0.5-0.3,0.9-0.6,1.2-1c0.4-0.6,0.6-1.2,0.6-2c0-1.1-0.4-2-1.2-2.6c-0.8-0.6-1.8-1-3.1-1\n\t\th-3.6v13h1.9V12.1h0.6c0.9,0,1.9,0.1,2.3,0.2c0.4,0.1,0.7,0.4,0.9,0.7c0.2,0.3,0.3,0.7,0.3,1.1c0,0.4-0.1,0.8-0.3,1.1\n\t\ts-0.5,0.6-0.8,0.7c-0.3,0.1-0.7,0.2-1.3,0.2l4.6,7.4L167.4,23.6L167.4,23.6z M142.1,17.1h3.5v5.5c-1.6,0.7-3.2,1-4.7,1\n\t\tc-2.1,0-3.9-0.6-5.2-1.9c-1.3-1.2-1.9-2.8-1.9-4.6c0-1.9,0.7-3.6,2-4.8c1.3-1.3,3-1.9,5-1.9c0.7,0,1.4,0.1,2.1,0.2\n\t\tc0.7,0.1,1.5,0.4,2.5,0.9v1.9c-1.5-0.9-3.1-1.4-4.6-1.4c-1.4,0-2.6,0.5-3.6,1.4s-1.4,2.1-1.4,3.6c0,1.5,0.5,2.7,1.4,3.6\n\t\tc1,0.9,2.2,1.4,3.8,1.4c0.8,0,1.6-0.2,2.7-0.5l0.2-0.1v-2.7h-2.8L142.1,17.1L142.1,17.1z M79.5,20.6C78,21.5,76.5,22,75,22\n\t\tc-1.5,0-2.8-0.5-3.7-1.4c-1-0.9-1.4-2.1-1.4-3.5s0.5-2.6,1.5-3.5c1-0.9,2.2-1.4,3.7-1.4c1.4,0,2.9,0.4,4.4,1.3v-2\n\t\tc-1.7-0.7-3.2-1.1-4.5-1.1c-2,0-3.6,0.6-5,1.9c-1.3,1.3-2,2.9-2,4.8c0,1.2,0.3,2.3,0.9,3.3c0.6,1,1.4,1.8,2.4,2.4\n\t\tc1,0.6,2.2,0.9,3.7,0.9c1.7,0,3.2-0.3,4.5-1V20.6L79.5,20.6z M48.2,10.5h8.2l-1,1.7h-5.3v4h5.3v1.7h-5.3v4.1h6.2v1.6h-8L48.2,10.5z\n\t\t",1,"st0"],[1,"fca-button-menu","mdc-button","fca-button-header-menu",3,"click"]],template:function(t,e){1&t&&(i.Sb(0,"header",0),i.Sb(1,"div",1),i.Sb(2,"div",2),i.Cc(3,I,5,0,"svg",3),i.Cc(4,T,13,0,"svg",4),i.Cc(5,F,6,0,"svg",5),i.Cc(6,P,7,0,"svg",6),i.Rb(),i.Sb(7,"section",7),i.Sb(8,"span",8),i.Dc(9),i.Rb(),i.Nb(10,"input",9),i.Sb(11,"label",10),i.Sb(12,"span",11),i.Dc(13," menu "),i.Rb(),i.Rb(),i.Sb(14,"div",12),i.Sb(15,"ul"),i.Cc(16,j,3,1,"a",13),i.Cc(17,M,3,1,"a",13),i.Cc(18,B,3,1,"a",13),i.Rb(),i.Rb(),i.Rb(),i.Sb(19,"div",14),i.Sb(20,"span",8),i.Dc(21),i.Rb(),i.Sb(22,"button",15),i.Dc(23),i.Rb(),i.Rb(),i.Rb(),i.Sb(24,"div",16),i.Sb(25,"div",17),i.Cc(26,H,2,1,"button",13),i.Cc(27,L,2,1,"button",13),i.Cc(28,N,2,1,"button",13),i.Rb(),i.Rb(),i.Rb(),i.Sb(29,"main",18),i.Sb(30,"div",19),i.Sb(31,"div",20),i.Nb(32,"router-outlet"),i.Rb(),i.Rb(),i.Rb()),2&t&&(i.Bb(3),i.jc("ngIf","stellantis"==e.company()),i.Bb(1),i.jc("ngIf","comau"==e.company()),i.Bb(1),i.jc("ngIf","cnhi"==e.company()),i.Bb(1),i.jc("ngIf","iveco"==e.company()),i.Bb(3),i.Ec(e.getUserEmail()),i.Bb(7),i.jc("ngIf",e.getPermission("manager.detail")&&e.getPermission("manager.detail.readonly")),i.Bb(1),i.jc("ngIf",e.getPermission("seg.peoplePicker")),i.Bb(1),i.jc("ngIf",e.getPermission("manager.list")),i.Bb(3),i.Ec(e.getUserEmail()),i.Bb(2),i.Fc(" ",e.getInitials()," "),i.Bb(3),i.jc("ngIf",e.getPermission("manager.detail")&&e.getPermission("manager.detail.readonly")),i.Bb(1),i.jc("ngIf",e.getPermission("seg.peoplePicker")),i.Bb(1),i.jc("ngIf",e.getPermission("manager.list")))},directives:[p.l,d.e],styles:[".card-container[_ngcontent-%COMP%]{width:80%;margin:auto}.fca_ux-container-large[_ngcontent-%COMP%] .mdc-card[_ngcontent-%COMP%]{padding:48px}.sectionMini[_ngcontent-%COMP%]{width:20%}.flex-class[_ngcontent-%COMP%]{width:100%;display:flex}.fca_ux-container-large[_ngcontent-%COMP%]{background-color:#fff;margin:20px 0 60px;padding:24px}@media only screen and (max-width:1000px){.fca_ux-container-large[_ngcontent-%COMP%]{margin:45px 0 60px}}@media only screen and (max-width:991.98px){.fca_ux-container-page[_ngcontent-%COMP%]{padding:150px 0 0}}"]}),t})();var U=n("R1ws"),K=n("cXe9"),z=n("tk/3"),W=n("iTUp"),q=n("1IWC"),G=n.n(q);Object(p.w)(G.a);let Y=(()=>{class t{}return t.\u0275mod=i.Kb({type:t,bootstrap:[V]}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},providers:[{provide:z.a,useClass:c,multi:!0},{provide:i.w,useValue:"it-IT"}],imports:[[l.a,x,U.b,K.a,D.o,D.h,z.c,v.b.forRoot(),W.a]]}),t})();Object(i.U)(),l.c().bootstrapModule(Y).catch(t=>console.error(t))},zkoq:function(t,e,n){"use strict";n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return w})),n.d(e,"c",(function(){return h}));var i=n("fXoL"),s=n("FKr1"),r=n("8LU1"),o=n("cH1L");const a=["*"],c=".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}\n",l=new i.s("MAT_GRID_LIST");let h=(()=>{class t{constructor(t,e){this._element=t,this._gridList=e,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round(Object(r.f)(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round(Object(r.f)(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.l),i.Mb(l,8))},t.\u0275cmp=i.Gb({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(t,e){2&t&&i.Cb("rowspan",e.rowspan)("colspan",e.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mat-figure"]],template:function(t,e){1&t&&(i.ic(),i.Sb(0,"figure",0),i.hc(1),i.Rb())},styles:[c],encapsulation:2,changeDetection:0}),t})();class u{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(t=>this._trackTile(t))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new d(this.rowIndex,e)}_findMatchingGap(t){let e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(n=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e)))}while(n-e{t._setStyle("top",null),t._setStyle("height",null)})}}class m extends f{constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,n,i){this.baseTileHeight=this.getBaseTileSize(n/this.rowHeightRatio,i),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",_(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",_(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(t=>{t._setStyle("marginTop",null),t._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class b extends f{setRowStyles(t,e){let n=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);t._setStyle("top",this.getTilePosition(n,e)),t._setStyle("height",_(this.getTileSize(n,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(t=>{t._setStyle("top",null),t._setStyle("height",null)})}}function _(t){return`calc(${t})`}function y(t){return t.match(/([A-Za-z%]+)$/)?t:t+"px"}let v=(()=>{class t{constructor(t,e){this._element=t,this._dir=e,this._gutter="1px"}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round(Object(r.f)(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=""+(null==t?"":t)}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=""+(null==t?"":t);e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===t?new b:t&&t.indexOf(":")>-1?new m(t):new g(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new u);const t=this._tileCoordinator,e=this._tiles.filter(t=>!t._gridList||t._gridList===this),n=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,n),e.forEach((e,n)=>{const i=t.positions[n];this._tileStyler.setStyle(e,i.row,i.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}}return t.\u0275fac=function(e){return new(e||t)(i.Mb(i.l),i.Mb(o.b,8))},t.\u0275cmp=i.Gb({type:t,selectors:[["mat-grid-list"]],contentQueries:function(t,e,n){var s;1&t&&i.Fb(n,h,!0),2&t&&i.pc(s=i.ac())&&(e._tiles=s)},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(t,e){2&t&&i.Cb("cols",e.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[i.Ab([{provide:l,useExisting:t}])],ngContentSelectors:a,decls:2,vars:0,template:function(t,e){1&t&&(i.ic(),i.Sb(0,"div"),i.hc(1),i.Rb())},styles:[c],encapsulation:2,changeDetection:0}),t})(),w=(()=>{class t{}return t.\u0275mod=i.Kb({type:t}),t.\u0275inj=i.Jb({factory:function(e){return new(e||t)},imports:[[s.l,s.j],s.l,s.j]}),t})()},zn8P: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="zn8P"}},[[0,0]]]);