diff --git a/dist/10.d63a5d9c3c50288b08ce.js b/dist/10.51e3cdf57a3435abbbb9.js similarity index 52% rename from dist/10.d63a5d9c3c50288b08ce.js rename to dist/10.51e3cdf57a3435abbbb9.js index 0fe1485a..a0d3f3cb 100644 --- a/dist/10.d63a5d9c3c50288b08ce.js +++ b/dist/10.51e3cdf57a3435abbbb9.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"U+IK":function(t,e,o){"use strict";o.r(e),o.d(e,"KnowledgeItemsModule",function(){return rt});var i=o("ofXK"),a=o("3Pt+"),n=o("0LvA"),r=o("lR5k"),c=o("QPBi"),l=o("jIBr"),s=o("dcRk"),d=o("tyNb"),b=o("M9IT"),m=o("Dh3D"),u=o("VRyK"),h=o("LRne"),p=o("JX91"),g=o("eIep"),C=o("lJxs"),f=o("JIr8"),v=o("VHTt"),S=o("fXoL"),T=o("o0su"),w=o("/t3+"),I=o("bTqV"),y=o("+0xr"),D=o("Xa2L");function F(t,e){1&t&&S.Ob(0,"mat-progress-spinner")}function O(t,e){if(1&t&&(S.Tb(0,"div",16),S.Dc(1,F,1,0,"mat-progress-spinner",17),S.Sb()),2&t){const t=S.fc();S.Cb(1),S.lc("ngIf",t.isLoadingResults)}}function x(t,e){1&t&&(S.Tb(0,"th",18),S.Ec(1,"#"),S.Sb())}function M(t,e){if(1&t&&(S.Tb(0,"td",19),S.Tb(1,"div"),S.Ec(2),S.Tb(3,"a",20),S.Ec(4),S.gc(5,"transloco"),S.Sb(),S.Tb(6,"a",20),S.Ec(7),S.gc(8,"transloco"),S.Sb(),S.Sb(),S.Sb()),2&t){const t=e.$implicit;S.Cb(2),S.Gc(" ",t.ID," "),S.Cb(1),S.nc("routerLink","display/",t.ID,""),S.Cb(1),S.Fc(S.hc(5,5,"Display")),S.Cb(2),S.nc("routerLink","edit/",t.ID,""),S.Cb(1),S.Fc(S.hc(8,7,"Change"))}}function k(t,e){1&t&&(S.Tb(0,"th",18),S.Ec(1),S.gc(2,"transloco"),S.Sb()),2&t&&(S.Cb(1),S.Fc(S.hc(2,1,"Category")))}function E(t,e){if(1&t&&(S.Tb(0,"td",19),S.Ec(1),S.gc(2,"transloco"),S.Sb()),2&t){const t=e.$implicit,o=S.fc();S.Cb(1),S.Fc(S.hc(2,1,o.getKnowledgeItemCategoryName(t.Category)))}}function G(t,e){1&t&&(S.Tb(0,"th",18),S.Ec(1),S.gc(2,"transloco"),S.Sb()),2&t&&(S.Cb(1),S.Fc(S.hc(2,1,"Title")))}function R(t,e){if(1&t&&(S.Tb(0,"td",19),S.Ec(1),S.Sb()),2&t){const t=e.$implicit;S.Cb(1),S.Fc(t.Title)}}function K(t,e){1&t&&(S.Tb(0,"th",18),S.Ec(1),S.gc(2,"transloco"),S.Sb()),2&t&&(S.Cb(1),S.Fc(S.hc(2,1,"CreatedAt")))}function L(t,e){if(1&t&&(S.Tb(0,"td",19),S.Ec(1),S.gc(2,"date"),S.Sb()),2&t){const t=e.$implicit;S.Cb(1),S.Fc(S.ic(2,1,t.CreatedAt,"yyyy-M-d HH:mm:ss"))}}function A(t,e){1&t&&S.Ob(0,"tr",21)}function P(t,e){1&t&&S.Ob(0,"tr",22)}let N=(()=>{class t{constructor(t,e){this.odataService=t,this.router=e,this.displayedColumns=["id","category","title","createdat"],this.dataSource=[],this.resultsLength=0,this.isLoadingResults=!0}getKnowledgeItemCategoryName(t){return Object(v.s)(t)}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),Object(u.a)(this.sort.sortChange,this.paginator.page).pipe(Object(p.a)({}),Object(g.a)(()=>{this.isLoadingResults=!0;const t=this.paginator.pageSize;return this.odataService.getKnowledgeItems(t,t*this.paginator.pageIndex,this.sort.active,this.sort.direction)}),Object(C.a)(t=>(this.isLoadingResults=!1,this.resultsLength=t.totalCount,t.items)),Object(f.a)(()=>(this.isLoadingResults=!1,Object(h.a)([])))).subscribe(t=>this.dataSource=t)}onGoToPreview(){const t=[];this.dataSource.forEach(e=>{t.push({refType:v.q.KnowledgeItem,refId:e.ID})}),this.odataService.previewObjList=t,this.router.navigate(["preview"])}resetPaging(){this.paginator.pageIndex=0}}return t.\u0275fac=function(e){return new(e||t)(S.Nb(T.b),S.Nb(d.b))},t.\u0275cmp=S.Hb({type:t,selectors:[["app-knowledge-items"]],viewQuery:function(t,e){if(1&t&&(S.Ic(b.a,!0),S.Ic(m.a,!0)),2&t){let t;S.rc(t=S.cc())&&(e.paginator=t.first),S.rc(t=S.cc())&&(e.sort=t.first)}},decls:31,vars:16,consts:[[1,"toolbar-spacer"],["mat-stroked-button","","routerLink","create"],["mat-stroked-button","",3,"disabled","click"],[1,"example-container","mat-elevation-z8"],["class","example-loading-shade",4,"ngIf"],[1,"example-table-container"],["mat-table","","matSort","","matSortActive","createdat","matSortDisableClear","",1,"example-table",3,"dataSource","matSortChange"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","category"],["matColumnDef","title"],["matColumnDef","createdat"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize"],[1,"example-loading-shade"],[4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-button","",3,"routerLink"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(S.Tb(0,"mat-toolbar-row"),S.Tb(1,"span"),S.Ec(2),S.gc(3,"transloco"),S.Sb(),S.Ob(4,"span",0),S.Tb(5,"section"),S.Tb(6,"a",1),S.Ec(7),S.gc(8,"transloco"),S.Sb(),S.Tb(9,"a",2),S.bc("click",function(){return e.onGoToPreview()}),S.Ec(10),S.gc(11,"transloco"),S.Sb(),S.Sb(),S.Sb(),S.Tb(12,"div",3),S.Dc(13,O,2,1,"div",4),S.Tb(14,"div",5),S.Tb(15,"table",6),S.bc("matSortChange",function(){return e.resetPaging()}),S.Rb(16,7),S.Dc(17,x,2,0,"th",8),S.Dc(18,M,9,9,"td",9),S.Qb(),S.Rb(19,10),S.Dc(20,k,3,3,"th",8),S.Dc(21,E,3,3,"td",9),S.Qb(),S.Rb(22,11),S.Dc(23,G,3,3,"th",8),S.Dc(24,R,2,1,"td",9),S.Qb(),S.Rb(25,12),S.Dc(26,K,3,3,"th",8),S.Dc(27,L,3,4,"td",9),S.Qb(),S.Dc(28,A,1,0,"tr",13),S.Dc(29,P,1,0,"tr",14),S.Sb(),S.Sb(),S.Ob(30,"mat-paginator",15),S.Sb()),2&t&&(S.Cb(2),S.Fc(S.hc(3,10,"KnowledgeItem")),S.Cb(5),S.Fc(S.hc(8,12,"Create")),S.Cb(2),S.lc("disabled",e.dataSource.length<=0),S.Cb(1),S.Fc(S.hc(11,14,"Common.Preview")),S.Cb(3),S.lc("ngIf",e.isLoadingResults),S.Cb(2),S.lc("dataSource",e.dataSource),S.Cb(13),S.lc("matHeaderRowDef",e.displayedColumns),S.Cb(1),S.lc("matRowDefColumns",e.displayedColumns),S.Cb(1),S.lc("length",e.resultsLength)("pageSize",20))},directives:[w.c,I.a,d.c,i.m,y.j,m.a,y.c,y.e,y.b,y.g,y.i,b.a,D.a,y.d,y.a,y.f,y.h],pipes:[c.d,i.e],styles:[".example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.example-container[_ngcontent-%COMP%]{position:relative;min-height:500px}.example-table-container[_ngcontent-%COMP%]{position:relative;min-height:400px;overflow:auto}table[_ngcontent-%COMP%]{width:100%;height:100%}.example-loading-shade[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.mat-column-id[_ngcontent-%COMP%]{max-width:100px}.mat-column-createdat[_ngcontent-%COMP%]{max-width:124px}"]}),t})();var j=o("jtHE"),U=o("FtGj"),_=o("rCpU"),H=o("HKRH"),$=o("0IaG"),V=o("Wp6s"),z=o("qFsG"),q=o("kmnG"),B=o("d3UM"),Q=o("FKr1"),J=o("iadO"),X=o("A5z7"),W=o("XiUz"),Y=o("NFeN");function Z(t,e){1&t&&(S.Tb(0,"mat-icon",28),S.Ec(1,"cancel"),S.Sb())}function tt(t,e){if(1&t){const t=S.Ub();S.Tb(0,"mat-chip",26),S.bc("removed",function(){S.uc(t);const o=e.$implicit;return S.fc().removeTag(o)}),S.Ec(1),S.Dc(2,Z,2,0,"mat-icon",27),S.Sb()}if(2&t){const t=e.$implicit,o=S.fc();S.lc("selectable",o.selectable)("removable",o.isEditable),S.Cb(1),S.Gc(" ",t," "),S.Cb(1),S.lc("ngIf",o.isEditable)}}function et(t,e){if(1&t){const t=S.Ub();S.Tb(0,"mat-toolbar"),S.Tb(1,"h3"),S.Ec(2),S.gc(3,"transloco"),S.Sb(),S.Ob(4,"div",29),S.Tb(5,"button",30),S.bc("click",function(){return S.uc(t),S.fc().openUploadDialog()}),S.Tb(6,"mat-icon"),S.Ec(7,"file_upload"),S.Sb(),S.Sb(),S.Sb()}2&t&&(S.Cb(2),S.Fc(S.hc(3,1,"Content")))}function ot(t,e){if(1&t){const t=S.Ub();S.Tb(0,"div",31),S.Tb(1,"ngx-monaco-editor",32),S.bc("ngModelChange",function(e){return S.uc(t),S.fc().content=e}),S.Sb(),S.Sb()}if(2&t){const t=S.fc();S.Cb(1),S.lc("options",t.editorOptions)("ngModel",t.content)}}let it=(()=>{class t{constructor(t,e,o,i){this.dialog=t,this.activateRoute=e,this.router=o,this.odataService=i,this.routerID=-1,this.uiMode=_.c.Create,this.currentMode="",this.editorOptions={theme:"vs-dark"},this.content="New Knowledge Item",this.mathOptions={displayMode:!0,throwOnError:!1,errorColor:"#cc0000"},this.selectable=!0,this.addOnBlur=!0,this.separatorKeysCodes=[U.g,U.c],this.tags=[],this.itemFormGroup=new a.f({idControl:new a.d({value:null,disabled:!0}),titleControl:new a.d("",a.t.required),ctgyControl:new a.d,createdAtControl:new a.d({value:null,disabled:!0}),modifiedAtControl:new a.d({value:null,disabled:!0}),tagControl:new a.d})}get isDisplayMode(){return this.uiMode===_.c.Display}get isCreateMode(){return this.uiMode===_.c.Create}get isUpdateMode(){return this.uiMode===_.c.Update}get isEditable(){return this.uiMode===_.c.Create||this.uiMode===_.c.Update}ngOnInit(){this.destroyed$=new j.a(1),this.activateRoute.url.subscribe({next:t=>{var e,o;t instanceof Array&&t.length>0&&("create"===t[0].path?(this.routerID=-1,this.uiMode=_.c.Create,this.currentMode="Common.Create"):"edit"===t[0].path?(this.routerID=+t[1].path,this.uiMode=_.c.Update,this.currentMode="Common.Change"):"display"===t[0].path&&(this.routerID=+t[1].path,this.uiMode=_.c.Display,this.currentMode="Common.Display")),-1!==this.routerID?this.odataService.readKnowledgeItem(this.routerID).subscribe({next:t=>{var e,o,i,a,n;null===(e=this.itemFormGroup.get("idControl"))||void 0===e||e.setValue(t.ID),null===(o=this.itemFormGroup.get("titleControl"))||void 0===o||o.setValue(t.Title),null===(i=this.itemFormGroup.get("ctgyControl"))||void 0===i||i.setValue(t.ItemCategory),null===(a=this.itemFormGroup.get("createdAtControl"))||void 0===a||a.setValue(t.CreatedAt),null===(n=this.itemFormGroup.get("modifiedAtControl"))||void 0===n||n.setValue(t.ModifiedAt),this.content=t.Content,this.tags=t.Tags,this.isDisplayMode?this.itemFormGroup.disable():this.itemFormGroup.markAsPristine()},error:t=>{console.error(t)}}):(null===(e=this.itemFormGroup.get("idControl"))||void 0===e||e.setValue("NEW"),null===(o=this.itemFormGroup.get("idControl"))||void 0===o||o.disable())},error:t=>{console.error(t)}})}ngOnDestroy(){this.destroyed$&&(this.destroyed$.complete(),this.destroyed$=void 0)}onOK(){var t,e,o;if(this.isCreateMode){if(!this.itemFormGroup.valid)return void(this.itemFormGroup.errors&&console.log(this.itemFormGroup.errors));const e=new v.f;e.ItemCategory=v.g.Concept,e.Content=this.content,e.Title=null===(t=this.itemFormGroup.get("titleControl"))||void 0===t?void 0:t.value,e.Tags=this.tags,this.odataService.createKnowledgeItem(e).subscribe({next:t=>{this.router.navigate(["knowledge-item/display",t.ID])},error:t=>{}})}else if(this.isUpdateMode){if(!this.itemFormGroup.valid)return void(this.itemFormGroup.errors&&console.log(this.itemFormGroup.errors));const t=new v.f;t.ID=null===(e=this.itemFormGroup.get("idControl"))||void 0===e?void 0:e.value,t.ItemCategory=v.g.Concept,t.Content=this.content,t.Title=null===(o=this.itemFormGroup.get("titleControl"))||void 0===o?void 0:o.value,t.Tags=this.tags,this.odataService.changeKnowledgeItem(t).subscribe({next:e=>{this.router.navigate(["knowledge-item/display",t.ID])},error:t=>{}})}}openUploadDialog(){this.dialog.open(H.a,{width:"50%",height:"50%"}).afterClosed().subscribe({next:t=>{console.log(t),t.forEach(t=>{this.content+=`\n![Img](${t.url})\n `})}})}addTag(t){const e=t.input,o=t.value;(o||"").trim()&&this.tags.push(o.trim()),e&&(e.value="")}removeTag(t){const e=this.tags.indexOf(t);e>=0&&this.tags.splice(e,1)}onReturnToList(){this.router.navigate(["knowledge-item"])}}return t.\u0275fac=function(e){return new(e||t)(S.Nb($.a),S.Nb(d.a),S.Nb(d.b),S.Nb(T.b))},t.\u0275cmp=S.Hb({type:t,selectors:[["app-knowledge-item-detail"]],decls:65,vars:48,consts:[[3,"formGroup"],[1,"control-full-width"],["matInput","","type","text","placeholder","ID","formControlName","idControl"],["matInput","","type","text","formControlName","titleControl","required","","name","title","maxlength","30",3,"placeholder"],["title",""],["align","end"],["appearance","fill",1,"control-full-width"],["required","","formControlName","ctgyControl"],["value","0"],["value","1"],["matInput","","formControlName","createdAtControl",3,"matDatepicker"],["matSuffix","",3,"for"],["createdAt",""],["matInput","","formControlName","modifiedAtControl",3,"matDatepicker"],["modifiedAt",""],["formControlName","tagControl"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["placeholder","New tag...",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[4,"ngIf"],["fxLayout","row",1,"control-full-width",2,"height","500px"],["fxFlex","50",4,"ngIf"],["fxFlex","",2,"height","100%","overflow-y","scroll"],["emoji","","katex","",3,"data","katexOptions"],["mat-button","",3,"disabled","click"],["mat-button","",3,"click"],[3,"selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],[1,"toolbar-spacer"],["mat-raised-button","",3,"click"],["fxFlex","50"],[2,"height","100%",3,"options","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(S.Tb(0,"mat-card"),S.Tb(1,"mat-card-header"),S.Tb(2,"mat-card-title"),S.Ec(3),S.gc(4,"transloco"),S.Sb(),S.Tb(5,"mat-card-subtitle"),S.Ec(6),S.gc(7,"transloco"),S.Sb(),S.Sb(),S.Tb(8,"mat-card-content"),S.Tb(9,"form",0),S.Tb(10,"div",1),S.Ob(11,"input",2),S.Sb(),S.Tb(12,"mat-form-field",1),S.Ob(13,"input",3,4),S.gc(15,"transloco"),S.Tb(16,"mat-hint",5),S.Ec(17),S.Sb(),S.Sb(),S.Tb(18,"mat-form-field",6),S.Tb(19,"mat-label"),S.Ec(20),S.gc(21,"transloco"),S.Sb(),S.Tb(22,"mat-select",7),S.Tb(23,"mat-option",8),S.Ec(24),S.gc(25,"transloco"),S.Sb(),S.Tb(26,"mat-option",9),S.Ec(27),S.gc(28,"transloco"),S.Sb(),S.Sb(),S.Sb(),S.Tb(29,"mat-form-field",6),S.Tb(30,"mat-label"),S.Ec(31),S.gc(32,"transloco"),S.Sb(),S.Ob(33,"input",10),S.Ob(34,"mat-datepicker-toggle",11),S.Ob(35,"mat-datepicker",null,12),S.Sb(),S.Tb(37,"mat-form-field",6),S.Tb(38,"mat-label"),S.Ec(39),S.gc(40,"transloco"),S.Sb(),S.Ob(41,"input",13),S.Ob(42,"mat-datepicker-toggle",11),S.Ob(43,"mat-datepicker",null,14),S.Sb(),S.Tb(45,"mat-form-field",6),S.Tb(46,"mat-label"),S.Ec(47),S.gc(48,"transloco"),S.Sb(),S.Tb(49,"mat-chip-list",15,16),S.Dc(51,tt,3,4,"mat-chip",17),S.Tb(52,"input",18),S.bc("matChipInputTokenEnd",function(t){return e.addTag(t)}),S.Sb(),S.Sb(),S.Sb(),S.Sb(),S.Dc(53,et,8,3,"mat-toolbar",19),S.Tb(54,"div",20),S.Dc(55,ot,2,2,"div",21),S.Tb(56,"div",22),S.Ob(57,"markdown",23),S.Sb(),S.Sb(),S.Sb(),S.Tb(58,"mat-card-actions"),S.Tb(59,"button",24),S.bc("click",function(){return e.onOK()}),S.Ec(60),S.gc(61,"transloco"),S.Sb(),S.Tb(62,"button",25),S.bc("click",function(){return e.onReturnToList()}),S.Ec(63),S.gc(64,"transloco"),S.Sb(),S.Sb(),S.Sb()),2&t){const t=S.sc(14),o=S.sc(36),i=S.sc(44),a=S.sc(50);S.Cb(3),S.Fc(S.hc(4,26,"KnowledgeItem")),S.Cb(3),S.Fc(S.hc(7,28,e.currentMode)),S.Cb(3),S.lc("formGroup",e.itemFormGroup),S.Cb(4),S.mc("placeholder",S.hc(15,30,"Title")),S.Cb(4),S.Gc("",t.value.length," / 30"),S.Cb(3),S.Fc(S.hc(21,32,"Category")),S.Cb(4),S.Fc(S.hc(25,34,"KnowledgeItemCategory.Concept")),S.Cb(3),S.Fc(S.hc(28,36,"KnowledgeItemCategory.Formula")),S.Cb(4),S.Fc(S.hc(32,38,"CreatedAt")),S.Cb(2),S.lc("matDatepicker",o),S.Cb(1),S.lc("for",o),S.Cb(5),S.Fc(S.hc(40,40,"ModifiedAt")),S.Cb(2),S.lc("matDatepicker",i),S.Cb(1),S.lc("for",i),S.Cb(5),S.Fc(S.hc(48,42,"Tags")),S.Cb(4),S.lc("ngForOf",e.tags),S.Cb(1),S.lc("matChipInputFor",a)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur),S.Cb(1),S.lc("ngIf",e.isCreateMode),S.Cb(2),S.lc("ngIf",!e.isDisplayMode),S.Cb(2),S.lc("data",e.content)("katexOptions",e.mathOptions),S.Cb(2),S.lc("disabled",!(e.isEditable&&e.itemFormGroup.valid)),S.Cb(1),S.Fc(S.hc(61,44,"Save")),S.Cb(3),S.Fc(S.hc(64,46,"Common.ReturnToList"))}},directives:[V.a,V.d,V.g,V.f,V.c,a.u,a.n,a.g,z.b,a.c,a.m,a.e,q.c,a.s,a.i,q.f,q.g,B.a,Q.m,J.b,J.d,q.i,J.a,X.c,i.l,X.b,i.m,W.c,W.a,r.a,V.b,I.b,X.a,Y.a,X.d,w.a,n.a,a.p],pipes:[c.d],styles:[".example-form[_ngcontent-%COMP%]{margin:8px;min-width:150px;max-width:500px;width:100%}.control-full-width[_ngcontent-%COMP%]{width:100%}td[_ngcontent-%COMP%]{padding-right:8px}table[_ngcontent-%COMP%]{width:100%}.mat-card-actions[_ngcontent-%COMP%]{margin-top:50px}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),t})();const at=[{path:"",component:N},{path:"create",component:it},{path:"display/:id",component:it},{path:"edit/:id",component:it}];let nt=(()=>{class t{}return t.\u0275mod=S.Lb({type:t}),t.\u0275inj=S.Kb({factory:function(e){return new(e||t)},imports:[[d.d.forChild(at)],d.d]}),t})(),rt=(()=>{class t{}return t.\u0275mod=S.Lb({type:t}),t.\u0275inj=S.Kb({factory:function(e){return new(e||t)},imports:[[i.c,a.h,a.r,l.a,s.a,n.b,r.b.forChild(),nt,c.c]]}),t})()}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"U+IK":function(t,e,o){"use strict";o.r(e),o.d(e,"KnowledgeItemsModule",function(){return rt});var i=o("ofXK"),a=o("3Pt+"),n=o("0LvA"),r=o("lR5k"),c=o("QPBi"),l=o("jIBr"),s=o("dcRk"),d=o("tyNb"),b=o("M9IT"),m=o("Dh3D"),u=o("VRyK"),h=o("LRne"),p=o("JX91"),g=o("eIep"),C=o("lJxs"),f=o("JIr8"),v=o("VHTt"),S=o("fXoL"),T=o("o0su"),w=o("/t3+"),I=o("bTqV"),y=o("+0xr"),D=o("Xa2L");function F(t,e){1&t&&S.Ob(0,"mat-progress-spinner")}function O(t,e){if(1&t&&(S.Tb(0,"div",16),S.Dc(1,F,1,0,"mat-progress-spinner",17),S.Sb()),2&t){const t=S.fc();S.Cb(1),S.lc("ngIf",t.isLoadingResults)}}function x(t,e){1&t&&(S.Tb(0,"th",18),S.Ec(1,"#"),S.Sb())}function M(t,e){if(1&t&&(S.Tb(0,"td",19),S.Tb(1,"div"),S.Ec(2),S.Tb(3,"a",20),S.Ec(4),S.gc(5,"transloco"),S.Sb(),S.Tb(6,"a",20),S.Ec(7),S.gc(8,"transloco"),S.Sb(),S.Sb(),S.Sb()),2&t){const t=e.$implicit;S.Cb(2),S.Gc(" ",t.ID," "),S.Cb(1),S.nc("routerLink","display/",t.ID,""),S.Cb(1),S.Fc(S.hc(5,5,"Display")),S.Cb(2),S.nc("routerLink","edit/",t.ID,""),S.Cb(1),S.Fc(S.hc(8,7,"Change"))}}function k(t,e){1&t&&(S.Tb(0,"th",18),S.Ec(1),S.gc(2,"transloco"),S.Sb()),2&t&&(S.Cb(1),S.Fc(S.hc(2,1,"Category")))}function E(t,e){if(1&t&&(S.Tb(0,"td",19),S.Ec(1),S.gc(2,"transloco"),S.Sb()),2&t){const t=e.$implicit,o=S.fc();S.Cb(1),S.Fc(S.hc(2,1,o.getKnowledgeItemCategoryName(t.Category)))}}function G(t,e){1&t&&(S.Tb(0,"th",18),S.Ec(1),S.gc(2,"transloco"),S.Sb()),2&t&&(S.Cb(1),S.Fc(S.hc(2,1,"Title")))}function R(t,e){if(1&t&&(S.Tb(0,"td",19),S.Ec(1),S.Sb()),2&t){const t=e.$implicit;S.Cb(1),S.Fc(t.Title)}}function K(t,e){1&t&&(S.Tb(0,"th",18),S.Ec(1),S.gc(2,"transloco"),S.Sb()),2&t&&(S.Cb(1),S.Fc(S.hc(2,1,"CreatedAt")))}function L(t,e){if(1&t&&(S.Tb(0,"td",19),S.Ec(1),S.gc(2,"date"),S.Sb()),2&t){const t=e.$implicit;S.Cb(1),S.Fc(S.ic(2,1,t.CreatedAt,"yyyy-M-d HH:mm:ss"))}}function A(t,e){1&t&&S.Ob(0,"tr",21)}function P(t,e){1&t&&S.Ob(0,"tr",22)}let N=(()=>{class t{constructor(t,e){this.odataService=t,this.router=e,this.displayedColumns=["id","category","title","createdat"],this.dataSource=[],this.resultsLength=0,this.isLoadingResults=!0}getKnowledgeItemCategoryName(t){return Object(v.s)(t)}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),Object(u.a)(this.sort.sortChange,this.paginator.page).pipe(Object(p.a)({}),Object(g.a)(()=>{this.isLoadingResults=!0;const t=this.paginator.pageSize;return this.odataService.getKnowledgeItems(t,t*this.paginator.pageIndex,this.sort.active,this.sort.direction)}),Object(C.a)(t=>(this.isLoadingResults=!1,this.resultsLength=t.totalCount,t.items)),Object(f.a)(()=>(this.isLoadingResults=!1,Object(h.a)([])))).subscribe(t=>this.dataSource=t)}onGoToPreview(){const t=[];this.dataSource.forEach(e=>{t.push({refType:v.q.KnowledgeItem,refId:e.ID})}),this.odataService.previewObjList=t,this.router.navigate(["preview"])}resetPaging(){this.paginator.pageIndex=0}}return t.\u0275fac=function(e){return new(e||t)(S.Nb(T.b),S.Nb(d.b))},t.\u0275cmp=S.Hb({type:t,selectors:[["app-knowledge-items"]],viewQuery:function(t,e){if(1&t&&(S.Ic(b.a,!0),S.Ic(m.a,!0)),2&t){let t;S.rc(t=S.cc())&&(e.paginator=t.first),S.rc(t=S.cc())&&(e.sort=t.first)}},decls:31,vars:16,consts:[[1,"toolbar-spacer"],["mat-stroked-button","","routerLink","create"],["mat-stroked-button","",3,"disabled","click"],[1,"example-container","mat-elevation-z8"],["class","example-loading-shade",4,"ngIf"],[1,"example-table-container"],["mat-table","","matSort","","matSortActive","createdat","matSortDisableClear","",1,"example-table",3,"dataSource","matSortChange"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","category"],["matColumnDef","title"],["matColumnDef","createdat"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize"],[1,"example-loading-shade"],[4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-button","",3,"routerLink"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(S.Tb(0,"mat-toolbar-row"),S.Tb(1,"span"),S.Ec(2),S.gc(3,"transloco"),S.Sb(),S.Ob(4,"span",0),S.Tb(5,"section"),S.Tb(6,"a",1),S.Ec(7),S.gc(8,"transloco"),S.Sb(),S.Tb(9,"a",2),S.bc("click",function(){return e.onGoToPreview()}),S.Ec(10),S.gc(11,"transloco"),S.Sb(),S.Sb(),S.Sb(),S.Tb(12,"div",3),S.Dc(13,O,2,1,"div",4),S.Tb(14,"div",5),S.Tb(15,"table",6),S.bc("matSortChange",function(){return e.resetPaging()}),S.Rb(16,7),S.Dc(17,x,2,0,"th",8),S.Dc(18,M,9,9,"td",9),S.Qb(),S.Rb(19,10),S.Dc(20,k,3,3,"th",8),S.Dc(21,E,3,3,"td",9),S.Qb(),S.Rb(22,11),S.Dc(23,G,3,3,"th",8),S.Dc(24,R,2,1,"td",9),S.Qb(),S.Rb(25,12),S.Dc(26,K,3,3,"th",8),S.Dc(27,L,3,4,"td",9),S.Qb(),S.Dc(28,A,1,0,"tr",13),S.Dc(29,P,1,0,"tr",14),S.Sb(),S.Sb(),S.Ob(30,"mat-paginator",15),S.Sb()),2&t&&(S.Cb(2),S.Fc(S.hc(3,10,"KnowledgeItem")),S.Cb(5),S.Fc(S.hc(8,12,"Create")),S.Cb(2),S.lc("disabled",e.dataSource.length<=0),S.Cb(1),S.Fc(S.hc(11,14,"Common.Preview")),S.Cb(3),S.lc("ngIf",e.isLoadingResults),S.Cb(2),S.lc("dataSource",e.dataSource),S.Cb(13),S.lc("matHeaderRowDef",e.displayedColumns),S.Cb(1),S.lc("matRowDefColumns",e.displayedColumns),S.Cb(1),S.lc("length",e.resultsLength)("pageSize",20))},directives:[w.c,I.a,d.c,i.m,y.j,m.a,y.c,y.e,y.b,y.g,y.i,b.a,D.a,y.d,y.a,y.f,y.h],pipes:[c.d,i.e],styles:[".example-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.example-container[_ngcontent-%COMP%]{position:relative;min-height:500px}.example-table-container[_ngcontent-%COMP%]{position:relative;min-height:400px;overflow:auto}table[_ngcontent-%COMP%]{width:100%;height:100%}.example-loading-shade[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.mat-column-id[_ngcontent-%COMP%]{max-width:100px}.mat-column-createdat[_ngcontent-%COMP%]{max-width:124px}"]}),t})();var j=o("jtHE"),U=o("FtGj"),_=o("rCpU"),H=o("HKRH"),$=o("0IaG"),V=o("Wp6s"),z=o("qFsG"),q=o("kmnG"),B=o("d3UM"),Q=o("FKr1"),J=o("iadO"),X=o("A5z7"),W=o("XiUz"),Y=o("NFeN");function Z(t,e){1&t&&(S.Tb(0,"mat-icon",28),S.Ec(1,"cancel"),S.Sb())}function tt(t,e){if(1&t){const t=S.Ub();S.Tb(0,"mat-chip",26),S.bc("removed",function(){S.uc(t);const o=e.$implicit;return S.fc().removeTag(o)}),S.Ec(1),S.Dc(2,Z,2,0,"mat-icon",27),S.Sb()}if(2&t){const t=e.$implicit,o=S.fc();S.lc("selectable",o.selectable)("removable",o.isEditable),S.Cb(1),S.Gc(" ",t," "),S.Cb(1),S.lc("ngIf",o.isEditable)}}function et(t,e){if(1&t){const t=S.Ub();S.Tb(0,"mat-toolbar"),S.Tb(1,"h3"),S.Ec(2),S.gc(3,"transloco"),S.Sb(),S.Ob(4,"div",29),S.Tb(5,"button",30),S.bc("click",function(){return S.uc(t),S.fc().openUploadDialog()}),S.Tb(6,"mat-icon"),S.Ec(7,"file_upload"),S.Sb(),S.Sb(),S.Sb()}2&t&&(S.Cb(2),S.Fc(S.hc(3,1,"Content")))}function ot(t,e){if(1&t){const t=S.Ub();S.Tb(0,"div",31),S.Tb(1,"ngx-monaco-editor",32),S.bc("ngModelChange",function(e){return S.uc(t),S.fc().content=e}),S.Sb(),S.Sb()}if(2&t){const t=S.fc();S.Cb(1),S.lc("options",t.editorOptions)("ngModel",t.content)}}let it=(()=>{class t{constructor(t,e,o,i){this.dialog=t,this.activateRoute=e,this.router=o,this.odataService=i,this.routerID=-1,this.uiMode=_.c.Create,this.currentMode="",this.editorOptions={theme:"vs-dark"},this.content="New Knowledge Item",this.mathOptions={displayMode:!0,throwOnError:!1,errorColor:"#cc0000"},this.selectable=!0,this.addOnBlur=!0,this.separatorKeysCodes=[U.g,U.c],this.tags=[],this.itemFormGroup=new a.f({idControl:new a.d({value:null,disabled:!0}),titleControl:new a.d("",a.t.required),ctgyControl:new a.d,createdAtControl:new a.d({value:null,disabled:!0}),modifiedAtControl:new a.d({value:null,disabled:!0}),tagControl:new a.d})}get isDisplayMode(){return this.uiMode===_.c.Display}get isCreateMode(){return this.uiMode===_.c.Create}get isUpdateMode(){return this.uiMode===_.c.Update}get isEditable(){return this.uiMode===_.c.Create||this.uiMode===_.c.Update}ngOnInit(){this.destroyed$=new j.a(1),this.activateRoute.url.subscribe({next:t=>{var e,o;t instanceof Array&&t.length>0&&("create"===t[0].path?(this.routerID=-1,this.uiMode=_.c.Create,this.currentMode="Common.Create"):"edit"===t[0].path?(this.routerID=+t[1].path,this.uiMode=_.c.Update,this.currentMode="Common.Change"):"display"===t[0].path&&(this.routerID=+t[1].path,this.uiMode=_.c.Display,this.currentMode="Common.Display")),-1!==this.routerID?this.odataService.readKnowledgeItem(this.routerID,this.uiMode===_.c.Update).subscribe({next:t=>{var e,o,i,a,n;null===(e=this.itemFormGroup.get("idControl"))||void 0===e||e.setValue(t.ID),null===(o=this.itemFormGroup.get("titleControl"))||void 0===o||o.setValue(t.Title),null===(i=this.itemFormGroup.get("ctgyControl"))||void 0===i||i.setValue(t.ItemCategory),null===(a=this.itemFormGroup.get("createdAtControl"))||void 0===a||a.setValue(t.CreatedAt),null===(n=this.itemFormGroup.get("modifiedAtControl"))||void 0===n||n.setValue(t.ModifiedAt),this.content=t.Content,this.tags=t.Tags,this.isDisplayMode?this.itemFormGroup.disable():this.itemFormGroup.markAsPristine()},error:t=>{console.error(t)}}):(null===(e=this.itemFormGroup.get("idControl"))||void 0===e||e.setValue("NEW"),null===(o=this.itemFormGroup.get("idControl"))||void 0===o||o.disable())},error:t=>{console.error(t)}})}ngOnDestroy(){this.destroyed$&&(this.destroyed$.complete(),this.destroyed$=void 0)}onOK(){var t,e,o;if(this.isCreateMode){if(!this.itemFormGroup.valid)return void(this.itemFormGroup.errors&&console.log(this.itemFormGroup.errors));const e=new v.f;e.ItemCategory=v.g.Concept,e.Content=this.content,e.Title=null===(t=this.itemFormGroup.get("titleControl"))||void 0===t?void 0:t.value,e.Tags=this.tags,this.odataService.createKnowledgeItem(e).subscribe({next:t=>{this.router.navigate(["knowledge-item/display",t.ID])},error:t=>{}})}else if(this.isUpdateMode){if(!this.itemFormGroup.valid)return void(this.itemFormGroup.errors&&console.log(this.itemFormGroup.errors));const t=new v.f;t.ID=null===(e=this.itemFormGroup.get("idControl"))||void 0===e?void 0:e.value,t.ItemCategory=v.g.Concept,t.Content=this.content,t.Title=null===(o=this.itemFormGroup.get("titleControl"))||void 0===o?void 0:o.value,t.Tags=this.tags,this.odataService.changeKnowledgeItem(t).subscribe({next:e=>{this.router.navigate(["knowledge-item/display",t.ID])},error:t=>{}})}}openUploadDialog(){this.dialog.open(H.a,{width:"50%",height:"50%"}).afterClosed().subscribe({next:t=>{console.log(t),t.forEach(t=>{this.content+=`\n![Img](${t.url})\n `})}})}addTag(t){const e=t.input,o=t.value;(o||"").trim()&&this.tags.push(o.trim()),e&&(e.value="")}removeTag(t){const e=this.tags.indexOf(t);e>=0&&this.tags.splice(e,1)}onReturnToList(){this.router.navigate(["knowledge-item"])}}return t.\u0275fac=function(e){return new(e||t)(S.Nb($.a),S.Nb(d.a),S.Nb(d.b),S.Nb(T.b))},t.\u0275cmp=S.Hb({type:t,selectors:[["app-knowledge-item-detail"]],decls:65,vars:48,consts:[[3,"formGroup"],[1,"control-full-width"],["matInput","","type","text","placeholder","ID","formControlName","idControl"],["matInput","","type","text","formControlName","titleControl","required","","name","title","maxlength","30",3,"placeholder"],["title",""],["align","end"],["appearance","fill",1,"control-full-width"],["required","","formControlName","ctgyControl"],["value","0"],["value","1"],["matInput","","formControlName","createdAtControl",3,"matDatepicker"],["matSuffix","",3,"for"],["createdAt",""],["matInput","","formControlName","modifiedAtControl",3,"matDatepicker"],["modifiedAt",""],["formControlName","tagControl"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["placeholder","New tag...",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[4,"ngIf"],["fxLayout","row",1,"control-full-width",2,"height","500px"],["fxFlex","50",4,"ngIf"],["fxFlex","",2,"height","100%","overflow-y","scroll"],["emoji","","katex","",3,"data","katexOptions"],["mat-button","",3,"disabled","click"],["mat-button","",3,"click"],[3,"selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],[1,"toolbar-spacer"],["mat-raised-button","",3,"click"],["fxFlex","50"],[2,"height","100%",3,"options","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(S.Tb(0,"mat-card"),S.Tb(1,"mat-card-header"),S.Tb(2,"mat-card-title"),S.Ec(3),S.gc(4,"transloco"),S.Sb(),S.Tb(5,"mat-card-subtitle"),S.Ec(6),S.gc(7,"transloco"),S.Sb(),S.Sb(),S.Tb(8,"mat-card-content"),S.Tb(9,"form",0),S.Tb(10,"div",1),S.Ob(11,"input",2),S.Sb(),S.Tb(12,"mat-form-field",1),S.Ob(13,"input",3,4),S.gc(15,"transloco"),S.Tb(16,"mat-hint",5),S.Ec(17),S.Sb(),S.Sb(),S.Tb(18,"mat-form-field",6),S.Tb(19,"mat-label"),S.Ec(20),S.gc(21,"transloco"),S.Sb(),S.Tb(22,"mat-select",7),S.Tb(23,"mat-option",8),S.Ec(24),S.gc(25,"transloco"),S.Sb(),S.Tb(26,"mat-option",9),S.Ec(27),S.gc(28,"transloco"),S.Sb(),S.Sb(),S.Sb(),S.Tb(29,"mat-form-field",6),S.Tb(30,"mat-label"),S.Ec(31),S.gc(32,"transloco"),S.Sb(),S.Ob(33,"input",10),S.Ob(34,"mat-datepicker-toggle",11),S.Ob(35,"mat-datepicker",null,12),S.Sb(),S.Tb(37,"mat-form-field",6),S.Tb(38,"mat-label"),S.Ec(39),S.gc(40,"transloco"),S.Sb(),S.Ob(41,"input",13),S.Ob(42,"mat-datepicker-toggle",11),S.Ob(43,"mat-datepicker",null,14),S.Sb(),S.Tb(45,"mat-form-field",6),S.Tb(46,"mat-label"),S.Ec(47),S.gc(48,"transloco"),S.Sb(),S.Tb(49,"mat-chip-list",15,16),S.Dc(51,tt,3,4,"mat-chip",17),S.Tb(52,"input",18),S.bc("matChipInputTokenEnd",function(t){return e.addTag(t)}),S.Sb(),S.Sb(),S.Sb(),S.Sb(),S.Dc(53,et,8,3,"mat-toolbar",19),S.Tb(54,"div",20),S.Dc(55,ot,2,2,"div",21),S.Tb(56,"div",22),S.Ob(57,"markdown",23),S.Sb(),S.Sb(),S.Sb(),S.Tb(58,"mat-card-actions"),S.Tb(59,"button",24),S.bc("click",function(){return e.onOK()}),S.Ec(60),S.gc(61,"transloco"),S.Sb(),S.Tb(62,"button",25),S.bc("click",function(){return e.onReturnToList()}),S.Ec(63),S.gc(64,"transloco"),S.Sb(),S.Sb(),S.Sb()),2&t){const t=S.sc(14),o=S.sc(36),i=S.sc(44),a=S.sc(50);S.Cb(3),S.Fc(S.hc(4,26,"KnowledgeItem")),S.Cb(3),S.Fc(S.hc(7,28,e.currentMode)),S.Cb(3),S.lc("formGroup",e.itemFormGroup),S.Cb(4),S.mc("placeholder",S.hc(15,30,"Title")),S.Cb(4),S.Gc("",t.value.length," / 30"),S.Cb(3),S.Fc(S.hc(21,32,"Category")),S.Cb(4),S.Fc(S.hc(25,34,"KnowledgeItemCategory.Concept")),S.Cb(3),S.Fc(S.hc(28,36,"KnowledgeItemCategory.Formula")),S.Cb(4),S.Fc(S.hc(32,38,"CreatedAt")),S.Cb(2),S.lc("matDatepicker",o),S.Cb(1),S.lc("for",o),S.Cb(5),S.Fc(S.hc(40,40,"ModifiedAt")),S.Cb(2),S.lc("matDatepicker",i),S.Cb(1),S.lc("for",i),S.Cb(5),S.Fc(S.hc(48,42,"Tags")),S.Cb(4),S.lc("ngForOf",e.tags),S.Cb(1),S.lc("matChipInputFor",a)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur),S.Cb(1),S.lc("ngIf",e.isCreateMode),S.Cb(2),S.lc("ngIf",!e.isDisplayMode),S.Cb(2),S.lc("data",e.content)("katexOptions",e.mathOptions),S.Cb(2),S.lc("disabled",!(e.isEditable&&e.itemFormGroup.valid)),S.Cb(1),S.Fc(S.hc(61,44,"Save")),S.Cb(3),S.Fc(S.hc(64,46,"Common.ReturnToList"))}},directives:[V.a,V.d,V.g,V.f,V.c,a.u,a.n,a.g,z.b,a.c,a.m,a.e,q.c,a.s,a.i,q.f,q.g,B.a,Q.m,J.b,J.d,q.i,J.a,X.c,i.l,X.b,i.m,W.c,W.a,r.a,V.b,I.b,X.a,Y.a,X.d,w.a,n.a,a.p],pipes:[c.d],styles:[".example-form[_ngcontent-%COMP%]{margin:8px;min-width:150px;max-width:500px;width:100%}.control-full-width[_ngcontent-%COMP%]{width:100%}td[_ngcontent-%COMP%]{padding-right:8px}table[_ngcontent-%COMP%]{width:100%}.mat-card-actions[_ngcontent-%COMP%]{margin-top:50px}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),t})();const at=[{path:"",component:N},{path:"create",component:it},{path:"display/:id",component:it},{path:"edit/:id",component:it}];let nt=(()=>{class t{}return t.\u0275mod=S.Lb({type:t}),t.\u0275inj=S.Kb({factory:function(e){return new(e||t)},imports:[[d.d.forChild(at)],d.d]}),t})(),rt=(()=>{class t{}return t.\u0275mod=S.Lb({type:t}),t.\u0275inj=S.Kb({factory:function(e){return new(e||t)},imports:[[i.c,a.h,a.r,l.a,s.a,n.b,r.b.forChild(),nt,c.c]]}),t})()}}]); \ No newline at end of file diff --git a/dist/8.4c75a0c09443946aa89d.js b/dist/8.37a0467129bd916d7b46.js similarity index 52% rename from dist/8.4c75a0c09443946aa89d.js rename to dist/8.37a0467129bd916d7b46.js index fe95c483..23ceb54e 100644 --- a/dist/8.4c75a0c09443946aa89d.js +++ b/dist/8.37a0467129bd916d7b46.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{V7M2:function(t,e,o){"use strict";o.r(e),o.d(e,"ExerciseItemsModule",function(){return dt});var i=o("ofXK"),n=o("3Pt+"),c=o("0LvA"),a=o("lR5k"),r=o("QPBi"),s=o("jIBr"),l=o("dcRk"),b=o("tyNb"),d=o("M9IT"),m=o("Dh3D"),h=o("VRyK"),u=o("LRne"),p=o("JX91"),g=o("eIep"),C=o("lJxs"),f=o("JIr8"),T=o("VHTt"),S=o("NUjs"),v=o("fXoL"),w=o("o0su"),I=o("/t3+"),x=o("bTqV"),O=o("+0xr"),y=o("Xa2L");function D(t,e){1&t&&v.Ob(0,"mat-progress-spinner")}function E(t,e){if(1&t&&(v.Tb(0,"div",17),v.Dc(1,D,1,0,"mat-progress-spinner",18),v.Sb()),2&t){const t=v.fc();v.Cb(1),v.lc("ngIf",t.isLoadingResults)}}function F(t,e){1&t&&(v.Tb(0,"th",19),v.Ec(1,"#"),v.Sb())}function M(t,e){if(1&t&&(v.Tb(0,"td",20),v.Tb(1,"div"),v.Ec(2),v.Tb(3,"a",21),v.Ec(4),v.gc(5,"transloco"),v.Sb(),v.Tb(6,"a",21),v.Ec(7),v.gc(8,"transloco"),v.Sb(),v.Sb(),v.Sb()),2&t){const t=e.$implicit;v.Cb(2),v.Gc(" ",t.ID," "),v.Cb(1),v.nc("routerLink","display/",t.ID,""),v.Cb(1),v.Fc(v.hc(5,5,"Display")),v.Cb(2),v.nc("routerLink","edit/",t.ID,""),v.Cb(1),v.Fc(v.hc(8,7,"Change"))}}function k(t,e){1&t&&(v.Tb(0,"th",19),v.Ec(1),v.gc(2,"transloco"),v.Sb()),2&t&&(v.Cb(1),v.Fc(v.hc(2,1,"Type")))}function j(t,e){if(1&t&&(v.Tb(0,"td",20),v.Ec(1),v.gc(2,"transloco"),v.Sb()),2&t){const t=e.$implicit,o=v.fc();v.Cb(1),v.Fc(v.hc(2,1,o.getExerciseItemTypeName(t.ItemType)))}}function A(t,e){1&t&&(v.Tb(0,"th",19),v.Ec(1),v.gc(2,"transloco"),v.Sb()),2&t&&(v.Cb(1),v.Fc(v.hc(2,1,"Tag")))}function G(t,e){if(1&t&&(v.Tb(0,"td",20),v.Ec(1),v.Sb()),2&t){const t=e.$implicit;v.Cb(1),v.Fc(t.Tags.toString())}}function R(t,e){1&t&&(v.Tb(0,"th",19),v.Ec(1),v.gc(2,"transloco"),v.Sb()),2&t&&(v.Cb(1),v.Fc(v.hc(2,1,"KnowledgeItem")))}function L(t,e){if(1&t&&(v.Tb(0,"td",20),v.Ec(1),v.Sb()),2&t){const t=e.$implicit;v.Cb(1),v.Fc(t.KnowledgeItemID)}}function P(t,e){1&t&&(v.Tb(0,"th",19),v.Ec(1),v.gc(2,"transloco"),v.Sb()),2&t&&(v.Cb(1),v.Fc(v.hc(2,1,"CreatedAt")))}function N(t,e){if(1&t&&(v.Tb(0,"td",20),v.Ec(1),v.gc(2,"date"),v.Sb()),2&t){const t=e.$implicit;v.Cb(1),v.Fc(v.ic(2,1,t.CreatedAt,"yyyy-M-d HH:mm:ss"))}}function U(t,e){1&t&&v.Ob(0,"tr",22)}function K(t,e){1&t&&v.Ob(0,"tr",23)}let _=(()=>{class t{constructor(t,e){this.odataService=t,this.router=e,this.displayedColumns=["id","itemtype","tags","knowledgeitem","createdat"],this.dataSource=[],this.resultsLength=0,this.isLoadingResults=!0}getExerciseItemTypeName(t){return Object(S.b)(t)}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),Object(h.a)(this.sort.sortChange,this.paginator.page).pipe(Object(p.a)({}),Object(g.a)(()=>{this.isLoadingResults=!0;const t=this.paginator.pageSize;return this.odataService.getExerciseItems(t,t*this.paginator.pageIndex,this.sort.active,this.sort.direction)}),Object(C.a)(t=>(this.isLoadingResults=!1,this.resultsLength=t.totalCount,t.items)),Object(f.a)(()=>(this.isLoadingResults=!1,Object(u.a)([])))).subscribe(t=>this.dataSource=t)}onGoToPreview(){const t=[];this.dataSource.forEach(e=>{t.push({refType:T.q.ExerciseItem,refId:e.ID})}),this.odataService.previewObjList=t,this.router.navigate(["preview"])}resetPaging(){this.paginator.pageIndex=0}}return t.\u0275fac=function(e){return new(e||t)(v.Nb(w.b),v.Nb(b.b))},t.\u0275cmp=v.Hb({type:t,selectors:[["app-exercise-items"]],viewQuery:function(t,e){if(1&t&&(v.Ic(d.a,!0),v.Ic(m.a,!0)),2&t){let t;v.rc(t=v.cc())&&(e.paginator=t.first),v.rc(t=v.cc())&&(e.sort=t.first)}},decls:34,vars:16,consts:[[1,"toolbar-spacer"],["mat-stroked-button","","routerLink","create"],["mat-stroked-button","",3,"disabled","click"],[1,"example-container","mat-elevation-z8"],["class","example-loading-shade",4,"ngIf"],[1,"table-container"],["mat-table","","matSort","","matSortActive","createdat",3,"dataSource","matSortChange"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","itemtype"],["matColumnDef","tags"],["matColumnDef","knowledgeitem"],["matColumnDef","createdat"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize"],[1,"example-loading-shade"],[4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-button","",3,"routerLink"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(v.Tb(0,"mat-toolbar-row"),v.Tb(1,"span"),v.Ec(2),v.gc(3,"transloco"),v.Sb(),v.Ob(4,"span",0),v.Tb(5,"section"),v.Tb(6,"a",1),v.Ec(7),v.gc(8,"transloco"),v.Sb(),v.Tb(9,"a",2),v.bc("click",function(){return e.onGoToPreview()}),v.Ec(10),v.gc(11,"transloco"),v.Sb(),v.Sb(),v.Sb(),v.Tb(12,"div",3),v.Dc(13,E,2,1,"div",4),v.Tb(14,"div",5),v.Tb(15,"table",6),v.bc("matSortChange",function(){return e.resetPaging()}),v.Rb(16,7),v.Dc(17,F,2,0,"th",8),v.Dc(18,M,9,9,"td",9),v.Qb(),v.Rb(19,10),v.Dc(20,k,3,3,"th",8),v.Dc(21,j,3,3,"td",9),v.Qb(),v.Rb(22,11),v.Dc(23,A,3,3,"th",8),v.Dc(24,G,2,1,"td",9),v.Qb(),v.Rb(25,12),v.Dc(26,R,3,3,"th",8),v.Dc(27,L,2,1,"td",9),v.Qb(),v.Rb(28,13),v.Dc(29,P,3,3,"th",8),v.Dc(30,N,3,4,"td",9),v.Qb(),v.Dc(31,U,1,0,"tr",14),v.Dc(32,K,1,0,"tr",15),v.Sb(),v.Sb(),v.Ob(33,"mat-paginator",16),v.Sb()),2&t&&(v.Cb(2),v.Fc(v.hc(3,10,"ExerciseItem")),v.Cb(5),v.Fc(v.hc(8,12,"Create")),v.Cb(2),v.lc("disabled",e.dataSource.length<=0),v.Cb(1),v.Fc(v.hc(11,14,"Common.Preview")),v.Cb(3),v.lc("ngIf",e.isLoadingResults),v.Cb(2),v.lc("dataSource",e.dataSource),v.Cb(16),v.lc("matHeaderRowDef",e.displayedColumns),v.Cb(1),v.lc("matRowDefColumns",e.displayedColumns),v.Cb(1),v.lc("length",e.resultsLength)("pageSize",20))},directives:[I.c,x.a,b.c,i.m,O.j,m.a,O.c,O.e,O.b,O.g,O.i,d.a,y.a,O.d,O.a,O.f,O.h],pipes:[r.d,i.e],styles:[".example-container[_ngcontent-%COMP%]{position:relative;min-height:200px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:400px;overflow:auto}table[_ngcontent-%COMP%]{width:100%;height:100%}.example-loading-shade[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.mat-column-id[_ngcontent-%COMP%]{max-width:64px}.mat-column-itemtype[_ngcontent-%COMP%]{max-width:120px}.mat-column-tags[_ngcontent-%COMP%]{max-width:150px}.mat-column-created[_ngcontent-%COMP%]{max-width:124px}"]}),t})();var $=o("jtHE"),H=o("FtGj"),Q=o("rCpU"),V=o("HKRH"),z=o("0IaG"),B=o("Wp6s"),J=o("kmnG"),X=o("qFsG"),q=o("d3UM"),W=o("FKr1"),Y=o("iadO"),Z=o("A5z7"),tt=o("XiUz"),et=o("NFeN");function ot(t,e){1&t&&(v.Tb(0,"mat-icon",28),v.Ec(1,"cancel"),v.Sb())}function it(t,e){if(1&t){const t=v.Ub();v.Tb(0,"mat-chip",26),v.bc("removed",function(){v.uc(t);const o=e.$implicit;return v.fc().removeTag(o)}),v.Ec(1),v.Dc(2,ot,2,0,"mat-icon",27),v.Sb()}if(2&t){const t=e.$implicit,o=v.fc();v.lc("selectable",o.selectable)("removable",o.isEditable),v.Cb(1),v.Gc(" ",t," "),v.Cb(1),v.lc("ngIf",o.isEditable)}}function nt(t,e){if(1&t){const t=v.Ub();v.Tb(0,"mat-toolbar"),v.Tb(1,"h3"),v.Ec(2),v.gc(3,"transloco"),v.Sb(),v.Ob(4,"div",29),v.Tb(5,"button",30),v.bc("click",function(){return v.uc(t),v.fc().openUploadDialog()}),v.Ec(6,"Upload"),v.Sb(),v.Sb()}2&t&&(v.Cb(2),v.Fc(v.hc(3,1,"Content")))}function ct(t,e){if(1&t){const t=v.Ub();v.Tb(0,"div",31),v.Tb(1,"ngx-monaco-editor",32),v.bc("ngModelChange",function(e){return v.uc(t),v.fc().content=e}),v.Sb(),v.Sb()}if(2&t){const t=v.fc();v.Cb(1),v.lc("options",t.editorOptions)("ngModel",t.content)}}function at(t,e){if(1&t){const t=v.Ub();v.Tb(0,"mat-toolbar"),v.Tb(1,"h3"),v.Ec(2),v.gc(3,"transloco"),v.Sb(),v.Ob(4,"div",29),v.Tb(5,"button",30),v.bc("click",function(){return v.uc(t),v.fc().openAnswerUploadDialog()}),v.Tb(6,"mat-icon"),v.Ec(7,"file_upload"),v.Sb(),v.Sb(),v.Sb()}2&t&&(v.Cb(2),v.Fc(v.hc(3,1,"Answer")))}function rt(t,e){if(1&t){const t=v.Ub();v.Tb(0,"div",31),v.Tb(1,"ngx-monaco-editor",32),v.bc("ngModelChange",function(e){return v.uc(t),v.fc().answerContent=e}),v.Sb(),v.Sb()}if(2&t){const t=v.fc();v.Cb(1),v.lc("options",t.editorOptions)("ngModel",t.answerContent)}}let st=(()=>{class t{constructor(t,e,o,i){this.dialog=t,this.activateRoute=e,this.router=o,this.odataService=i,this.routerID=-1,this.uiMode=Q.c.Create,this.currentMode="",this.editorOptions={theme:"vs-dark"},this.content="New Exercise Item",this.answerContent="",this.mathOptions={displayMode:!0,throwOnError:!1,errorColor:"#cc0000"},this.selectable=!0,this.addOnBlur=!0,this.separatorKeysCodes=[H.g,H.c],this.tags=[],this.itemFormGroup=new n.f({idControl:new n.d({value:null,disabled:!0}),typeControl:new n.d,createdAtControl:new n.d({value:null,disabled:!0}),modifiedAtControl:new n.d({value:null,disabled:!0}),knowledgeControl:new n.d,tagControl:new n.d})}get isDisplayMode(){return this.uiMode===Q.c.Display}get isCreateMode(){return this.uiMode===Q.c.Create}get isUpdateMode(){return this.uiMode===Q.c.Update}get isEditable(){return this.uiMode===Q.c.Create||this.uiMode===Q.c.Update}ngOnInit(){this.destroyed$=new $.a(1),this.activateRoute.url.subscribe({next:t=>{t instanceof Array&&t.length>0&&("create"===t[0].path?(this.routerID=-1,this.uiMode=Q.c.Create,this.currentMode="Common.Create"):"edit"===t[0].path?(this.routerID=+t[1].path,this.uiMode=Q.c.Update,this.currentMode="Common.Change"):"display"===t[0].path&&(this.routerID=+t[1].path,this.uiMode=Q.c.Display,this.currentMode="Common.Display")),-1!==this.routerID&&this.odataService.readExerciseItem(this.routerID).subscribe({next:t=>{this.onSetItemData(t),this.itemObject=t},error:t=>{console.error(t)}})},error:t=>{console.error(t)}})}ngOnDestroy(){this.destroyed$&&(this.destroyed$.complete(),this.destroyed$=void 0)}onOK(){if(this.isCreateMode){if(!this.itemFormGroup.valid)return void(this.itemFormGroup.errors&&console.error(this.itemFormGroup.errors));this.itemObject=new S.a,this.itemObject.ItemType=this.itemFormGroup.get("typeControl").value,this.itemObject.Content=this.content,this.itemObject.Tags=this.tags,this.itemObject.Answer=this.answerContent,this.odataService.createExerciseItem(this.itemObject).subscribe({next:t=>{this.router.navigate(["/exercise-item/display",t.ID])},error:t=>{console.error(t)}})}else if(this.isUpdateMode){if(!this.itemFormGroup.valid)return void(this.itemFormGroup.errors&&console.log(this.itemFormGroup.errors));this.itemObject&&(this.itemObject.ItemType=this.itemFormGroup.get("typeControl").value,this.itemObject.Content=this.content,this.itemObject.Tags=this.tags,this.itemObject.Answer=this.answerContent,this.odataService.changeExerciseItem(this.itemObject).subscribe({next:t=>{this.router.navigate(["/exercise-item/display",t.ID])},error:t=>{console.error(t)}}))}}openUploadDialog(){this.dialog.open(V.a,{width:"50%",height:"50%"}).afterClosed().subscribe({next:t=>{console.log(t),t.forEach(t=>{this.content+=`\n![Img](${t.url})\n `})}})}openAnswerUploadDialog(){this.dialog.open(V.a,{width:"50%",height:"50%"}).afterClosed().subscribe({next:t=>{console.log(t),t.forEach(t=>{this.answerContent+=`\n ![Img](${t.url})\n `})}})}addTag(t){const e=t.input,o=t.value;(o||"").trim()&&this.tags.push(o.trim()),e&&(e.value="")}removeTag(t){const e=this.tags.indexOf(t);e>=0&&this.tags.splice(e,1)}onSetItemData(t){var e,o,i,n,c;null===(e=this.itemFormGroup.get("idControl"))||void 0===e||e.setValue(t.ID),null===(o=this.itemFormGroup.get("idControl"))||void 0===o||o.disable(),null===(i=this.itemFormGroup.get("typeControl"))||void 0===i||i.setValue(t.ItemType),null===(n=this.itemFormGroup.get("createdAtControl"))||void 0===n||n.setValue(t.CreatedAt),null===(c=this.itemFormGroup.get("modifiedAtControl"))||void 0===c||c.setValue(t.ModifiedAt),this.content=t.Content,this.tags=t.Tags,this.isDisplayMode?this.itemFormGroup.disable():this.itemFormGroup.markAsPristine()}onReturnToList(){this.router.navigate(["exercise-item"])}}return t.\u0275fac=function(e){return new(e||t)(v.Nb(z.a),v.Nb(b.a),v.Nb(b.b),v.Nb(w.b))},t.\u0275cmp=v.Hb({type:t,selectors:[["app-exercise-item-detail"]],decls:80,vars:60,consts:[[3,"formGroup"],["appearance","fill",1,"control-full-width"],["matInput","","type","text","placeholder","ID","formControlName","idControl"],["required","","formControlName","typeControl"],["value","0"],["value","1"],["value","2"],["value","3"],["value","4"],["matInput","","formControlName","createdAtControl",3,"matDatepicker"],["matSuffix","",3,"for"],["createdAt",""],["matInput","","formControlName","modifiedAtControl",3,"matDatepicker"],["modifiedAt",""],["formControlName","tagControl"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["placeholder","New tag...",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["matInput","","type","text","placeholder","Knowledge ID","formControlName","knowledgeControl"],[4,"ngIf"],["fxLayout","row",1,"control-full-width",2,"height","500px"],["fxFlex","50",4,"ngIf"],["fxFlex","",2,"height","100%","overflow-y","scroll"],["emoji","","katex","",3,"data","katexOptions"],["mat-button","",3,"disabled","click"],["mat-button","",3,"click"],[3,"selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],[1,"toolbar-spacer"],["mat-raised-button","",3,"click"],["fxFlex","50"],[2,"height","100%",3,"options","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(v.Tb(0,"mat-card"),v.Tb(1,"mat-card-header"),v.Tb(2,"mat-card-title"),v.Ec(3),v.gc(4,"transloco"),v.Sb(),v.Tb(5,"mat-card-subtitle"),v.Ec(6),v.gc(7,"transloco"),v.Sb(),v.Sb(),v.Tb(8,"mat-card-content"),v.Tb(9,"form",0),v.Tb(10,"mat-form-field",1),v.Tb(11,"mat-label"),v.Ec(12,"#"),v.Sb(),v.Ob(13,"input",2),v.Sb(),v.Tb(14,"mat-form-field",1),v.Tb(15,"mat-label"),v.Ec(16),v.gc(17,"transloco"),v.Sb(),v.Tb(18,"mat-select",3),v.Tb(19,"mat-option",4),v.Ec(20),v.gc(21,"transloco"),v.Sb(),v.Tb(22,"mat-option",5),v.Ec(23),v.gc(24,"transloco"),v.Sb(),v.Tb(25,"mat-option",6),v.Ec(26),v.gc(27,"transloco"),v.Sb(),v.Tb(28,"mat-option",7),v.Ec(29),v.gc(30,"transloco"),v.Sb(),v.Tb(31,"mat-option",8),v.Ec(32),v.gc(33,"transloco"),v.Sb(),v.Sb(),v.Sb(),v.Tb(34,"mat-form-field",1),v.Tb(35,"mat-label"),v.Ec(36),v.gc(37,"transloco"),v.Sb(),v.Ob(38,"input",9),v.Ob(39,"mat-datepicker-toggle",10),v.Ob(40,"mat-datepicker",null,11),v.Sb(),v.Tb(42,"mat-form-field",1),v.Tb(43,"mat-label"),v.Ec(44),v.gc(45,"transloco"),v.Sb(),v.Ob(46,"input",12),v.Ob(47,"mat-datepicker-toggle",10),v.Ob(48,"mat-datepicker",null,13),v.Sb(),v.Tb(50,"mat-form-field",1),v.Tb(51,"mat-label"),v.Ec(52),v.gc(53,"transloco"),v.Sb(),v.Tb(54,"mat-chip-list",14,15),v.Dc(56,it,3,4,"mat-chip",16),v.Tb(57,"input",17),v.bc("matChipInputTokenEnd",function(t){return e.addTag(t)}),v.Sb(),v.Sb(),v.Sb(),v.Tb(58,"mat-form-field",1),v.Tb(59,"mat-label"),v.Ec(60),v.gc(61,"transloco"),v.Sb(),v.Ob(62,"input",18),v.Sb(),v.Sb(),v.Dc(63,nt,7,3,"mat-toolbar",19),v.Tb(64,"div",20),v.Dc(65,ct,2,2,"div",21),v.Tb(66,"div",22),v.Ob(67,"markdown",23),v.Sb(),v.Sb(),v.Dc(68,at,8,3,"mat-toolbar",19),v.Tb(69,"div",20),v.Dc(70,rt,2,2,"div",21),v.Tb(71,"div",22),v.Ob(72,"markdown",23),v.Sb(),v.Sb(),v.Sb(),v.Tb(73,"mat-card-actions"),v.Tb(74,"button",24),v.bc("click",function(){return e.onOK()}),v.Ec(75),v.gc(76,"transloco"),v.Sb(),v.Tb(77,"button",25),v.bc("click",function(){return e.onReturnToList()}),v.Ec(78),v.gc(79,"transloco"),v.Sb(),v.Sb(),v.Sb()),2&t){const t=v.sc(41),o=v.sc(49),i=v.sc(55);v.Cb(3),v.Fc(v.hc(4,32,"ExerciseItem")),v.Cb(3),v.Fc(v.hc(7,34,e.currentMode)),v.Cb(3),v.lc("formGroup",e.itemFormGroup),v.Cb(7),v.Fc(v.hc(17,36,"Type")),v.Cb(4),v.Fc(v.hc(21,38,"ExerciseItemType.Question")),v.Cb(3),v.Fc(v.hc(24,40,"ExerciseItemType.SingleChoice")),v.Cb(3),v.Fc(v.hc(27,42,"ExerciseItemType.MultipleChoices")),v.Cb(3),v.Fc(v.hc(30,44,"ExerciseItemType.ShortAnswer")),v.Cb(3),v.Fc(v.hc(33,46,"ExerciseItemType.EssayQuestion")),v.Cb(4),v.Fc(v.hc(37,48,"CreatedAt")),v.Cb(2),v.lc("matDatepicker",t),v.Cb(1),v.lc("for",t),v.Cb(5),v.Fc(v.hc(45,50,"ModifiedAt")),v.Cb(2),v.lc("matDatepicker",o),v.Cb(1),v.lc("for",o),v.Cb(5),v.Fc(v.hc(53,52,"Tags")),v.Cb(4),v.lc("ngForOf",e.tags),v.Cb(1),v.lc("matChipInputFor",i)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur),v.Cb(3),v.Fc(v.hc(61,54,"KnowledgeItem")),v.Cb(3),v.lc("ngIf",e.isCreateMode),v.Cb(2),v.lc("ngIf",!e.isDisplayMode),v.Cb(2),v.lc("data",e.content)("katexOptions",e.mathOptions),v.Cb(1),v.lc("ngIf",e.isCreateMode),v.Cb(2),v.lc("ngIf",e.isCreateMode),v.Cb(2),v.lc("data",e.answerContent)("katexOptions",e.mathOptions),v.Cb(2),v.lc("disabled",!(e.isEditable&&e.itemFormGroup.valid)),v.Cb(1),v.Fc(v.hc(76,56,"Save")),v.Cb(3),v.Fc(v.hc(79,58,"Common.ReturnToList"))}},directives:[B.a,B.d,B.g,B.f,B.c,n.u,n.n,n.g,J.c,J.g,X.b,n.c,n.m,n.e,q.a,n.s,W.m,Y.b,Y.d,J.i,Y.a,Z.c,i.l,Z.b,i.m,tt.c,tt.a,a.a,B.b,x.b,Z.a,et.a,Z.d,I.a,c.a,n.p],pipes:[r.d],styles:[".example-form[_ngcontent-%COMP%]{margin:8px;min-width:150px;max-width:500px;width:100%}.control-full-width[_ngcontent-%COMP%]{width:100%}td[_ngcontent-%COMP%]{padding-right:8px}table[_ngcontent-%COMP%]{width:100%}.mat-card-actions[_ngcontent-%COMP%]{margin-top:10px}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),t})();const lt=[{path:"",component:_},{path:"create",component:st},{path:"display/:id",component:st},{path:"edit/:id",component:st}];let bt=(()=>{class t{}return t.\u0275mod=v.Lb({type:t}),t.\u0275inj=v.Kb({factory:function(e){return new(e||t)},imports:[[b.d.forChild(lt)],b.d]}),t})(),dt=(()=>{class t{}return t.\u0275mod=v.Lb({type:t}),t.\u0275inj=v.Kb({factory:function(e){return new(e||t)},imports:[[i.c,n.h,n.r,s.a,l.a,c.b,a.b.forChild(),bt,r.c]]}),t})()}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{V7M2:function(t,e,o){"use strict";o.r(e),o.d(e,"ExerciseItemsModule",function(){return dt});var i=o("ofXK"),n=o("3Pt+"),c=o("0LvA"),a=o("lR5k"),r=o("QPBi"),s=o("jIBr"),l=o("dcRk"),b=o("tyNb"),d=o("M9IT"),m=o("Dh3D"),h=o("VRyK"),u=o("LRne"),p=o("JX91"),g=o("eIep"),C=o("lJxs"),f=o("JIr8"),T=o("VHTt"),S=o("NUjs"),v=o("fXoL"),w=o("o0su"),I=o("/t3+"),x=o("bTqV"),O=o("+0xr"),y=o("Xa2L");function D(t,e){1&t&&v.Ob(0,"mat-progress-spinner")}function E(t,e){if(1&t&&(v.Tb(0,"div",17),v.Dc(1,D,1,0,"mat-progress-spinner",18),v.Sb()),2&t){const t=v.fc();v.Cb(1),v.lc("ngIf",t.isLoadingResults)}}function F(t,e){1&t&&(v.Tb(0,"th",19),v.Ec(1,"#"),v.Sb())}function M(t,e){if(1&t&&(v.Tb(0,"td",20),v.Tb(1,"div"),v.Ec(2),v.Tb(3,"a",21),v.Ec(4),v.gc(5,"transloco"),v.Sb(),v.Tb(6,"a",21),v.Ec(7),v.gc(8,"transloco"),v.Sb(),v.Sb(),v.Sb()),2&t){const t=e.$implicit;v.Cb(2),v.Gc(" ",t.ID," "),v.Cb(1),v.nc("routerLink","display/",t.ID,""),v.Cb(1),v.Fc(v.hc(5,5,"Display")),v.Cb(2),v.nc("routerLink","edit/",t.ID,""),v.Cb(1),v.Fc(v.hc(8,7,"Change"))}}function k(t,e){1&t&&(v.Tb(0,"th",19),v.Ec(1),v.gc(2,"transloco"),v.Sb()),2&t&&(v.Cb(1),v.Fc(v.hc(2,1,"Type")))}function j(t,e){if(1&t&&(v.Tb(0,"td",20),v.Ec(1),v.gc(2,"transloco"),v.Sb()),2&t){const t=e.$implicit,o=v.fc();v.Cb(1),v.Fc(v.hc(2,1,o.getExerciseItemTypeName(t.ItemType)))}}function A(t,e){1&t&&(v.Tb(0,"th",19),v.Ec(1),v.gc(2,"transloco"),v.Sb()),2&t&&(v.Cb(1),v.Fc(v.hc(2,1,"Tag")))}function G(t,e){if(1&t&&(v.Tb(0,"td",20),v.Ec(1),v.Sb()),2&t){const t=e.$implicit;v.Cb(1),v.Fc(t.Tags.toString())}}function R(t,e){1&t&&(v.Tb(0,"th",19),v.Ec(1),v.gc(2,"transloco"),v.Sb()),2&t&&(v.Cb(1),v.Fc(v.hc(2,1,"KnowledgeItem")))}function L(t,e){if(1&t&&(v.Tb(0,"td",20),v.Ec(1),v.Sb()),2&t){const t=e.$implicit;v.Cb(1),v.Fc(t.KnowledgeItemID)}}function P(t,e){1&t&&(v.Tb(0,"th",19),v.Ec(1),v.gc(2,"transloco"),v.Sb()),2&t&&(v.Cb(1),v.Fc(v.hc(2,1,"CreatedAt")))}function N(t,e){if(1&t&&(v.Tb(0,"td",20),v.Ec(1),v.gc(2,"date"),v.Sb()),2&t){const t=e.$implicit;v.Cb(1),v.Fc(v.ic(2,1,t.CreatedAt,"yyyy-M-d HH:mm:ss"))}}function U(t,e){1&t&&v.Ob(0,"tr",22)}function K(t,e){1&t&&v.Ob(0,"tr",23)}let _=(()=>{class t{constructor(t,e){this.odataService=t,this.router=e,this.displayedColumns=["id","itemtype","tags","knowledgeitem","createdat"],this.dataSource=[],this.resultsLength=0,this.isLoadingResults=!0}getExerciseItemTypeName(t){return Object(S.b)(t)}ngAfterViewInit(){this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),Object(h.a)(this.sort.sortChange,this.paginator.page).pipe(Object(p.a)({}),Object(g.a)(()=>{this.isLoadingResults=!0;const t=this.paginator.pageSize;return this.odataService.getExerciseItems(t,t*this.paginator.pageIndex,this.sort.active,this.sort.direction)}),Object(C.a)(t=>(this.isLoadingResults=!1,this.resultsLength=t.totalCount,t.items)),Object(f.a)(()=>(this.isLoadingResults=!1,Object(u.a)([])))).subscribe(t=>this.dataSource=t)}onGoToPreview(){const t=[];this.dataSource.forEach(e=>{t.push({refType:T.q.ExerciseItem,refId:e.ID})}),this.odataService.previewObjList=t,this.router.navigate(["preview"])}resetPaging(){this.paginator.pageIndex=0}}return t.\u0275fac=function(e){return new(e||t)(v.Nb(w.b),v.Nb(b.b))},t.\u0275cmp=v.Hb({type:t,selectors:[["app-exercise-items"]],viewQuery:function(t,e){if(1&t&&(v.Ic(d.a,!0),v.Ic(m.a,!0)),2&t){let t;v.rc(t=v.cc())&&(e.paginator=t.first),v.rc(t=v.cc())&&(e.sort=t.first)}},decls:34,vars:16,consts:[[1,"toolbar-spacer"],["mat-stroked-button","","routerLink","create"],["mat-stroked-button","",3,"disabled","click"],[1,"example-container","mat-elevation-z8"],["class","example-loading-shade",4,"ngIf"],[1,"table-container"],["mat-table","","matSort","","matSortActive","createdat",3,"dataSource","matSortChange"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","itemtype"],["matColumnDef","tags"],["matColumnDef","knowledgeitem"],["matColumnDef","createdat"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[3,"length","pageSize"],[1,"example-loading-shade"],[4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-button","",3,"routerLink"],["mat-header-row",""],["mat-row",""]],template:function(t,e){1&t&&(v.Tb(0,"mat-toolbar-row"),v.Tb(1,"span"),v.Ec(2),v.gc(3,"transloco"),v.Sb(),v.Ob(4,"span",0),v.Tb(5,"section"),v.Tb(6,"a",1),v.Ec(7),v.gc(8,"transloco"),v.Sb(),v.Tb(9,"a",2),v.bc("click",function(){return e.onGoToPreview()}),v.Ec(10),v.gc(11,"transloco"),v.Sb(),v.Sb(),v.Sb(),v.Tb(12,"div",3),v.Dc(13,E,2,1,"div",4),v.Tb(14,"div",5),v.Tb(15,"table",6),v.bc("matSortChange",function(){return e.resetPaging()}),v.Rb(16,7),v.Dc(17,F,2,0,"th",8),v.Dc(18,M,9,9,"td",9),v.Qb(),v.Rb(19,10),v.Dc(20,k,3,3,"th",8),v.Dc(21,j,3,3,"td",9),v.Qb(),v.Rb(22,11),v.Dc(23,A,3,3,"th",8),v.Dc(24,G,2,1,"td",9),v.Qb(),v.Rb(25,12),v.Dc(26,R,3,3,"th",8),v.Dc(27,L,2,1,"td",9),v.Qb(),v.Rb(28,13),v.Dc(29,P,3,3,"th",8),v.Dc(30,N,3,4,"td",9),v.Qb(),v.Dc(31,U,1,0,"tr",14),v.Dc(32,K,1,0,"tr",15),v.Sb(),v.Sb(),v.Ob(33,"mat-paginator",16),v.Sb()),2&t&&(v.Cb(2),v.Fc(v.hc(3,10,"ExerciseItem")),v.Cb(5),v.Fc(v.hc(8,12,"Create")),v.Cb(2),v.lc("disabled",e.dataSource.length<=0),v.Cb(1),v.Fc(v.hc(11,14,"Common.Preview")),v.Cb(3),v.lc("ngIf",e.isLoadingResults),v.Cb(2),v.lc("dataSource",e.dataSource),v.Cb(16),v.lc("matHeaderRowDef",e.displayedColumns),v.Cb(1),v.lc("matRowDefColumns",e.displayedColumns),v.Cb(1),v.lc("length",e.resultsLength)("pageSize",20))},directives:[I.c,x.a,b.c,i.m,O.j,m.a,O.c,O.e,O.b,O.g,O.i,d.a,y.a,O.d,O.a,O.f,O.h],pipes:[r.d,i.e],styles:[".example-container[_ngcontent-%COMP%]{position:relative;min-height:200px}.table-container[_ngcontent-%COMP%]{position:relative;min-height:400px;overflow:auto}table[_ngcontent-%COMP%]{width:100%;height:100%}.example-loading-shade[_ngcontent-%COMP%]{position:absolute;top:0;left:0;bottom:56px;right:0;background:rgba(0,0,0,.15);z-index:1;display:flex;align-items:center;justify-content:center}.mat-column-id[_ngcontent-%COMP%]{max-width:64px}.mat-column-itemtype[_ngcontent-%COMP%]{max-width:120px}.mat-column-tags[_ngcontent-%COMP%]{max-width:150px}.mat-column-created[_ngcontent-%COMP%]{max-width:124px}"]}),t})();var $=o("jtHE"),H=o("FtGj"),Q=o("rCpU"),V=o("HKRH"),z=o("0IaG"),B=o("Wp6s"),J=o("kmnG"),X=o("qFsG"),q=o("d3UM"),W=o("FKr1"),Y=o("iadO"),Z=o("A5z7"),tt=o("XiUz"),et=o("NFeN");function ot(t,e){1&t&&(v.Tb(0,"mat-icon",28),v.Ec(1,"cancel"),v.Sb())}function it(t,e){if(1&t){const t=v.Ub();v.Tb(0,"mat-chip",26),v.bc("removed",function(){v.uc(t);const o=e.$implicit;return v.fc().removeTag(o)}),v.Ec(1),v.Dc(2,ot,2,0,"mat-icon",27),v.Sb()}if(2&t){const t=e.$implicit,o=v.fc();v.lc("selectable",o.selectable)("removable",o.isEditable),v.Cb(1),v.Gc(" ",t," "),v.Cb(1),v.lc("ngIf",o.isEditable)}}function nt(t,e){if(1&t){const t=v.Ub();v.Tb(0,"mat-toolbar"),v.Tb(1,"h3"),v.Ec(2),v.gc(3,"transloco"),v.Sb(),v.Ob(4,"div",29),v.Tb(5,"button",30),v.bc("click",function(){return v.uc(t),v.fc().openUploadDialog()}),v.Ec(6,"Upload"),v.Sb(),v.Sb()}2&t&&(v.Cb(2),v.Fc(v.hc(3,1,"Content")))}function ct(t,e){if(1&t){const t=v.Ub();v.Tb(0,"div",31),v.Tb(1,"ngx-monaco-editor",32),v.bc("ngModelChange",function(e){return v.uc(t),v.fc().content=e}),v.Sb(),v.Sb()}if(2&t){const t=v.fc();v.Cb(1),v.lc("options",t.editorOptions)("ngModel",t.content)}}function at(t,e){if(1&t){const t=v.Ub();v.Tb(0,"mat-toolbar"),v.Tb(1,"h3"),v.Ec(2),v.gc(3,"transloco"),v.Sb(),v.Ob(4,"div",29),v.Tb(5,"button",30),v.bc("click",function(){return v.uc(t),v.fc().openAnswerUploadDialog()}),v.Tb(6,"mat-icon"),v.Ec(7,"file_upload"),v.Sb(),v.Sb(),v.Sb()}2&t&&(v.Cb(2),v.Fc(v.hc(3,1,"Answer")))}function rt(t,e){if(1&t){const t=v.Ub();v.Tb(0,"div",31),v.Tb(1,"ngx-monaco-editor",32),v.bc("ngModelChange",function(e){return v.uc(t),v.fc().answerContent=e}),v.Sb(),v.Sb()}if(2&t){const t=v.fc();v.Cb(1),v.lc("options",t.editorOptions)("ngModel",t.answerContent)}}let st=(()=>{class t{constructor(t,e,o,i){this.dialog=t,this.activateRoute=e,this.router=o,this.odataService=i,this.routerID=-1,this.uiMode=Q.c.Create,this.currentMode="",this.editorOptions={theme:"vs-dark"},this.content="New Exercise Item",this.answerContent="",this.mathOptions={displayMode:!0,throwOnError:!1,errorColor:"#cc0000"},this.selectable=!0,this.addOnBlur=!0,this.separatorKeysCodes=[H.g,H.c],this.tags=[],this.itemFormGroup=new n.f({idControl:new n.d({value:null,disabled:!0}),typeControl:new n.d,createdAtControl:new n.d({value:null,disabled:!0}),modifiedAtControl:new n.d({value:null,disabled:!0}),knowledgeControl:new n.d,tagControl:new n.d})}get isDisplayMode(){return this.uiMode===Q.c.Display}get isCreateMode(){return this.uiMode===Q.c.Create}get isUpdateMode(){return this.uiMode===Q.c.Update}get isEditable(){return this.uiMode===Q.c.Create||this.uiMode===Q.c.Update}ngOnInit(){this.destroyed$=new $.a(1),this.activateRoute.url.subscribe({next:t=>{t instanceof Array&&t.length>0&&("create"===t[0].path?(this.routerID=-1,this.uiMode=Q.c.Create,this.currentMode="Common.Create"):"edit"===t[0].path?(this.routerID=+t[1].path,this.uiMode=Q.c.Update,this.currentMode="Common.Change"):"display"===t[0].path&&(this.routerID=+t[1].path,this.uiMode=Q.c.Display,this.currentMode="Common.Display")),-1!==this.routerID&&this.odataService.readExerciseItem(this.routerID,this.uiMode===Q.c.Update).subscribe({next:t=>{this.onSetItemData(t),this.itemObject=t},error:t=>{console.error(t)}})},error:t=>{console.error(t)}})}ngOnDestroy(){this.destroyed$&&(this.destroyed$.complete(),this.destroyed$=void 0)}onOK(){if(this.isCreateMode){if(!this.itemFormGroup.valid)return void(this.itemFormGroup.errors&&console.error(this.itemFormGroup.errors));this.itemObject=new S.a,this.itemObject.ItemType=this.itemFormGroup.get("typeControl").value,this.itemObject.Content=this.content,this.itemObject.Tags=this.tags,this.itemObject.Answer=this.answerContent,this.odataService.createExerciseItem(this.itemObject).subscribe({next:t=>{this.router.navigate(["/exercise-item/display",t.ID])},error:t=>{console.error(t)}})}else if(this.isUpdateMode){if(!this.itemFormGroup.valid)return void(this.itemFormGroup.errors&&console.log(this.itemFormGroup.errors));this.itemObject&&(this.itemObject.ItemType=this.itemFormGroup.get("typeControl").value,this.itemObject.Content=this.content,this.itemObject.Tags=this.tags,this.itemObject.Answer=this.answerContent,this.odataService.changeExerciseItem(this.itemObject).subscribe({next:t=>{this.router.navigate(["/exercise-item/display",t.ID])},error:t=>{console.error(t)}}))}}openUploadDialog(){this.dialog.open(V.a,{width:"50%",height:"50%"}).afterClosed().subscribe({next:t=>{console.log(t),t.forEach(t=>{this.content+=`\n![Img](${t.url})\n `})}})}openAnswerUploadDialog(){this.dialog.open(V.a,{width:"50%",height:"50%"}).afterClosed().subscribe({next:t=>{console.log(t),t.forEach(t=>{this.answerContent+=`\n ![Img](${t.url})\n `})}})}addTag(t){const e=t.input,o=t.value;(o||"").trim()&&this.tags.push(o.trim()),e&&(e.value="")}removeTag(t){const e=this.tags.indexOf(t);e>=0&&this.tags.splice(e,1)}onSetItemData(t){var e,o,i,n,c;null===(e=this.itemFormGroup.get("idControl"))||void 0===e||e.setValue(t.ID),null===(o=this.itemFormGroup.get("idControl"))||void 0===o||o.disable(),null===(i=this.itemFormGroup.get("typeControl"))||void 0===i||i.setValue(t.ItemType),null===(n=this.itemFormGroup.get("createdAtControl"))||void 0===n||n.setValue(t.CreatedAt),null===(c=this.itemFormGroup.get("modifiedAtControl"))||void 0===c||c.setValue(t.ModifiedAt),this.content=t.Content,this.tags=t.Tags,this.isDisplayMode?this.itemFormGroup.disable():this.itemFormGroup.markAsPristine()}onReturnToList(){this.router.navigate(["exercise-item"])}}return t.\u0275fac=function(e){return new(e||t)(v.Nb(z.a),v.Nb(b.a),v.Nb(b.b),v.Nb(w.b))},t.\u0275cmp=v.Hb({type:t,selectors:[["app-exercise-item-detail"]],decls:80,vars:60,consts:[[3,"formGroup"],["appearance","fill",1,"control-full-width"],["matInput","","type","text","placeholder","ID","formControlName","idControl"],["required","","formControlName","typeControl"],["value","0"],["value","1"],["value","2"],["value","3"],["value","4"],["matInput","","formControlName","createdAtControl",3,"matDatepicker"],["matSuffix","",3,"for"],["createdAt",""],["matInput","","formControlName","modifiedAtControl",3,"matDatepicker"],["modifiedAt",""],["formControlName","tagControl"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],["placeholder","New tag...",3,"matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],["matInput","","type","text","placeholder","Knowledge ID","formControlName","knowledgeControl"],[4,"ngIf"],["fxLayout","row",1,"control-full-width",2,"height","500px"],["fxFlex","50",4,"ngIf"],["fxFlex","",2,"height","100%","overflow-y","scroll"],["emoji","","katex","",3,"data","katexOptions"],["mat-button","",3,"disabled","click"],["mat-button","",3,"click"],[3,"selectable","removable","removed"],["matChipRemove","",4,"ngIf"],["matChipRemove",""],[1,"toolbar-spacer"],["mat-raised-button","",3,"click"],["fxFlex","50"],[2,"height","100%",3,"options","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(v.Tb(0,"mat-card"),v.Tb(1,"mat-card-header"),v.Tb(2,"mat-card-title"),v.Ec(3),v.gc(4,"transloco"),v.Sb(),v.Tb(5,"mat-card-subtitle"),v.Ec(6),v.gc(7,"transloco"),v.Sb(),v.Sb(),v.Tb(8,"mat-card-content"),v.Tb(9,"form",0),v.Tb(10,"mat-form-field",1),v.Tb(11,"mat-label"),v.Ec(12,"#"),v.Sb(),v.Ob(13,"input",2),v.Sb(),v.Tb(14,"mat-form-field",1),v.Tb(15,"mat-label"),v.Ec(16),v.gc(17,"transloco"),v.Sb(),v.Tb(18,"mat-select",3),v.Tb(19,"mat-option",4),v.Ec(20),v.gc(21,"transloco"),v.Sb(),v.Tb(22,"mat-option",5),v.Ec(23),v.gc(24,"transloco"),v.Sb(),v.Tb(25,"mat-option",6),v.Ec(26),v.gc(27,"transloco"),v.Sb(),v.Tb(28,"mat-option",7),v.Ec(29),v.gc(30,"transloco"),v.Sb(),v.Tb(31,"mat-option",8),v.Ec(32),v.gc(33,"transloco"),v.Sb(),v.Sb(),v.Sb(),v.Tb(34,"mat-form-field",1),v.Tb(35,"mat-label"),v.Ec(36),v.gc(37,"transloco"),v.Sb(),v.Ob(38,"input",9),v.Ob(39,"mat-datepicker-toggle",10),v.Ob(40,"mat-datepicker",null,11),v.Sb(),v.Tb(42,"mat-form-field",1),v.Tb(43,"mat-label"),v.Ec(44),v.gc(45,"transloco"),v.Sb(),v.Ob(46,"input",12),v.Ob(47,"mat-datepicker-toggle",10),v.Ob(48,"mat-datepicker",null,13),v.Sb(),v.Tb(50,"mat-form-field",1),v.Tb(51,"mat-label"),v.Ec(52),v.gc(53,"transloco"),v.Sb(),v.Tb(54,"mat-chip-list",14,15),v.Dc(56,it,3,4,"mat-chip",16),v.Tb(57,"input",17),v.bc("matChipInputTokenEnd",function(t){return e.addTag(t)}),v.Sb(),v.Sb(),v.Sb(),v.Tb(58,"mat-form-field",1),v.Tb(59,"mat-label"),v.Ec(60),v.gc(61,"transloco"),v.Sb(),v.Ob(62,"input",18),v.Sb(),v.Sb(),v.Dc(63,nt,7,3,"mat-toolbar",19),v.Tb(64,"div",20),v.Dc(65,ct,2,2,"div",21),v.Tb(66,"div",22),v.Ob(67,"markdown",23),v.Sb(),v.Sb(),v.Dc(68,at,8,3,"mat-toolbar",19),v.Tb(69,"div",20),v.Dc(70,rt,2,2,"div",21),v.Tb(71,"div",22),v.Ob(72,"markdown",23),v.Sb(),v.Sb(),v.Sb(),v.Tb(73,"mat-card-actions"),v.Tb(74,"button",24),v.bc("click",function(){return e.onOK()}),v.Ec(75),v.gc(76,"transloco"),v.Sb(),v.Tb(77,"button",25),v.bc("click",function(){return e.onReturnToList()}),v.Ec(78),v.gc(79,"transloco"),v.Sb(),v.Sb(),v.Sb()),2&t){const t=v.sc(41),o=v.sc(49),i=v.sc(55);v.Cb(3),v.Fc(v.hc(4,32,"ExerciseItem")),v.Cb(3),v.Fc(v.hc(7,34,e.currentMode)),v.Cb(3),v.lc("formGroup",e.itemFormGroup),v.Cb(7),v.Fc(v.hc(17,36,"Type")),v.Cb(4),v.Fc(v.hc(21,38,"ExerciseItemType.Question")),v.Cb(3),v.Fc(v.hc(24,40,"ExerciseItemType.SingleChoice")),v.Cb(3),v.Fc(v.hc(27,42,"ExerciseItemType.MultipleChoices")),v.Cb(3),v.Fc(v.hc(30,44,"ExerciseItemType.ShortAnswer")),v.Cb(3),v.Fc(v.hc(33,46,"ExerciseItemType.EssayQuestion")),v.Cb(4),v.Fc(v.hc(37,48,"CreatedAt")),v.Cb(2),v.lc("matDatepicker",t),v.Cb(1),v.lc("for",t),v.Cb(5),v.Fc(v.hc(45,50,"ModifiedAt")),v.Cb(2),v.lc("matDatepicker",o),v.Cb(1),v.lc("for",o),v.Cb(5),v.Fc(v.hc(53,52,"Tags")),v.Cb(4),v.lc("ngForOf",e.tags),v.Cb(1),v.lc("matChipInputFor",i)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",e.addOnBlur),v.Cb(3),v.Fc(v.hc(61,54,"KnowledgeItem")),v.Cb(3),v.lc("ngIf",e.isCreateMode),v.Cb(2),v.lc("ngIf",!e.isDisplayMode),v.Cb(2),v.lc("data",e.content)("katexOptions",e.mathOptions),v.Cb(1),v.lc("ngIf",e.isCreateMode),v.Cb(2),v.lc("ngIf",e.isCreateMode),v.Cb(2),v.lc("data",e.answerContent)("katexOptions",e.mathOptions),v.Cb(2),v.lc("disabled",!(e.isEditable&&e.itemFormGroup.valid)),v.Cb(1),v.Fc(v.hc(76,56,"Save")),v.Cb(3),v.Fc(v.hc(79,58,"Common.ReturnToList"))}},directives:[B.a,B.d,B.g,B.f,B.c,n.u,n.n,n.g,J.c,J.g,X.b,n.c,n.m,n.e,q.a,n.s,W.m,Y.b,Y.d,J.i,Y.a,Z.c,i.l,Z.b,i.m,tt.c,tt.a,a.a,B.b,x.b,Z.a,et.a,Z.d,I.a,c.a,n.p],pipes:[r.d],styles:[".example-form[_ngcontent-%COMP%]{margin:8px;min-width:150px;max-width:500px;width:100%}.control-full-width[_ngcontent-%COMP%]{width:100%}td[_ngcontent-%COMP%]{padding-right:8px}table[_ngcontent-%COMP%]{width:100%}.mat-card-actions[_ngcontent-%COMP%]{margin-top:10px}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}"]}),t})();const lt=[{path:"",component:_},{path:"create",component:st},{path:"display/:id",component:st},{path:"edit/:id",component:st}];let bt=(()=>{class t{}return t.\u0275mod=v.Lb({type:t}),t.\u0275inj=v.Kb({factory:function(e){return new(e||t)},imports:[[b.d.forChild(lt)],b.d]}),t})(),dt=(()=>{class t{}return t.\u0275mod=v.Lb({type:t}),t.\u0275inj=v.Kb({factory:function(e){return new(e||t)},imports:[[i.c,n.h,n.r,s.a,l.a,c.b,a.b.forChild(),bt,r.c]]}),t})()}}]); \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index f3d2317d..a80c261f 100644 --- a/dist/index.html +++ b/dist/index.html @@ -3,7 +3,7 @@ Knowledge Builder - + @@ -11,5 +11,5 @@ - + diff --git a/dist/main.d5a26ae512c5ce6a7364.js b/dist/main.d5a26ae512c5ce6a7364.js deleted file mode 100644 index 3f7a432e..00000000 --- a/dist/main.d5a26ae512c5ce6a7364.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+0xr":function(t,e,i){"use strict";i.d(e,"a",function(){return y}),i.d(e,"b",function(){return u}),i.d(e,"c",function(){return f}),i.d(e,"d",function(){return b}),i.d(e,"e",function(){return p}),i.d(e,"f",function(){return S}),i.d(e,"g",function(){return w}),i.d(e,"h",function(){return E}),i.d(e,"i",function(){return C}),i.d(e,"j",function(){return c}),i.d(e,"k",function(){return D});var n=i("f6nW"),s=i("0EQZ"),r=i("FKr1"),a=(i("8LU1"),i("2Vo4"),i("XNiG"),i("quSY"),i("VRyK"),i("LRne"),i("itXk"),i("lJxs"),i("fXoL"));const o=[[["caption"]],[["colgroup"],["col"]]],l=["caption","colgroup, col"];let c=(()=>{class t extends n.q{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return h(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&a.Fb("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[a.Bb([{provide:s.g,useClass:s.e},{provide:n.q,useExisting:t},{provide:n.a,useExisting:t},{provide:n.x,useClass:n.y}]),a.zb],ngContentSelectors:l,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(a.kc(o),a.jc(0),a.jc(1,1),a.Pb(2,0),a.Pb(3,1),a.Pb(4,2),a.Pb(5,3))},directives:[n.v,n.t,n.w,n.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}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const h=a.Vb(c);let u=(()=>{class t extends n.c{}return t.\u0275fac=function(e){return d(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matCellDef",""]],features:[a.Bb([{provide:n.c,useExisting:t}]),a.zb]}),t})();const d=a.Vb(u);let p=(()=>{class t extends n.k{}return t.\u0275fac=function(e){return m(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matHeaderCellDef",""]],features:[a.Bb([{provide:n.k,useExisting:t}]),a.zb]}),t})();const m=a.Vb(p);let f=(()=>{class t extends n.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 g(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[a.Bb([{provide:n.e,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),a.zb]}),t})();const g=a.Vb(f);let b=(()=>{class t extends n.j{}return t.\u0275fac=function(e){return _(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[a.zb]}),t})();const _=a.Vb(b);let y=(()=>{class t extends n.b{}return t.\u0275fac=function(e){return v(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[a.zb]}),t})();const v=a.Vb(y);let w=(()=>{class t extends n.m{}return t.\u0275fac=function(e){return x(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[a.Bb([{provide:n.m,useExisting:t}]),a.zb]}),t})();const x=a.Vb(w);let C=(()=>{class t extends n.p{}return t.\u0275fac=function(e){return k(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[a.Bb([{provide:n.p,useExisting:t}]),a.zb]}),t})();const k=a.Vb(C);let S=(()=>{class t extends n.l{}return t.\u0275fac=function(e){return O(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[a.Bb([{provide:n.l,useExisting:t}]),a.zb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&a.Pb(0,0)},directives:[n.d],encapsulation:2}),t})();const O=a.Vb(S);let E=(()=>{class t extends n.o{}return t.\u0275fac=function(e){return A(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[a.Bb([{provide:n.o,useExisting:t}]),a.zb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&a.Pb(0,0)},directives:[n.d],encapsulation:2}),t})();const A=a.Vb(E);let D=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},imports:[[n.r,r.i],r.i]}),t})()},"+rOU":function(t,e,i){"use strict";i.d(e,"a",function(){return c}),i.d(e,"b",function(){return u}),i.d(e,"c",function(){return d}),i.d(e,"d",function(){return a}),i.d(e,"e",function(){return h}),i.d(e,"f",function(){return p}),i.d(e,"g",function(){return f}),i.d(e,"h",function(){return o});var n=i("fXoL"),s=i("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 a extends r{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class o extends r{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}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 l extends r{constructor(t){super(),this.element=t instanceof n.l?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof o?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(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 c{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}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 o{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.N),n.Nb(n.R))},t.\u0275dir=n.Ib({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.zb]}),t})(),d=(()=>{class t extends c{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new n.o,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}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,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}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)(n.Nb(n.j),n.Nb(n.R),n.Nb(s.d))},t.\u0275dir=n.Ib({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.zb]}),t})(),p=(()=>{class t extends d{}return t.\u0275fac=function(e){return m(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[n.Bb([{provide:d,useExisting:t}]),n.zb]}),t})();const m=n.Vb(p);let f=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})()},"/t3+":function(t,e,i){"use strict";i.d(e,"a",function(){return d}),i.d(e,"b",function(){return p}),i.d(e,"c",function(){return u});var n=i("FKr1"),s=i("ofXK"),r=i("fXoL"),a=i("nLfN");const o=["*",[["mat-toolbar-row"]]],l=["*","mat-toolbar-row"];class c{constructor(t){this._elementRef=t}}const h=Object(n.w)(c);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),d=(()=>{class t extends h{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l),r.Nb(a.a),r.Nb(s.d))},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&r.Gb(i,u,!0),2&t){let t;r.rc(t=r.cc())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&r.Fb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[r.zb],ngContentSelectors:l,decls:2,vars:0,template:function(t,e){1&t&&(r.kc(o),r.jc(0),r.jc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[n.i],n.i]}),t})()},"/uUt":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("7o/Q");function s(t,e){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new a(t,this.compare,this.keySelector))}}class a extends n.a{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}},0:function(t,e,i){t.exports=i("zUnb")},"0EQZ":function(t,e,i){"use strict";i.d(e,"a",function(){return c}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return d}),i.d(e,"d",function(){return p}),i.d(e,"e",function(){return h}),i.d(e,"f",function(){return u}),i.d(e,"g",function(){return m}),i.d(e,"h",function(){return l});var n=i("7+OI"),s=i("LRne"),r=i("XNiG"),a=i("fXoL");class o{}function l(t){return t&&"function"==typeof t.connect}class c extends o{constructor(t){super(),this._data=t}connect(){return Object(n.a)(this._data)?this._data:Object(s.a)(this._data)}disconnect(){}}class h{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,r)=>{let a,o;if(null==t.previousIndex){const s=i(t,n,r);a=e.createEmbeddedView(s.templateRef,s.context,s.index),o=1}else null==r?(e.remove(n),o=3):(a=e.get(n),e.move(a,r),o=2);s&&s({context:null==a?void 0:a.context,operation:o,record:t})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,i,n,s){t.forEachOperation((t,r,a)=>{let o,l;null==t.previousIndex?(o=this._insertView(()=>i(t,r,a),a,e,n(t)),l=o?1:0):null==a?(this._detachAndCacheView(r,e),l=3):(o=this._moveView(r,a,e,n(t)),l=2),s&&s({context:null==o?void 0:o.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy()}_insertView(t,e,i,n){let s=this._insertViewFromCache(e,i);if(s)return void(s.context.$implicit=n);const r=t();return i.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const i=this._detachView(t,e);this._maybeCacheView(i,e)}_moveView(t,e,i,n){const s=i.get(t);return i.move(s,e),s.context.$implicit=n,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 i of this._listeners)i(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(a.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const m=new a.s("_ViewRepeater")},"0EUg":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("bHdf");function s(){return Object(n.a)(1)}},"0IaG":function(t,e,i){"use strict";i.d(e,"a",function(){return R}),i.d(e,"b",function(){return F}),i.d(e,"c",function(){return L}),i.d(e,"d",function(){return P}),i.d(e,"e",function(){return V}),i.d(e,"f",function(){return S}),i.d(e,"g",function(){return N});var n=i("rDax"),s=i("+rOU"),r=i("fXoL"),a=i("FKr1"),o=i("cH1L"),l=i("ofXK"),c=i("XNiG"),h=i("NXyV"),u=i("LRne"),d=i("pLZG"),p=i("IzEk"),m=i("JX91"),f=i("R0Ic"),g=i("FtGj"),b=i("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(f.m)("dialogContainer",[Object(f.j)("void, exit",Object(f.k)({opacity:0,transform:"scale(0.7)"})),Object(f.j)("enter",Object(f.k)({transform:"none"})),Object(f.l)("* => enter",Object(f.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(f.k)({transform:"none",opacity:1}))),Object(f.l)("* => void, * => exit",Object(f.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(f.k)({opacity:0})))])};let w=(()=>{class t extends s.a{constructor(t,e,i,n,s,a){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=a,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=n}_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,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.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.Nb(r.l),r.Nb(b.i),r.Nb(r.h),r.Nb(l.d,8),r.Nb(y),r.Nb(b.h))},t.\u0275dir=r.Ib({type:t,viewQuery:function(t,e){if(1&t&&r.zc(s.c,!0),2&t){let t;r.rc(t=r.cc())&&(e._portalOutlet=t.first)}},features:[r.zb]}),t})(),x=(()=>{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 C(e||t)},t.\u0275cmp=r.Hb({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.Bc("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(r.Wb("id",e._id),r.Db("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.Cc("@dialogContainer",e._state))},features:[r.zb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.Dc(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;box-sizing:content-box;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 C=r.Vb(x);let k=0;class S{constructor(t,e,i="mat-dialog-"+k++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.a,this._afterClosed=new c.a,this._beforeClosed=new c.a,this._state=0,e._id=i,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===g.h&&!this.disableClose&&!Object(g.t)(t))).subscribe(t=>{t.preventDefault(),O(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():O(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 O(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const E=new r.s("MatDialogData"),A=new r.s("mat-dialog-default-options"),D=new r.s("mat-dialog-scroll-strategy"),I={provide:D,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.block()}};let T=(()=>{class t{constructor(t,e,i,n,s,r,a,o,l){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=a,this._dialogContainerType=o,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.a,this._afterOpenedAtThisLevel=new c.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(h.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(m.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 i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._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 n.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 i=r.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),n=new s.d(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const a=new this._dialogRefConstructor(i,e,n.id);if(t instanceof r.N)e.attachTemplatePortal(new s.h(t,null,{$implicit:n.data,dialogRef:a}));else{const i=this._createInjector(n,a,e),r=e.attachComponentPortal(new s.d(t,n.viewContainerRef,i));a.componentInstance=r.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(o.b,null)||s.push({provide:o.b,useValue:{value:t.direction,change:Object(u.a)()}}),r.t.create({parent:n||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 i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.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.Nb(n.c),r.Nb(r.t),r.Nb(void 0),r.Nb(void 0),r.Nb(n.e),r.Nb(void 0),r.Nb(r.P),r.Nb(r.P),r.Nb(r.s))},t.\u0275dir=r.Ib({type:t}),t})(),R=(()=>{class t extends T{constructor(t,e,i,n,s,r,a){super(t,e,n,r,a,s,S,x,E)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(n.c),r.Xb(r.t),r.Xb(l.i,8),r.Xb(A,8),r.Xb(D),r.Xb(t,12),r.Xb(n.e))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),j=0,L=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=M(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){O(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(S,8),r.Nb(r.l),r.Nb(R))},t.\u0275dir=r.Ib({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.bc("click",function(t){return e._onButtonClick(t)}),2&t&&r.Db("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[r.Ab]}),t})(),N=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+j++}ngOnInit(){this._dialogRef||(this._dialogRef=M(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(S,8),r.Nb(r.l),r.Nb(R))},t.\u0275dir=r.Ib({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&r.Wb("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),P=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function M(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}let V=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},providers:[R,I],imports:[[n.f,s.g,a.i],a.i]}),t})()},"0LvA":function(t,e,i){"use strict";function n(t,e,i,n){var s,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a}function s(t,e){return function(i,n){e(i,n,t)}}function r(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}i.d(e,"a",function(){return f}),i.d(e,"b",function(){return g});var a=i("fXoL"),o=i("2Vo4"),l=(i("XNiG"),i("1G5W"),i("pLZG")),c=i("IzEk"),h=i("3Pt+");const u=["editor"],d="MONACO_PATH";let p=(()=>{let t=class{constructor(t,e){this.ngZone=t,this.monacoPathConfig=e,this.isMonacoLoaded$=new o.a(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?t.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(t){t&&(this._monacoPath=t)}loadMonaco(){const t=()=>{let t=this._monacoPath;window.amdRequire=window.require,this.nodeRequire&&(window.require=this.nodeRequire,t=window.require("path").resolve(window.__dirname,this._monacoPath)),window.amdRequire.config({paths:{vs:t}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))})};if(window.amdRequire)return t();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const e=document.createElement("script");e.type="text/javascript",e.src=this._monacoPath+"/loader.js",e.addEventListener("load",t),document.body.appendChild(e)}addElectronFixScripts(){const t=document.createElement("script"),e=document.createTextNode("self.module = undefined;"),i=document.createTextNode("self.process.browser = true;");t.appendChild(e),t.appendChild(i),document.body.appendChild(t)}};return t.\u0275fac=function(e){return new(e||t)(a.Xb(a.B),a.Xb(d,8))},t.\u0275prov=Object(a.Jb)({factory:function(){return new t(Object(a.Xb)(a.B),Object(a.Xb)("MONACO_PATH",8))},token:t,providedIn:"root"}),t=n([s(1,Object(a.C)()),s(1,Object(a.q)(d)),r("design:paramtypes",[a.B,String])],t),t})();var m;let f=(()=>{let t=m=class{constructor(t){this.monacoLoader=t,this.init=new a.o,this.propagateChange=t=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe(Object(l.a)(t=>t),Object(c.a)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(t){if(this.editor&&t.options&&!t.options.firstChange){const e=t.options.currentValue,{language:i,theme:n}=e,s=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);st.uri.path===e.path)),this.modelUriInstance=i||monaco.editor.createModel(t,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(t){this.value=t,this.editor&&t?this.editor.setValue(t):this.editor&&this.editor.setValue("")}registerOnChange(t){this.propagateChange=t}registerOnTouched(t){this.onTouched=t}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(t){this.onErrorStatusChange=t}initEditor(){const t={value:[this.value].join("\n"),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?Object.assign(Object.assign({},t),this.options):t),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const t=this.modelMarkers.map(({message:t})=>t).join("|");this.parsedError!==t&&(this.parsedError=t,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}};return t.\u0275fac=function(e){return new(e||t)(a.Nb(p))},t.\u0275cmp=a.Hb({type:t,selectors:[["ngx-monaco-editor"]],viewQuery:function(t,e){if(1&t&&a.zc(u,!0),2&t){let t;a.rc(t=a.cc())&&(e.editorContent=t.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[a.Bb([{provide:h.k,useExisting:Object(a.W)(()=>m),multi:!0},{provide:h.j,useExisting:Object(a.W)(()=>m),multi:!0}]),a.Ab],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(t,e){1&t&&(a.Tb(0,"div",0,1),a.Ob(2,"div",2,3),a.Sb())},styles:[".monaco-editor[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n\n}\n.editor-container[_ngcontent-%COMP%] {\n\toverflow: hidden;\n\tposition: relative;\n\tdisplay: table;\n\twidth: 100%;\n height: 100%;\n min-width: 0;\n}"],changeDetection:0}),t=m=n([r("design:paramtypes",[p])],t),t})(),g=(()=>{let t=class{};return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},imports:[[]]}),t})()},"0MNC":function(t,e,i){"use strict";i.d(e,"a",function(){return x}),i.d(e,"b",function(){return k}),i.d(e,"c",function(){return v});var n=i("fXoL"),s=i("8LU1"),r=i("XNiG"),a=i("itXk"),o=i("GyhO"),l=i("HDdC"),c=i("IzEk"),h=i("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=i("Kj3r"),m=i("lJxs"),f=i("JX91"),g=i("1G5W"),b=i("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)(n.Xb(b.a))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(b.a))},token:t,providedIn:"root"}),t})();function w(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let x=(()=>{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 C(Object(s.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=C(Object(s.b)(t)).map(t=>this._registerQuery(t).observable);let i=Object(a.b)(e);return i=Object(o.a)(i.pipe(Object(c.a)(1)),i.pipe(t=>t.lift(new u(1)),Object(p.a)(0))),i.pipe(Object(m.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new l.a(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(Object(f.a)(e),Object(m.a)(({matches:e})=>({query:t,matches:e})),Object(g.a)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(v),n.Xb(n.B))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(v),Object(n.Xb)(n.B))},token:t,providedIn:"root"}),t})();function C(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const k={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},"1G5W":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("zx2A");function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const i=new a(t),s=Object(n.c)(this.notifier,new n.a(i));return s&&!i.seenValue?(i.add(s),e.subscribe(i)):i}}class a extends n.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1jcm":function(t,e,i){"use strict";i.d(e,"a",function(){return w}),i.d(e,"b",function(){return C});var n=i("GU7r"),s=i("fXoL"),r=i("FKr1"),a=i("8LU1"),o=i("3Pt+"),l=i("R1ws"),c=i("u47x");const h=["thumbContainer"],u=["toggleBar"],d=["input"],p=function(){return{enterDuration:150}},m=["*"],f=new s.s("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let g=0;const b={provide:o.k,useExisting:Object(s.W)(()=>w),multi:!0};class _{constructor(t,e){this.source=t,this.checked=e}}class y{constructor(t){this._elementRef=t}}const v=Object(r.B)(Object(r.w)(Object(r.x)(Object(r.y)(y)),"accent"));let w=(()=>{class t extends v{constructor(t,e,i,n,r,a){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=r,this._animationMode=a,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++g,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.o,this.toggleChange=new s.o,this.tabIndex=parseInt(n)||0}get required(){return this._required}set required(t){this._required=Object(a.c)(t)}get checked(){return this._checked}set checked(t){this._checked=Object(a.c)(t),this._changeDetectorRef.markForCheck()}get inputId(){return(this.id||this._uniqueId)+"-input"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new _(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(c.h),s.Nb(s.h),s.Yb("tabindex"),s.Nb(f),s.Nb(l.a,8))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(s.Ic(h,!0),s.Ic(u,!0),s.Ic(d,!0)),2&t){let t;s.rc(t=s.cc())&&(e._thumbEl=t.first),s.rc(t=s.cc())&&(e._thumbBarEl=t.first),s.rc(t=s.cc())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Wb("id",e.id),s.Db("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.Fb("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[s.Bb([b]),s.zb],ngContentSelectors:m,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.kc(),s.Tb(0,"label",0,1),s.Tb(2,"div",2,3),s.Tb(4,"input",4,5),s.bc("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),s.Sb(),s.Tb(6,"div",6,7),s.Ob(8,"div",8),s.Tb(9,"div",9),s.Ob(10,"div",10),s.Sb(),s.Sb(),s.Sb(),s.Tb(11,"span",11,12),s.bc("cdkObserveContent",function(){return e._onLabelTextChange()}),s.Tb(13,"span",13),s.Ec(14,"\xa0"),s.Sb(),s.jc(15),s.Sb(),s.Sb()),2&t){const t=s.sc(1),i=s.sc(12);s.Db("for",e.inputId),s.Cb(2),s.Fb("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.Cb(2),s.lc("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.Db("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.Cb(5),s.lc("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.oc(17,p))}},directives:[r.r,n.a],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)}}),t})(),C=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},imports:[[x,r.s,r.i,n.c],x,r.i]}),t})()},"2QA8":function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("XNiG"),s=i("9ppp");class r extends n.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,i){"use strict";i.d(e,"a",function(){return s});let n=!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 n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},"3E0/":function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("D0XW"),s=i("7o/Q"),r=i("WMd4");function a(t,e=n.a){var i;const s=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new o(s,e))}class o{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 s.a{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.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,i=new c(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.a.createComplete()),this.unsubscribe()}}class c{constructor(t,e){this.time=t,this.notification=e}}},"3N8a":function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("quSY");class s extends n.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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i=!1,n=void 0;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,i){"use strict";i.d(e,"a",function(){return Lt}),i.d(e,"b",function(){return T}),i.d(e,"c",function(){return p}),i.d(e,"d",function(){return gt}),i.d(e,"e",function(){return It}),i.d(e,"f",function(){return bt}),i.d(e,"g",function(){return At}),i.d(e,"h",function(){return zt}),i.d(e,"i",function(){return Ft}),i.d(e,"j",function(){return g}),i.d(e,"k",function(){return l}),i.d(e,"l",function(){return j}),i.d(e,"m",function(){return N}),i.d(e,"n",function(){return P}),i.d(e,"o",function(){return wt}),i.d(e,"p",function(){return kt}),i.d(e,"q",function(){return M}),i.d(e,"r",function(){return Bt}),i.d(e,"s",function(){return jt}),i.d(e,"t",function(){return y}),i.d(e,"u",function(){return St});var n=i("fXoL"),s=i("ofXK"),r=i("cp0P"),a=i("Cfvw"),o=i("lJxs");const l=new n.s("NgValueAccessor"),c={provide:l,useExisting:Object(n.W)(()=>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)(n.Nb(n.G),n.Nb(n.l))},t.\u0275dir=n.Ib({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[n.Bb([c])]}),t})();const u={provide:l,useExisting:Object(n.W)(()=>p),multi:!0},d=new n.s("CompositionEventMode");let p=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,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)(n.Nb(n.G),n.Nb(n.l),n.Nb(d,8))},t.\u0275dir=n.Ib({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&n.bc("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:[n.Bb([u])]}),t})();function m(t){return null==t||0===t.length}function f(t){return null!=t&&"number"==typeof t.length}const g=new n.s("NgValidators"),b=new n.s("NgAsyncValidators"),_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class y{static min(t){return e=>{if(m(e.value)||m(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(m(e.value)||m(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return m(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return m(t.value)||_.test(t.value)?null:{email:!0}}static minLength(t){return e=>m(e.value)||!f(e.value)?null:e.value.lengthf(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return y.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(m(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(v);return 0==e.length?null:function(t){return x(C(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(v);return 0==e.length?null:function(t){const i=C(t,e).map(w);return Object(r.a)(i).pipe(Object(o.a)(x))}}}function v(t){return null!=t}function w(t){const e=Object(n.ub)(t)?Object(a.a)(t):t;return Object(n.tb)(e),e}function x(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function C(t,e){return e.map(e=>e(t))}function k(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function S(t){return null!=t?y.compose(k(t)):null}function O(t){return null!=t?y.composeAsync(k(t)):null}function E(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function A(t){return t._rawValidators}function D(t){return t._rawAsyncValidators}let I=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=S(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=O(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t}),t})(),T=(()=>{class t extends I{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return R(e||t)},t.\u0275dir=n.Ib({type:t,features:[n.zb]}),t})();const R=n.Vb(T);class j extends I{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class L{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let N=(()=>{class t extends L{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(j,2))},t.\u0275dir=n.Ib({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Fb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.zb]}),t})(),P=(()=>{class t extends L{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(T,2))},t.\u0275dir=n.Ib({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Fb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.zb]}),t})();const F={provide:l,useExisting:Object(n.W)(()=>M),multi:!0};let M=(()=>{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)(n.Nb(n.G),n.Nb(n.l))},t.\u0275dir=n.Ib({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n.Bb([F])]}),t})();const V={provide:l,useExisting:Object(n.W)(()=>B),multi:!0};let z=(()=>{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=n.Jb({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(j),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.G),n.Nb(n.l),n.Nb(z),n.Nb(n.t))},t.\u0275dir=n.Ib({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.Bb([V])]}),t})();const H={provide:l,useExisting:Object(n.W)(()=>U),multi:!0};let U=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"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)(n.Nb(n.G),n.Nb(n.l))},t.\u0275dir=n.Ib({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n.Bb([H])]}),t})();const X={provide:l,useExisting:Object(n.W)(()=>q),multi:!0};let q=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=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",i)}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)(n.Nb(n.G),n.Nb(n.l))},t.\u0275dir=n.Ib({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.Bb([X])]}),t})();const $={provide:l,useExisting:Object(n.W)(()=>W),multi:!0};let W=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&J(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&J(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function Y(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Q(t,e,i){const n=A(t);null!==e.validator?t.setValidators(E(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const s=D(t);if(null!==e.asyncValidator?t.setAsyncValidators(E(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),i){const i=()=>t.updateValueAndValidity();Y(e._rawValidators,i),Y(e._rawAsyncValidators,i)}}function Z(t,e,i){if(null!==t){if(null!==e.validator){const i=A(t);Array.isArray(i)&&i.length>0&&t.setValidators(i.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const i=D(t);Array.isArray(i)&&i.length>0&&t.setAsyncValidators(i.filter(t=>t!==e.asyncValidator))}}if(i){const t=()=>{};Y(e._rawValidators,t),Y(e._rawAsyncValidators,t)}}function J(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tt(t,e){Q(t,e,!1)}function et(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}const it=[h,U,M,q,W,B];function nt(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function st(t,e){if(!e)return null;Array.isArray(e);let i=void 0,n=void 0,s=void 0;return e.forEach(t=>{var e;t.constructor===p?i=t:(e=t,it.some(t=>e.constructor===t)?n=t:s=t)}),s||n||i||null}function rt(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const at="VALID",ot="INVALID",lt="PENDING",ct="DISABLED";function ht(t){return(mt(t)?t.validators:t)||null}function ut(t){return Array.isArray(t)?S(t):t||null}function dt(t,e){return(mt(e)?e.asyncValidators:t)||null}function pt(t){return Array.isArray(t)?O(t):t||null}function mt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ft{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ut(this._rawValidators),this._composedAsyncValidatorFn=pt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===at}get invalid(){return this.status===ot}get pending(){return this.status==lt}get disabled(){return this.status===ct}get enabled(){return this.status!==ct}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=ut(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=pt(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=lt,!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=ct,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=at,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(),this.status!==at&&this.status!==lt||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()?ct:at}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=lt,this._hasOwnPendingAsyncValidator=!0;const e=w(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof bt?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof _t&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.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 n.o,this.statusChanges=new n.o}_calculateStatus(){return this._allControlsDisabled()?ct:this.errors?ot:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lt)?lt:this._anyControlsHaveStatus(ot)?ot:at}_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){mt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class gt extends ft{constructor(t=null,e,i){super(ht(e),dt(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){rt(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){rt(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class bt extends ft{constructor(t,e,i){super(ht(e),dt(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}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(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof gt?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 i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class _t extends ft{constructor(t,e,i){super(ht(e),dt(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}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,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof gt?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,i)=>{t(e,i)})}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_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 yt={provide:T,useExisting:Object(n.W)(()=>wt)},vt=(()=>Promise.resolve(null))();let wt=(()=>{class t extends T{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.o,this.form=new bt({},S(t),O(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){vt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),G(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){vt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),rt(this._directives,t)})}addFormGroup(t){vt.then(()=>{const e=this._findContainer(t.path),i=new bt({});tt(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){vt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){vt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,nt(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)(n.Nb(g,10),n.Nb(b,10))},t.\u0275dir=n.Ib({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.bc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Bb([yt]),n.zb]}),t})();const xt={provide:j,useExisting:Object(n.W)(()=>kt)},Ct=(()=>Promise.resolve(null))();let kt=(()=>{class t extends j{constructor(t,e,i,s){super(),this.control=new gt,this._registered=!1,this.update=new n.o,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=st(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),et(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?K(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){G(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Ct.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Ct.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(T,9),n.Nb(g,10),n.Nb(b,10),n.Nb(l,10))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.Bb([xt]),n.zb,n.Ab]}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Ot=new n.s("NgModelWithFormControlWarning"),Et={provide:T,useExisting:Object(n.W)(()=>At)};let At=(()=>{class t extends T{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new n.o,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return G(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){rt(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,nt(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const i=()=>{};e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i),Z(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}(t.control||null,t),e&&G(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Q(this.form,this,!1),this._oldForm&&Z(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(g,10),n.Nb(b,10))},t.\u0275dir=n.Ib({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.bc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Bb([Et]),n.zb,n.Ab]}),t})();const Dt={provide:j,useExisting:Object(n.W)(()=>It)};let It=(()=>{class t extends j{constructor(t,e,i,s,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new n.o,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=st(0,s)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),et(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return K(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(T,13),n.Nb(g,10),n.Nb(b,10),n.Nb(l,10),n.Nb(Ot,8))},t.\u0275dir=n.Ib({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.Bb([Dt]),n.zb,n.Ab]}),t._ngModelWarningSentOnce=!1,t})();const Tt={provide:g,useExisting:Object(n.W)(()=>jt),multi:!0},Rt={provide:g,useExisting:Object(n.W)(()=>Lt),multi:!0};let jt=(()=>{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?y.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.Db("required",e.required?"":null)},inputs:{required:"required"},features:[n.Bb([Tt])]}),t})(),Lt=(()=>{class t extends jt{validate(t){return this.required?y.requiredTrue(t):null}}return t.\u0275fac=function(e){return Nt(e||t)},t.\u0275dir=n.Ib({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&&n.Db("required",e.required?"":null)},features:[n.Bb([Rt]),n.zb]}),t})();const Nt=n.Vb(Lt),Pt={provide:g,useExisting:Object(n.W)(()=>Ft),multi:!0};let Ft=(()=>{class t{constructor(){this._validator=y.nullValidator}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=y.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.Db("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.Bb([Pt]),n.Ab]}),t})(),Mt=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})(),Vt=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=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)?(n=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new bt(i,{asyncValidators:s,updateOn:r,validators:n})}control(t,e,i){return new gt(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new _t(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof gt||t instanceof bt||t instanceof _t?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=n.Jb({token:t,factory:t.\u0275fac}),t})(),zt=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[z],imports:[Mt]}),t})(),Bt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ot,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[Vt,z],imports:[Mt]}),t})()},"3UWI":function(t,e,i){"use strict";i.d(e,"a",function(){return l});var n=i("D0XW"),s=i("zx2A");class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends s.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=Object(s.c)(i,new s.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var o=i("PqYM");function l(t,e=n.a){return i=()=>Object(o.a)(t,e),function(t){return t.lift(new r(i))};var i}},"4I5i":function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>{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,i){"use strict";i.d(e,"a",function(){return a});var n=i("lJxs"),s=i("Cfvw"),r=i("zx2A");function a(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(a((i,r)=>Object(s.a)(t(i,r)).pipe(Object(n.a)((t,n)=>e(i,t,r,n))),i)):("number"==typeof e&&(i=e),e=>e.lift(new o(t,i)))}class o{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.b{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"7+OI":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("HDdC");function s(t){return!!t&&(t instanceof n.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7EHt":function(t,e,i){"use strict";i.d(e,"a",function(){return B}),i.d(e,"b",function(){return M}),i.d(e,"c",function(){return V}),i.d(e,"d",function(){return z});var n=i("fXoL"),s=i("8LU1"),r=i("XNiG"),a=i("quSY"),o=i("0EQZ");const l=new n.s("CdkAccordion");let c=0,h=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=a.a.EMPTY,this.closed=new n.o,this.opened=new n.o,this.destroyed=new n.o,this.expandedChange=new n.o,this.id="cdk-accordion-child-"+c++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.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)(n.Nb(l,12),n.Nb(n.h),n.Nb(o.d))},t.\u0275dir=n.Ib({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n.Bb([{provide:l,useValue:void 0}])]}),t})(),u=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})();var d=i("+rOU"),p=i("ofXK"),m=i("FKr1"),f=i("u47x"),g=i("/uUt"),b=i("JX91"),_=i("pLZG"),y=i("IzEk"),v=i("FtGj"),w=i("R1ws"),x=i("EY2u"),C=i("VRyK"),k=i("R0Ic");const S=["body"];function O(t,e){}const E=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],A=["mat-expansion-panel-header","*","mat-action-row"];function D(t,e){if(1&t&&n.Ob(0,"span",2),2&t){const t=n.fc();n.lc("@indicatorRotate",t._getExpandedState())}}const I=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],T=["mat-panel-title","mat-panel-description","*"],R=new n.s("MAT_ACCORDION"),j="225ms cubic-bezier(0.4,0.0,0.2,1)",L={indicatorRotate:Object(k.m)("indicatorRotate",[Object(k.j)("collapsed, void",Object(k.k)({transform:"rotate(0deg)"})),Object(k.j)("expanded",Object(k.k)({transform:"rotate(180deg)"})),Object(k.l)("expanded <=> collapsed, void => collapsed",Object(k.e)(j))]),bodyExpansion:Object(k.m)("bodyExpansion",[Object(k.j)("collapsed, void",Object(k.k)({height:"0px",visibility:"hidden"})),Object(k.j)("expanded",Object(k.k)({height:"*",visibility:"visible"})),Object(k.l)("expanded <=> collapsed, void => collapsed",Object(k.e)(j))])};let N=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.N))},t.\u0275dir=n.Ib({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),P=0;const F=new n.s("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let M=(()=>{class t extends h{constructor(t,e,i,s,a,o,l){super(t,e,i),this._viewContainerRef=s,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new n.o,this.afterCollapse=new n.o,this._inputChanges=new r.a,this._headerId="mat-expansion-panel-header-"+P++,this._bodyAnimationDone=new r.a,this.accordion=t,this._document=a,this._bodyAnimationDone.pipe(Object(g.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())}),l&&(this.hideToggle=l.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(b.a)(null),Object(_.a)(()=>this.expanded&&!this._portal),Object(y.a)(1)).subscribe(()=>{this._portal=new d.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)(n.Nb(R,12),n.Nb(n.h),n.Nb(o.d),n.Nb(n.R),n.Nb(p.d),n.Nb(w.a,8),n.Nb(F,8))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&n.Gb(i,N,!0),2&t){let t;n.rc(t=n.cc())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&n.Ic(S,!0),2&t){let t;n.rc(t=n.cc())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&n.Fb("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:[n.Bb([{provide:R,useValue:void 0}]),n.zb,n.Ab],ngContentSelectors:A,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&&(n.kc(E),n.jc(0),n.Tb(1,"div",0,1),n.bc("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),n.Tb(3,"div",2),n.jc(4,1),n.Dc(5,O,0,0,"ng-template",3),n.Sb(),n.jc(6,2),n.Sb()),2&t&&(n.Cb(1),n.lc("@bodyExpansion",e._getExpandedState())("id",e.id),n.Db("aria-labelledby",e._headerId),n.Cb(4),n.lc("cdkPortalOutlet",e._portal))},directives:[d.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:[L.bodyExpansion]},changeDetection:0}),t})(),V=(()=>{class t{constructor(t,e,i,n,s,r){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=r,this._parentChangeSubscription=a.a.EMPTY;const o=t.accordion?t.accordion._stateChanges.pipe(Object(_.a)(t=>!(!t.hideToggle&&!t.togglePosition))):x.a;this._parentChangeSubscription=Object(C.a)(t.opened,t.closed,o,t._inputChanges.pipe(Object(_.a)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Object(_.a)(()=>t._containsFocus())).subscribe(()=>i.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 v.o:case v.g:Object(v.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)(n.Nb(M,1),n.Nb(n.l),n.Nb(f.h),n.Nb(n.h),n.Nb(F,8),n.Nb(w.a,8))},t.\u0275cmp=n.Hb({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&&n.bc("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(n.Db("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Ac("height",e._getHeaderHeight()),n.Fb("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&&(n.kc(I),n.Tb(0,"span",0),n.jc(1),n.jc(2,1),n.jc(3,2),n.Sb(),n.Dc(4,D,1,1,"span",1)),2&t&&(n.Cb(4),n.lc("ngIf",e._showToggle()))},directives:[p.m],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:[L.indicatorRotate]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),B=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[p.c,m.i,u,d.g]]}),t})()},"7Hc7":function(t,e,i){"use strict";i.d(e,"a",function(){return d});let n=1;const s=(()=>Promise.resolve())(),r={};function a(t){return t in r&&(delete r[t],!0)}const o={setImmediate(t){const e=n++;return r[e]=!0,s.then(()=>a(e)&&t()),e},clearImmediate(t){a(t)}};var l=i("3N8a");class c extends l.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=o.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(o.clearImmediate(e),t.scheduled=void 0)}}var h=i("IjjT");class u extends h.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nthis._complete.call(this._context);o.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(i){if(this.unsubscribe(),o.a.useDeprecatedSynchronousErrorHandling)throw i;Object(l.a)(i)}}__tryOrSetError(t,e,i){if(!o.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return o.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(Object(l.a)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"8LU1":function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return c}),i.d(e,"f",function(){return r}),i.d(e,"g",function(){return h});var n=i("fXoL");function s(t){return null!=t&&""+t!="false"}function r(t,e=0){return a(t)?Number(t):e}function a(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function o(t){return Array.isArray(t)?t:[t]}function l(t){return null==t?"":"string"==typeof t?t:t+"px"}function c(t){return t instanceof n.l?t.nativeElement:t}function h(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:(""+t).split(e);for(const t of n){const e=(""+t).trim();e&&i.push(e)}}return i}},"9ppp":function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},A5z7:function(t,e,i){"use strict";i.d(e,"a",function(){return O}),i.d(e,"b",function(){return N}),i.d(e,"c",function(){return j}),i.d(e,"d",function(){return E}),i.d(e,"e",function(){return F});var n=i("FtGj"),s=i("fXoL"),r=i("FKr1"),a=i("8LU1"),o=i("ofXK"),l=i("R1ws"),c=i("XNiG"),h=i("VRyK"),u=i("IzEk"),d=i("1G5W"),p=i("JX91"),m=i("u47x"),f=i("0EQZ"),g=i("kmnG"),b=i("nLfN"),_=i("cH1L"),y=i("3Pt+");const v=["*"],w=new s.s("MatChipRemove"),x=new s.s("MatChipAvatar"),C=new s.s("MatChipTrailingIcon");class k{constructor(t){this._elementRef=t}}const S=Object(r.B)(Object(r.w)(Object(r.x)(k),"primary"),-1);let O=(()=>{class t extends S{constructor(t,e,i,n,a,o,l,h){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new c.a,this._onBlur=new c.a,this.selectionChange=new s.o,this.destroyed=new s.o,this.removed=new s.o,this._addHostClassName(),this._chipRippleTarget=o.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new r.t(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===l,this.tabIndex=null!=h&&parseInt(h)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=Object(a.c)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=Object(a.c)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=Object(a.c)(t)}get removable(){return this._removable}set removable(t){this._removable=Object(a.c)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t="mat-basic-chip",e=this._elementRef.nativeElement;e.hasAttribute(t)||e.tagName.toLowerCase()===t?e.classList.add(t):e.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case n.d:case n.b:this.remove(),t.preventDefault();break;case n.o:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Object(u.a)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.B),s.Nb(b.a),s.Nb(r.h,8),s.Nb(s.h),s.Nb(o.d),s.Nb(l.a,8),s.Yb("tabindex"))},t.\u0275dir=s.Ib({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(s.Gb(i,x,!0),s.Gb(i,C,!0),s.Gb(i,w,!0)),2&t){let t;s.rc(t=s.cc())&&(e.avatar=t.first),s.rc(t=s.cc())&&(e.trailingIcon=t.first),s.rc(t=s.cc())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.bc("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(s.Db("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.Fb("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.zb]}),t})(),E=(()=>{class t{constructor(t,e){this._parentChip=t,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}_handleClick(t){const e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(O),s.Nb(s.l))},t.\u0275dir=s.Ib({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&s.bc("click",function(t){return e._handleClick(t)})},features:[s.Bb([{provide:w,useExisting:t}])]}),t})();const A=new s.s("mat-chips-default-options");class D{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const I=Object(r.z)(D);let T=0;class R{constructor(t,e){this.source=t,this.value=e}}let j=(()=>{class t extends I{constructor(t,e,i,n,r,a,o){super(a,n,r,o),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=o,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new c.a,this._uid="mat-chip-list-"+T++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.o,this.valueChange=new s.o,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(a.c)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=Object(a.c)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(a.c)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=Object(a.c)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Object(h.a)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Object(h.a)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Object(h.a)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Object(h.a)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new m.g(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Object(p.a)(null),Object(d.a)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new f.c(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;t.keyCode===n.b&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new R(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.h),s.Nb(_.b,8),s.Nb(y.o,8),s.Nb(y.g,8),s.Nb(r.d),s.Nb(y.l,10))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&s.Gb(i,O,!0),2&t){let t;s.rc(t=s.cc())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.bc("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.Wb("id",e._uid),s.Db("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),s.Fb("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s.Bb([{provide:g.d,useExisting:t}]),s.zb],ngContentSelectors:v,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.kc(),s.Tb(0,"div",0),s.jc(1),s.Sb())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),L=0,N=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.o,this.placeholder="",this.id="mat-chip-list-input-"+L++,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=Object(a.c)(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=Object(a.c)(t)}get empty(){return!this._inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}_keydown(t){t&&t.keyCode===n.p&&!Object(n.t)(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this._inputElement.focus(t)}_isSeparatorKey(t){return!Object(n.t)(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(A))},t.\u0275dir=s.Ib({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.bc("keydown",function(t){return e._keydown(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(s.Wb("id",e.id),s.Db("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.Ab]}),t})();const P={separatorKeyCodes:[n.g]};let F=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[r.d,{provide:A,useValue:P}],imports:[[r.i]]}),t})()},AytR:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n={production:!0,mockdata:!1,basehref:"/math/",apiurl_root:"https://www.alvachien.com/quizapi"}},"B/XX":function(t,e,i){"use strict";i.d(e,"a",function(){return x}),i.d(e,"b",function(){return f}),i.d(e,"c",function(){return g}),i.d(e,"d",function(){return C}),i.d(e,"e",function(){return O}),i.d(e,"f",function(){return k}),i.d(e,"g",function(){return S}),i.d(e,"h",function(){return w});var n=i("u47x"),s=i("cH1L"),r=i("8LU1"),a=i("FtGj"),o=i("ofXK"),l=i("fXoL"),c=i("XNiG"),h=i("LRne"),u=i("JX91"),d=i("1G5W");function p(t,e){1&t&&l.jc(0)}const m=["*"];let f=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(l.l))},t.\u0275dir=l.Ib({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),g=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(l.N))},t.\u0275dir=l.Ib({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),b=0;const _="edit",y="done",v="error",w=new l.s("STEPPER_GLOBAL_OPTIONS");let x=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=Object(r.c)(t)}get optional(){return this._optional}set optional(t){this._optional=Object(r.c)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=Object(r.c)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=Object(r.c)(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(Object(l.W)(()=>C)),l.Nb(w,8))},t.\u0275cmp=l.Hb({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&l.Gb(i,g,!0),2&t){let t;l.rc(t=l.cc())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&l.zc(l.N,!0),2&t){let t;l.rc(t=l.cc())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[l.Ab],ngContentSelectors:m,decls:1,vars:0,template:function(t,e){1&t&&(l.kc(),l.Dc(0,p,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new c.a,this.steps=new l.F,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.o,this._orientation="horizontal",this._groupId=b++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=Object(r.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const e=Object(r.f)(t);this.steps&&this._steps?(this._isValidIndex(t),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=this.steps?this.steps.toArray().indexOf(t):-1}ngAfterContentInit(){this._steps.changes.pipe(Object(u.a)(this._steps),Object(d.a)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new n.g(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(h.a)()).pipe(Object(u.a)(this._layoutDirection()),Object(d.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?v:!t.completed||e?"number":t.editable?_:y}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?v:t.completed&&!e?y:t.completed&&e?i:t.editable&&e?_:i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=Object(a.t)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==a.o&&i!==a.g?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){const e=this.steps.toArray();return e[this._selectedIndex].interacted=!0,!!(this._linear&&t>=0)&&e.slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(C))},t.\u0275dir=l.Ib({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.bc("click",function(){return e._handleClick()}),2&t&&l.Wb("type",e.type)},inputs:{type:"type"}}),t})(),S=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(C))},t.\u0275dir=l.Ib({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.bc("click",function(){return e._handleClick()}),2&t&&l.Wb("type",e.type)},inputs:{type:"type"}}),t})(),O=(()=>{class t{}return t.\u0275mod=l.Lb({type:t}),t.\u0275inj=l.Kb({factory:function(e){return new(e||t)},imports:[[s.a]]}),t})()},BETK:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"f",function(){return QuizSection}),__webpack_require__.d(__webpack_exports__,"e",function(){return Quiz}),__webpack_require__.d(__webpack_exports__,"a",function(){return AdditionQuizItem}),__webpack_require__.d(__webpack_exports__,"g",function(){return SubtractionQuizItem}),__webpack_require__.d(__webpack_exports__,"d",function(){return MultiplicationQuizItem}),__webpack_require__.d(__webpack_exports__,"b",function(){return DivisionQuizItem}),__webpack_require__.d(__webpack_exports__,"c",function(){return MixedOperationQuizItem});class StorableObject{storeToString(){const t=this.storeToJsonObject();return JSON&&JSON.stringify(t)}restoreFromString(t){const e=JSON.parse(t);this.restoreFromJsonObject(e),this.canCalcResult()&&this.calcResult()}storeToJsonObject(){return{}}restoreFromJsonObject(t){}canCalcResult(){return!0}calcResult(){}}class QuizSection{constructor(t,e){this.itemCount=0,this.failedItemCount=0,this.timeSpent=0,this.isStarted=!1,this.sectionID=t,this.itemCount=e,this.isStarted=!1}get SectionID(){return this.sectionID}get ItemsCount(){return this.itemCount}get FailedItemsCount(){return this.failedItemCount}get IsStarted(){return this.isStarted}get TimeSpent(){return this.timeSpent}set TimeSpent(t){this.timeSpent=t}Start(){this.timeStarted=new Date}Complete(t){this.timeSpent=((new Date).getTime()-this.timeStarted.getTime())/1e3,this.isStarted=!1,this.failedItemCount=t||0}}class Quiz{constructor(t){this.elderSections=[],this.curSectionID=0,this.quizID=t,this.curSection=null}get QuizID(){return this.quizID}get ElderSections(){return this.elderSections}get ActiveSection(){return this.curSection}get NextSectionID(){return this.curSectionID+1}startNewSection(t){if(null!=this.curSection)throw"An active section not yet completed";if(t.SectionID<=this.curSectionID)throw"Invalid Section ID";this.curSectionID=t.SectionID,this.curSection=t,this.curSection.Start()}completeActionSection(t){if(!this.curSection)throw"Active section not available";this.curSection.Complete(t),this.elderSections.push(this.curSection),this.curSection=null}}class QuizItem extends StorableObject{constructor(){super(),this._index=0}get QuizIndex(){return this._index}set QuizIndex(t){this._index=t}IsCorrect(){return!!this.canCalcResult()}getQuizFormat(){return""}getCorrectFormula(){return""}getInputtedForumla(){return""}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}canCalcResult(){return!0}calcResult(){}}class PrimarySchoolMathQuizItem extends QuizItem{IsCorrect(){return!!super.IsCorrect()}getQuizFormat(){return super.getQuizFormat()}getCorrectFormula(){return super.getCorrectFormula()}getInputtedForumla(){return super.getInputtedForumla()}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}canCalcResult(){return!!super.canCalcResult()}calcResult(){}}class PrimarySchoolMathFAOQuizItem extends PrimarySchoolMathQuizItem{constructor(t,e,i){super(),this._leftNumber=0,this._rightNumber=0,this._decimalPlaces=i||0,t&&(this._leftNumber=this._decimalPlaces>0?parseFloat(t.toFixed(this._decimalPlaces)):Math.round(t)),e&&(this._rightNumber=this._decimalPlaces>0?parseFloat(e.toFixed(this._decimalPlaces)):Math.round(e)),this.canCalcResult()&&this.calcResult()}get LeftNumber(){return this._leftNumber}get RightNumber(){return this._rightNumber}get decimalPlaces(){return this._decimalPlaces}IsCorrect(){return!!super.IsCorrect()}getQuizFormat(){return super.getQuizFormat()}getCorrectFormula(){return super.getCorrectFormula()}getInputtedForumla(){return super.getInputtedForumla()}storeToJsonObject(){const t=super.storeToJsonObject();return t.leftNumber=this._leftNumber,t.rightNumber=this._rightNumber,t.decimalPlaces=this.decimalPlaces,t}restoreFromJsonObject(t){t&&t.leftNumber&&(this._leftNumber=+t.leftNumber),t&&t.rightNumber&&(this._rightNumber=+t.rightNumber),this._decimalPlaces=t&&t.decimalPlaces?+t.decimalPlaces:0}canCalcResult(){return!!super.canCalcResult()&&void 0!==this._leftNumber&&void 0!==this._rightNumber}calcResult(){super.calcResult()}}class PrimarySchoolMathQuizSection{constructor(t,e){this._itemCount=0,this._itemFailed=0,this._startPoint=0,this._timeSpent=0,this._sectionNumber=t,this.ItemsCount=e}get SectionNumber(){return this._sectionNumber}get ItemsCount(){return this._itemCount}set ItemsCount(t){this._itemCount=t}get ItemsFailed(){return this._itemFailed}set ItemsFailed(t){this._itemFailed=t}get TimeSpent(){return this._timeSpent}SectionStart(){this._startPoint=(new Date).getTime()}SectionComplete(){const t=(new Date).getTime();this._timeSpent=Math.round((t-this._startPoint)/1e3)}getSummaryInfo(){let t="BATCH#"+this.SectionNumber.toString()+";";return t=t+" total items: "+this.ItemsCount.toString()+"; "+(this.ItemsFailed>0?" Failed : "+this.ItemsFailed.toString():""),t=t+=" Time spent: "+this.TimeSpent.toString()+" s",t}}class AdditionQuizItem extends PrimarySchoolMathFAOQuizItem{constructor(t,e,i){super(t,e,i)}get Result(){return this._result}get InputtedResult(){return this._inputtedResult}set InputtedResult(t){this._inputtedResult=t}IsCorrect(){return!!super.IsCorrect()&&null!=this._inputtedResult&&this._inputtedResult===this._result}getCorrectFormula(){return this.LeftNumber.toString()+" + "+this.RightNumber.toString()+" = "+this.Result.toString()}getInputtedForumla(){return this.LeftNumber.toString()+" + "+this.RightNumber.toString()+" = "+(null!=this.InputtedResult?this.InputtedResult.toString():"")}getQuizFormat(){return super.getQuizFormat()+this.LeftNumber.toString()+" + "+this.RightNumber.toString()+" = "}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}calcResult(){super.calcResult(),this._result=this.LeftNumber+this.RightNumber,this._result=0===this._decimalPlaces?Math.round(this._result):parseFloat(this._result.toFixed(this._decimalPlaces))}}class SubtractionQuizItem extends PrimarySchoolMathFAOQuizItem{constructor(t,e,i){super(t,e,i)}get Result(){return this._result}get InputtedResult(){return this._inputtedResult}set InputtedResult(t){this._inputtedResult=t}IsCorrect(){return!!super.IsCorrect()&&null!=this._inputtedResult&&this._inputtedResult===this._result}getCorrectFormula(){return this.LeftNumber.toString()+" - "+this.RightNumber.toString()+" = "+this.Result.toString()}getInputtedForumla(){return this.LeftNumber.toString()+" - "+this.RightNumber.toString()+" = "+(null!=this.InputtedResult?this.InputtedResult.toString():"")}getQuizFormat(){return super.getQuizFormat()+this.LeftNumber.toString()+" - "+this.RightNumber.toString()+" = "}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}calcResult(){super.calcResult(),this._result=this.LeftNumber-this.RightNumber,this._result=0===this._decimalPlaces?Math.round(this._result):parseFloat(this._result.toFixed(this._decimalPlaces))}}class MultiplicationQuizItem extends PrimarySchoolMathFAOQuizItem{constructor(t,e,i){super(t,e,i)}get Result(){return this._result}get InputtedResult(){return this._inputtedResult}set InputtedResult(t){this._inputtedResult=t}IsCorrect(){return!!super.IsCorrect()&&null!=this._inputtedResult&&this._inputtedResult===this._result}getCorrectFormula(){return this.LeftNumber.toString()+" \xd7 "+this.RightNumber.toString()+" = "+this.Result.toString()}getInputtedForumla(){return this.LeftNumber.toString()+" \xd7 "+this.RightNumber.toString()+" = "+(null!=this.InputtedResult?this.InputtedResult.toString():"")}getQuizFormat(){return super.getQuizFormat()+this.LeftNumber.toString()+" \xd7 "+this.RightNumber.toString()+" = "}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}calcResult(){super.calcResult(),this._result=this.LeftNumber*this.RightNumber,this._result=0===this._decimalPlaces?Math.round(this._result):parseFloat(this._result.toFixed(this._decimalPlaces))}}class DivisionQuizItem extends PrimarySchoolMathFAOQuizItem{constructor(t,e,i){super(t,e,i)}get Dividend(){return this.LeftNumber}get Divisor(){return this.RightNumber}get Quotient(){return this._quotient}get Remainder(){return this._remainder}get InputtedQuotient(){return this._inputtedQuotient}set InputtedQuotient(t){this._inputtedQuotient=t}get InputtedRemainder(){return this._inputtedRemainder}set InputtedRemainder(t){this._inputtedRemainder=t}IsCorrect(){const t=super.IsCorrect();return t?null!=this._inputtedQuotient&&null!==this._inputtedRemainder&&null!==this._inputtedRemainder&&this._inputtedQuotient===this._quotient&&this._inputtedRemainder===this._remainder:t}getCorrectFormula(){return this.LeftNumber.toString()+" \xf7 "+this.RightNumber.toString()+" = "+this.Quotient.toString()+(0===this.Remainder?"":"... "+this.Remainder.toString())}getInputtedForumla(){return this.LeftNumber.toString()+" \xf7 "+this.RightNumber.toString()+" = "+(null!=this.InputtedQuotient?this.InputtedQuotient.toString():"")+(null!=this.InputtedRemainder?" ... "+this.InputtedRemainder.toString():"")}getQuizFormat(){return super.getQuizFormat()+this.LeftNumber.toString()+" \xf7 "+this.RightNumber.toString()+" = "}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}canCalcResult(){return!!super.canCalcResult()&&0!==this._rightNumber}calcResult(){super.calcResult(),this._quotient=this.LeftNumber/this.RightNumber,this._remainder=this.LeftNumber%this.RightNumber,this._quotient=this._decimalPlaces>0?parseFloat(this._quotient.toFixed(this._decimalPlaces)):Math.floor(this._quotient)}}class MixedOperationQuizItem extends PrimarySchoolMathQuizItem{constructor(t){super(),t&&(this._formula=t),this.canCalcResult()&&this.calcResult()}get Formula(){return this._formula}get Result(){return this._result}get decimalPlace(){return this._decimalPlace}get InputtedResult(){return this._inputtedResult}set InputtedResult(t){this._inputtedResult=t}set decimalPlace(t){this._decimalPlace=t}IsCorrect(){return!!super.IsCorrect()&&this._result===this._inputtedResult}getCorrectFormula(){return this.getQuizFormat()+this.Result.toString()}getInputtedForumla(){return this.getQuizFormat()+this.InputtedResult.toString()}getQuizFormat(){return super.getQuizFormat()+this._formula.replace("*","\xd7").replace("/","\xf7")+" = "}storeToJsonObject(){const t=super.storeToJsonObject();return t.forumla=this._formula,t}restoreFromJsonObject(t){super.restoreFromJsonObject(t),t&&t.forumla&&(this._formula=t.formula)}canCalcResult(){return!!super.canCalcResult()&&!(void 0===this._formula||this._formula.length<=0)}calcResult(){super.calcResult(),this._result=eval(this._formula),this._result=this._decimalPlace>0?parseFloat(this._result.toFixed(this._decimalPlace)):Math.floor(this._result)}}},Cfvw:function(t,e,i){"use strict";i.d(e,"a",function(){return u});var n=i("HDdC"),s=i("SeVD"),r=i("quSY"),a=i("kJWO"),o=i("jZKg"),l=i("Lhse"),c=i("c2HN"),h=i("I55L");function u(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new n.a(i=>{const n=new r.a;return n.add(e.schedule(()=>{const s=t[a.a]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(Object(c.a)(t))return function(t,e){return new n.a(i=>{const n=new r.a;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(Object(h.a)(t))return Object(o.a)(t,e);if(function(t){return t&&"function"==typeof t[l.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.a(i=>{const n=new r.a;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[l.a](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.a?t:new n.a(Object(s.a)(t))}},D0XW:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("3N8a");const s=new(i("IjjT").a)(n.a)},DH7j:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},Dh3D:function(t,e,i){"use strict";i.d(e,"a",function(){return h}),i.d(e,"b",function(){return m});var n=i("fXoL"),s=i("8LU1"),r=i("FKr1"),a=(i("FtGj"),i("XNiG")),o=(i("VRyK"),i("R0Ic"),i("ofXK"));i("u47x");class l{}const c=Object(r.A)(Object(r.y)(l));let h=(()=>{class t extends c{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new a.a,this.start="asc",this._direction="",this.sortChange=new n.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 i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),i=e.indexOf(this.direction)+1;return i>=e.length&&(i=0),e[i]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return u(e||t)},t.\u0275dir=n.Ib({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:[n.zb,n.Ab]}),t})();const u=n.Vb(h);let d=(()=>{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(n.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const p={provide:d,deps:[[new n.C,new n.L,d]],useFactory:function(t){return t||new d}};let m=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[p],imports:[[o.c,r.i]]}),t})()},EUkQ:function(t,e){function i(t){return t&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function n(t){return t}function s(t,e){const s=(e=e||{}).delimiter||".",r=e.maxDepth,a=e.transformKey||n,o={};return function t(n,l,c){c=c||1,Object.keys(n).forEach(function(h){const u=n[h],d=e.safe&&Array.isArray(u),p=Object.prototype.toString.call(u),m=i(u),f="[object Object]"===p||"[object Array]"===p,g=l?l+s+a(h):a(h);if(!d&&!m&&f&&Object.keys(u).length&&(!e.maxDepth||c0&&(s=h(n.shift()),u=h(n[0]))}d[s]=t(e[i],r)}),c}},EY2u:function(t,e,i){"use strict";i.d(e,"a",function(){return s}),i.d(e,"b",function(){return r});var n=i("HDdC");const s=new n.a(t=>t.complete());function r(t){return t?function(t){return new n.a(e=>t.schedule(()=>e.complete()))}(t):s}},FKr1:function(t,e,i){"use strict";i.d(e,"a",function(){return b}),i.d(e,"b",function(){return _}),i.d(e,"c",function(){return D}),i.d(e,"d",function(){return B}),i.d(e,"e",function(){return I}),i.d(e,"f",function(){return lt}),i.d(e,"g",function(){return ut}),i.d(e,"h",function(){return Z}),i.d(e,"i",function(){return w}),i.d(e,"j",function(){return H}),i.d(e,"k",function(){return q}),i.d(e,"l",function(){return z}),i.d(e,"m",function(){return pt}),i.d(e,"n",function(){return gt}),i.d(e,"o",function(){return ht}),i.d(e,"p",function(){return et}),i.d(e,"q",function(){return it}),i.d(e,"r",function(){return J}),i.d(e,"s",function(){return tt}),i.d(e,"t",function(){return Q}),i.d(e,"u",function(){return mt}),i.d(e,"v",function(){return ft}),i.d(e,"w",function(){return C}),i.d(e,"x",function(){return k}),i.d(e,"y",function(){return x}),i.d(e,"z",function(){return O}),i.d(e,"A",function(){return E}),i.d(e,"B",function(){return S}),i.d(e,"C",function(){return U});var n=i("fXoL"),s=i("u47x"),r=i("cH1L");const a=new n.Q("11.0.3");var o=i("ofXK"),l=i("8LU1"),c=i("XNiG"),h=i("HDdC"),u=i("nLfN"),d=i("JX91"),p=i("R1ws"),m=i("FtGj");function f(t,e){if(1&t&&n.Ob(0,"mat-pseudo-checkbox",3),2&t){const t=n.fc();n.lc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const g=["*"];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 n.Q("11.0.3"),v=new n.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let w=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Object(n.Y)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&y.full!==a.full&&console.warn("The Angular Material version ("+y.full+") does not match the Angular CDK version ("+a.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)(n.Xb(s.j),n.Xb(v,8),n.Xb(o.d))},imports:[[r.a],r.a]}),t})();function x(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.c)(t)}}}function C(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 k(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(l.c)(t)}}}function S(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Object(l.f)(t):this.defaultTabIndex}}}function O(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function E(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 A=new n.s("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(n.X)(n.w)}});class D{constructor(){this._localeChanges=new c.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 i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const I=new n.s("mat-date-formats");let T;try{T="undefined"!=typeof Intl}catch(bt){T=!1}const R={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"]},j=P(31,t=>String(t+1)),L={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},N=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function P(t,e){const i=Array(t);for(let n=0;n{class t extends D{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(T){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return P(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return R[t]}getDateNames(){if(T){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return P(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return j}getDayOfWeekNames(t){if(T){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return P(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return L[t]}getYearName(t){if(T){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,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}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(T){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 i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}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(N.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,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(A,8),n.Xb(u.a))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[{provide:D,useClass:F}],imports:[[u.b]]}),t})();const V={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 z=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[{provide:I,useValue:V}],imports:[[M]]}),t})(),B=(()=>{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(n.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function U(t,e,i="mat"){t.changes.pipe(Object(d.a)(t)).subscribe(({length:t})=>{X(e,i+"-2-line",!1),X(e,i+"-3-line",!1),X(e,i+"-multi-line",!1),2===t||3===t?X(e,`${i}-${t}-line`,!0):t>3&&X(e,i+"-multi-line",!0)})}function X(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let q=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[w],w]}),t})();class ${constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const W={enterDuration:450,exitDuration:400},K=Object(u.f)({passive:!0}),G=["mousedown","touchstart"],Y=["mouseup","mouseleave","touchend","touchcancel"];class Q{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Object(l.e)(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},W),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const r=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),a=t-n.left,o=e-n.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=a-r+"px",c.style.top=o-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new $(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,i.persistent||t&&this._isPointerDown||h.fadeOut()},l),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 i=t.element,n=Object.assign(Object.assign({},W),t.config.animation);i.style.transitionDuration=n.exitDuration+"ms",i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(l.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(G))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Y),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(s.l)(t),i=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,K)})})}_removeTriggerEvents(){this._triggerElement&&(G.forEach(t=>{this._triggerElement.removeEventListener(t,this,K)}),this._pointerUpEventsRegistered&&Y.forEach(t=>{this._triggerElement.removeEventListener(t,this,K)}))}}const Z=new n.s("mat-ripple-global-options");let J=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new Q(this,e,t,i)}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,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(n.B),n.Nb(u.a),n.Nb(Z,8),n.Nb(p.a,8))},t.\u0275dir=n.Ib({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.Fb("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=n.Lb({type:t}),t.\u0275inj=n.Kb({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)(n.Nb(p.a,8))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.Fb("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})(),it=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[w]]}),t})();class nt{}const st=x(nt);let rt=0,at=(()=>{class t extends st{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+rt++}}return t.\u0275fac=function(e){return ot(e||t)},t.\u0275dir=n.Ib({type:t,inputs:{label:"label"},features:[n.zb]}),t})();const ot=n.Vb(at),lt=new n.s("MatOptgroup");let ct=0;class ht{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const ut=new n.s("MAT_OPTION_PARENT_COMPONENT");let dt=(()=>{class t{constructor(t,e,i,s){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ct++,this.onSelectionChange=new n.o,this._stateChanges=new c.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(l.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 i=this._getHostElement();"function"==typeof i.focus&&i.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!==m.g&&t.keyCode!==m.o||Object(m.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)(n.Nb(n.l),n.Nb(n.h),n.Nb(void 0),n.Nb(at))},t.\u0275dir=n.Ib({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(n.h),n.Nb(ut,8),n.Nb(lt,8))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.bc("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(n.Wb("id",e.id),n.Db("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.Fb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[n.zb],ngContentSelectors:g,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&&(n.kc(),n.Dc(0,f,1,2,"mat-pseudo-checkbox",0),n.Tb(1,"span",1),n.jc(2),n.Sb(),n.Ob(3,"div",2)),2&t&&(n.lc("ngIf",e.multiple),n.Cb(3),n.lc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[o.m,J,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 mt(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),r=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let gt=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[tt,o.c,w,it]]}),t})()},FtGj:function(t,e,i){"use strict";i.d(e,"a",function(){return y}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return w}),i.d(e,"d",function(){return g}),i.d(e,"e",function(){return f}),i.d(e,"f",function(){return h}),i.d(e,"g",function(){return r}),i.d(e,"h",function(){return a}),i.d(e,"i",function(){return u}),i.d(e,"j",function(){return d}),i.d(e,"k",function(){return _}),i.d(e,"l",function(){return c}),i.d(e,"m",function(){return l}),i.d(e,"n",function(){return m}),i.d(e,"o",function(){return o}),i.d(e,"p",function(){return s}),i.d(e,"q",function(){return p}),i.d(e,"r",function(){return v}),i.d(e,"s",function(){return b}),i.d(e,"t",function(){return x});const n=8,s=9,r=13,a=27,o=32,l=33,c=34,h=35,u=36,d=37,p=38,m=39,f=40,g=46,b=48,_=57,y=65,v=90,w=188;function x(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},GU7r:function(t,e,i){"use strict";i.d(e,"a",function(){return h}),i.d(e,"b",function(){return c}),i.d(e,"c",function(){return u});var n=i("8LU1"),s=i("fXoL"),r=i("HDdC"),a=i("XNiG"),o=i("Kj3r");let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(n.e)(t);return new r.a(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new a.a,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,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:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(l))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(l))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.o,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(n.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(n.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(o.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(c),s.Nb(s.l),s.Nb(s.B))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),u=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[l]}),t})()},GyhO:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("LRne"),s=i("0EUg");function r(...t){return Object(s.a)()(Object(n.a)(...t))}},HDdC:function(t,e,i){"use strict";i.d(e,"a",function(){return c});var n=i("7o/Q"),s=i("2QA8"),r=i("gRHU"),a=i("kJWO"),o=i("SpAZ"),l=i("2fFW");let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:a}=this,o=function(t,e,i){if(t){if(t instanceof n.a)return t;if(t[s.a])return t[s.a]()}return t||e||i?new n.a(t,e,i):new n.a(r.a)}(t,e,i);if(o.add(a?a.call(o,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),l.a.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.a?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=h(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[a.a](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?o.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 i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function h(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IjjT:function(t,e,i){"use strict";i.d(e,"a",function(){return s});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.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,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},IzEk:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("7o/Q"),s=i("4I5i"),r=i("EY2u");function a(t){return e=>0===t?Object(r.b)():e.lift(new o(t))}class o{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends n.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("zx2A");function s(t){return function(e){const i=new r(t),n=e.lift(i);return i.caught=n}}class r{constructor(t){this.selector=t}call(t,e){return e.subscribe(new a(t,this.selector,this.caught))}}class a extends n.b{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new n.a(this);this.add(s);const r=Object(n.c)(i,s);r!==s&&this.add(r)}}}},JX91:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("GyhO"),s=i("z+Ro");function r(...t){const e=t[t.length-1];return Object(s.a)(e)?(t.pop(),i=>Object(n.a)(t,i,e)):e=>Object(n.a)(t,e)}},Kj3r:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("7o/Q"),s=i("D0XW");function r(t,e=s.a){return i=>i.lift(new a(t,e))}class a{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new o(t,this.dueTime,this.scheduler))}}class o extends n.a{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},LRne:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("z+Ro"),s=i("yCtX"),r=i("jZKg");function a(...t){let e=t[t.length-1];return Object(n.a)(e)?(t.pop(),Object(r.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,i){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}i.d(e,"a",function(){return s});const s=n()},M9IT:function(t,e,i){"use strict";i.d(e,"a",function(){return k}),i.d(e,"b",function(){return S});var n=i("ofXK"),s=i("fXoL"),r=i("FKr1"),a=i("bTqV"),o=i("d3UM"),l=i("Qu3c"),c=i("8LU1"),h=i("XNiG"),u=i("kmnG");function d(t,e){if(1&t&&(s.Tb(0,"mat-option",19),s.Ec(1),s.Sb()),2&t){const t=e.$implicit;s.lc("value",t),s.Cb(1),s.Gc(" ",t," ")}}function p(t,e){if(1&t){const t=s.Ub();s.Tb(0,"mat-form-field",16),s.Tb(1,"mat-select",17),s.bc("selectionChange",function(e){return s.uc(t),s.fc(2)._changePageSize(e.value)}),s.Dc(2,d,2,2,"mat-option",18),s.Sb(),s.Sb()}if(2&t){const t=s.fc(2);s.lc("appearance",t._formFieldAppearance)("color",t.color),s.Cb(1),s.lc("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.Cb(1),s.lc("ngForOf",t._displayedPageSizeOptions)}}function m(t,e){if(1&t&&(s.Tb(0,"div",20),s.Ec(1),s.Sb()),2&t){const t=s.fc(2);s.Cb(1),s.Fc(t.pageSize)}}function f(t,e){if(1&t&&(s.Tb(0,"div",12),s.Tb(1,"div",13),s.Ec(2),s.Sb(),s.Dc(3,p,3,6,"mat-form-field",14),s.Dc(4,m,2,1,"div",15),s.Sb()),2&t){const t=s.fc();s.Cb(2),s.Gc(" ",t._intl.itemsPerPageLabel," "),s.Cb(1),s.lc("ngIf",t._displayedPageSizeOptions.length>1),s.Cb(1),s.lc("ngIf",t._displayedPageSizeOptions.length<=1)}}function g(t,e){if(1&t){const t=s.Ub();s.Tb(0,"button",21),s.bc("click",function(){return s.uc(t),s.fc().firstPage()}),s.ec(),s.Tb(1,"svg",7),s.Ob(2,"path",22),s.Sb(),s.Sb()}if(2&t){const t=s.fc();s.lc("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.Db("aria-label",t._intl.firstPageLabel)}}function b(t,e){if(1&t){const t=s.Ub();s.ec(),s.dc(),s.Tb(0,"button",23),s.bc("click",function(){return s.uc(t),s.fc().lastPage()}),s.ec(),s.Tb(1,"svg",7),s.Ob(2,"path",24),s.Sb(),s.Sb()}if(2&t){const t=s.fc();s.lc("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.Db("aria-label",t._intl.lastPageLabel)}}let _=(()=>{class t{constructor(){this.changes=new h.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,i)=>{if(0==i||0==e)return"0 of "+i;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Jb)({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 x=Object(r.y)(Object(r.A)(w));let C=(()=>{class t extends x{constructor(t,e,i){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()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}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.Nb(_),s.Nb(s.h),s.Nb(void 0))},t.\u0275dir=s.Ib({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[s.zb]}),t})(),k=(()=>{class t extends C{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(_),s.Nb(s.h),s.Nb(v,8))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[s.zb],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.Tb(0,"div",0),s.Tb(1,"div",1),s.Dc(2,f,5,3,"div",2),s.Tb(3,"div",3),s.Tb(4,"div",4),s.Ec(5),s.Sb(),s.Dc(6,g,3,5,"button",5),s.Tb(7,"button",6),s.bc("click",function(){return e.previousPage()}),s.ec(),s.Tb(8,"svg",7),s.Ob(9,"path",8),s.Sb(),s.Sb(),s.dc(),s.Tb(10,"button",9),s.bc("click",function(){return e.nextPage()}),s.ec(),s.Tb(11,"svg",7),s.Ob(12,"path",10),s.Sb(),s.Sb(),s.Dc(13,b,3,5,"button",11),s.Sb(),s.Sb(),s.Sb()),2&t&&(s.Cb(2),s.lc("ngIf",!e.hidePageSize),s.Cb(3),s.Gc(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.Cb(1),s.lc("ngIf",e.showFirstLastButtons),s.Cb(1),s.lc("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.Db("aria-label",e._intl.previousPageLabel),s.Cb(3),s.lc("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.Db("aria-label",e._intl.nextPageLabel),s.Cb(3),s.lc("ngIf",e.showFirstLastButtons))},directives:[n.m,a.b,l.a,u.c,o.a,n.l,r.m],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})(),S=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[y],imports:[[n.c,a.c,o.b,l.b,r.i]]}),t})()},MutI:function(t,e,i){"use strict";i.d(e,"a",function(){return T}),i.d(e,"b",function(){return L}),i.d(e,"c",function(){return U}),i.d(e,"d",function(){return B}),i.d(e,"e",function(){return D}),i.d(e,"f",function(){return H});var n=i("ofXK"),s=i("fXoL"),r=i("FKr1"),a=i("8LU1"),o=i("XNiG"),l=i("1G5W"),c=i("JX91"),h=i("u47x"),u=i("0EQZ"),d=i("FtGj"),p=i("3Pt+"),m=i("f0Cb");const f=["*"],g='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',b=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],_=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],y=["text"];function v(t,e){if(1&t&&s.Ob(0,"mat-pseudo-checkbox",5),2&t){const t=s.fc();s.lc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const w=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],x=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class C{}const k=Object(r.y)(Object(r.x)(C));class S{}const O=Object(r.x)(S),E=new s.s("MatList"),A=new s.s("MatNavList");let D=(()=>{class t extends k{constructor(){super(...arguments),this._stateChanges=new o.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return I(e||t)},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.Bb([{provide:A,useExisting:t}]),s.zb,s.Ab],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(s.kc(),s.jc(0))},styles:[g],encapsulation:2,changeDetection:0}),t})();const I=s.Vb(D);let T=(()=>{class t extends k{constructor(t){super(),this._elementRef=t,this._stateChanges=new o.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s.Bb([{provide:E,useExisting:t}]),s.zb,s.Ab],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(s.kc(),s.jc(0))},styles:[g],encapsulation:2,changeDetection:0}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),L=(()=>{class t extends O{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new o.a,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Object(l.a)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Object(a.c)(t)}ngAfterContentInit(){Object(r.C)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.h),s.Nb(A,8),s.Nb(E,8))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(s.Gb(i,R,!0),s.Gb(i,j,!0),s.Gb(i,r.j,!0)),2&t){let t;s.rc(t=s.cc())&&(e._avatar=t.first),s.rc(t=s.cc())&&(e._icon=t.first),s.rc(t=s.cc())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.Fb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.zb],ngContentSelectors:_,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.kc(b),s.Tb(0,"div",0),s.Ob(1,"div",1),s.jc(2),s.Tb(3,"div",2),s.jc(4,1),s.Sb(),s.jc(5,2),s.Sb()),2&t&&(s.Cb(1),s.lc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[r.r],encapsulation:2,changeDetection:0}),t})();class N{}const P=Object(r.x)(N);class F{}const M=Object(r.x)(F),V={provide:p.k,useExisting:Object(s.W)(()=>H),multi:!0};class z{constructor(t,e,i){this.source=t,this.option=e,this.options=i}}let B=(()=>{class t extends M{constructor(t,e,i){super(),this._element=t,this._changeDetector=e,this.selectionList=i,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&!this.selectionList.compareWith(t,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=t}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(t){const e=Object(a.c)(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=Object(a.c)(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}ngOnInit(){const t=this.selectionList;t._value&&t._value.some(e=>t.compareWith(e,this._value))&&this._setSelected(!0);const e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){Object(r.C)(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const t=this._hasFocus,e=this.selectionList._removeOptionFromList(this);t&&e&&e.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.h),s.Nb(Object(s.W)(()=>H)))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){if(1&t&&(s.Gb(i,R,!0),s.Gb(i,j,!0),s.Gb(i,r.j,!0)),2&t){let t;s.rc(t=s.cc())&&(e._avatar=t.first),s.rc(t=s.cc())&&(e._icon=t.first),s.rc(t=s.cc())&&(e._lines=t)}},viewQuery:function(t,e){if(1&t&&s.Ic(y,!0),2&t){let t;s.rc(t=s.cc())&&(e._text=t.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.bc("focus",function(){return e._handleFocus()})("blur",function(){return e._handleBlur()})("click",function(){return e._handleClick()}),2&t&&(s.Db("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),s.Fb("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[s.zb],ngContentSelectors:x,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(s.kc(w),s.Tb(0,"div",0),s.Ob(1,"div",1),s.Dc(2,v,1,2,"mat-pseudo-checkbox",2),s.Tb(3,"div",3,4),s.jc(5),s.Sb(),s.jc(6,1),s.Sb()),2&t&&(s.Fb("mat-list-item-content-reverse","after"==e.checkboxPosition),s.Cb(1),s.lc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),s.Cb(1),s.lc("ngIf",e.selectionList.multiple))},directives:[r.r,n.m,r.p],encapsulation:2,changeDetection:0}),t})(),H=(()=>{class t extends P{constructor(t,e,i,n){super(),this._element=t,this._changeDetector=i,this._focusMonitor=n,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new s.o,this.tabIndex=0,this.color="accent",this.compareWith=(t,e)=>t===e,this._disabled=!1,this.selectedOptions=new u.c(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new o.a,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(a.c)(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=Object(a.c)(t);e!==this._multiple&&(this._multiple=e,this.selectedOptions=new u.c(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){var t;this._contentInitialized=!0,this._keyManager=new h.g(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Object(l.a)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(Object(c.a)(null),Object(l.a)(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Object(l.a)(this._destroyed)).subscribe(t=>{if(t.added)for(let e of t.added)e.selected=!0;if(t.removed)for(let e of t.removed)e.selected=!1}),null===(t=this._focusMonitor)||void 0===t||t.monitor(this._element).pipe(Object(l.a)(this._destroyed)).subscribe(t=>{if("keyboard"===t||"program"===t){const t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}})}ngOnChanges(t){const e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){var t;null===(t=this._focusMonitor)||void 0===t||t.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){this._setAllOptionsSelected(!0)}deselectAll(){this._setAllOptionsSelected(!1)}_setFocusedOption(t){this._keyManager.updateActiveItem(t)}_removeOptionFromList(t){const e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}_keydown(t){const e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,s=Object(d.t)(t);switch(e){case d.o:case d.g:s||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;default:if(e===d.a&&this.multiple&&Object(d.t)(t,"ctrlKey")&&!i.isTyping()){const e=this.options.some(t=>!t.disabled&&!t.selected);this._setAllOptionsSelected(e,!0,!0),t.preventDefault()}else i.onKeydown(t)}this.multiple&&(e===d.q||e===d.e)&&t.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new z(this,t[0],t))}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_setOptionsFromValues(t){this.options.forEach(t=>t._setSelected(!1)),t.forEach(t=>{const e=this.options.find(e=>!e.selected&&this.compareWith(e.value,t));e&&e._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_toggleFocusedOption(){let t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){let e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent([e]))}}_setAllOptionsSelected(t,e,i){const n=[];this.options.forEach(i=>{e&&i.disabled||!i._setSelected(t)||n.push(i)}),n.length&&(this._reportValueChange(),i&&this._emitChangeEvent(n))}_isValidIndex(t){return t>=0&&tt._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Yb("tabindex"),s.Nb(s.h),s.Nb(h.h))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-selection-list"]],contentQueries:function(t,e,i){if(1&t&&s.Gb(i,B,!0),2&t){let t;s.rc(t=s.cc())&&(e.options=t)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&s.bc("keydown",function(t){return e._keydown(t)}),2&t&&s.Db("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[s.Bb([V]),s.zb,s.Ab],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(s.kc(),s.jc(0))},styles:[g],encapsulation:2,changeDetection:0}),t})(),U=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},imports:[[r.k,r.s,r.i,r.q,n.c],r.k,r.i,r.q,m.b]}),t})()},NFeN:function(t,e,i){"use strict";i.d(e,"a",function(){return j}),i.d(e,"b",function(){return L});var n=i("fXoL"),s=i("FKr1"),r=i("8LU1"),a=i("ofXK"),o=i("LRne"),l=i("z6cu"),c=i("cp0P"),h=i("quSY"),u=i("vkgz"),d=i("lJxs"),p=i("JIr8"),m=i("nYR2"),f=i("w1tV"),g=i("IzEk"),b=i("tk/3"),_=i("jhN1");const y=["*"];function v(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function x(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class C{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let k=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new C(i,null,n))}addSvgIconLiteralInNamespace(t,e,i,s){const r=this._sanitizer.sanitize(n.K.HTML,i);if(!r)throw x(i);return this._addSvgIconConfig(t,e,new C("",r,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new C(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const s=this._sanitizer.sanitize(n.K.HTML,e);if(!s)throw x(e);return this._addSvgIconSetConfig(t,new C("",s,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(n.K.RESOURCE_URL,t);if(!e)throw w(t);const i=this._cachedIconsByUrl.get(e);return i?Object(o.a)(S(i)):this._loadSvgIconFromConfig(new C(t,null)).pipe(Object(u.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(d.a)(t=>S(t)))}getNamedSvgIcon(t,e=""){const i=O(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Object(l.a)(v(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Object(o.a)(S(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(d.a)(t=>S(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);if(i)return Object(o.a)(i);const s=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(p.a)(e=>{const i=this._sanitizer.sanitize(n.K.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),Object(o.a)(null)})));return Object(c.a)(s).pipe(Object(d.a)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw v(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Object(u.a)(e=>t.svgText=e),Object(d.a)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Object(o.a)(null):this._fetchIcon(t).pipe(Object(u.a)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(a)),Object(f.a)());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(O(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(b.a,8),n.Xb(_.b),n.Xb(a.d,8),n.Xb(n.n))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(b.a,8),Object(n.Xb)(_.b),Object(n.Xb)(a.d,8),Object(n.Xb)(n.n))},token:t,providedIn:"root"}),t})();function S(t){return t.cloneNode(!0)}function O(t,e){return t+":"+e}class E{constructor(t){this._elementRef=t}}const A=Object(s.w)(E),D=new n.s("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(n.X)(a.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),I=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],T=I.map(t=>`[${t}]`).join(", "),R=/^url\(['"]?#(.*?)['"]?\)$/;let j=(()=>{class t extends A{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=h.a.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(r.c)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(T),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],r=s.getAttribute(t),a=r?r.match(R):null;if(a){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:a[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe(Object(g.a)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(k),n.Yb("aria-hidden"),n.Nb(D),n.Nb(n.n))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(n.Db("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),n.Fb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.zb],ngContentSelectors:y,decls:1,vars:0,template:function(t,e){1&t&&(n.kc(),n.jc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),L=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[s.i],s.i]}),t})()},NJ4a:function(t,e,i){"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,"a",function(){return n})},NUjs:function(t,e,i){"use strict";i.d(e,"b",function(){return s}),i.d(e,"a",function(){return r});var n=function(t){return t[t.Question=0]="Question",t[t.SingleChoice=1]="SingleChoice",t[t.MultipleChoice=2]="MultipleChoice",t[t.ShortAnswer=3]="ShortAnswer",t[t.EssayQuestions=4]="EssayQuestions",t}({});const s=t=>{let e="";switch(t){case n.SingleChoice:e="ExerciseItemType.SingleChoice";break;case n.MultipleChoice:e="ExerciseItemType.MultipleChoices";break;case n.ShortAnswer:e="ExerciseItemType.ShortAnswer";break;case n.ShortAnswer:e="ExerciseItemType.EssayQuestion";break;case n.Question:default:e="ExerciseItemType.Question"}return e};class r{constructor(){this._tags=[],this.ID=-1,this.Content="",this.ItemType=n.Question}get KnowledgeItemID(){return this._knowledgeItemID}set KnowledgeItemID(t){this._knowledgeItemID=t}get CreatedAt(){return this._createdAt}set CreatedAt(t){this._createdAt=t}get ModifiedAt(){return this._modifiedAt}set ModifiedAt(t){this._modifiedAt=t}get Tags(){return this._tags}set Tags(t){this._tags=t.slice()}get Answer(){return this._answer}set Answer(t){this._answer=t}parseData(t){if(t&&t.ID&&(this.ID=+t.ID),t&&t.KnowledgeItemID&&(this.KnowledgeItemID=t.KnowledgeItemID),t&&t.ExerciseType&&(this.ItemType=isNaN(+t.ExerciseType)?n[t.ExerciseType]:+t.ExerciseType),t&&t.Content&&(this.Content=t.Content),t&&t.CreatedAt&&(this.CreatedAt=new Date(t.CreatedAt)),t&&t.ModifiedAt&&(this.ModifiedAt=new Date(t.ModifiedAt)),t&&t.Answer&&(this.Answer=t.Answer.Content),t&&t.Tags){const e=t.Tags;this._tags=[],e.forEach(t=>{this._tags.push(t.TagTerm)})}}generateString(t){const e={Content:this.Content,ExerciseType:n[this.ItemType]};return t&&(e.ID=this.ID),this.KnowledgeItemID&&(e.KnowledgeItemID=this.KnowledgeItemID),this.CreatedAt&&(e.CreatedAt=this.CreatedAt.toISOString().slice(0,10)),this.ModifiedAt&&(e.ModifiedAt=this.ModifiedAt.toISOString().slice(0,10)),this.Answer&&(e.Answer={Content:this.Answer}),this.Tags&&(e.Tags=[],this.Tags.forEach(t=>{e.Tags.push({TagTerm:t})})),JSON&&JSON.stringify(e)}}},NXyV:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("HDdC"),s=i("Cfvw"),r=i("EY2u");function a(t){return new n.a(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(s.a)(i):Object(r.b)()).subscribe(e)})}},OnMO:function(t,e,i){t.exports=function(){"use strict";function t(t,e){for(var i=0;it.length)&&(e=t.length);for(var i=0,n=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}var n=function(t){var e={exports:{}};return function(t){function e(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}t.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:e,changeDefaults:function(e){t.exports.defaults=e}}}(e),e.exports}(),s=/[&<>"']/,r=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(t){return l[t]},h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function u(t){return t.replace(h,function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""})}var d=/(^|[^\[])\^/g,p=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,f={},g=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function y(t,e,i){var n=t.length;if(0===n)return"";for(var s=0;s=0&&"\\"===i[s];)n=!n;return n?"|":" |"}).split(/ \|/),n=0;if(i.length>e)i.splice(e);else for(;i.length1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t,e){var i=this.rules.block.code.exec(t);if(i){var n=e[e.length-1];if(n&&"paragraph"===n.type)return{raw:i[0],text:i[0].trimRight()};var s=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?s:k(s,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var i=e[0],n=function(t,e){var i=t.match(/^(\s+)(?:```)/);if(null===i)return e;var n=i[1];return e.split("\n").map(function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=n.length?t.slice(n.length):t}).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim():e[2],text:n}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var i=e[2].trim();if(/#$/.test(i)){var n=k(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i}}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var i={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(i.header.length===i.align.length){var n,s=i.align.length;for(n=0;n ?/gm,"");return{type:"blockquote",raw:e[0],text:i}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){var i,n,s,r,a,o,l,c,h=e[0],u=e[2],d=u.length>1,p={type:"list",raw:h,ordered:d,start:d?+u.slice(0,-1):"",loose:!1,items:[]},m=e[0].match(this.rules.block.item),f=!1,g=m.length;s=this.rules.block.listItemStart.exec(m[0]);for(var b=0;bs[1].length:r[1].length>s[0].length||r[1].length>3){m.splice(b,2,m[b]+"\n"+m[b+1]),b--,g--;continue}(!this.options.pedantic||this.options.smartLists?r[2][r[2].length-1]!==u[u.length-1]:d===(1===r[2].length))&&(a=m.slice(b+1).join("\n"),p.raw=p.raw.substring(0,p.raw.length-a.length),b=g-1),s=r}n=i.length,~(i=i.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(n-=i.length,i=i.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+n+"}","gm"),"")),o=f||/\n\n(?!\s*$)/.test(i),b!==g-1&&(f="\n"===i.charAt(i.length-1),o||(o=f)),o&&(p.loose=!0),this.options.gfm&&(c=void 0,(l=/^\[[ xX]\] /.test(i))&&(c=" "!==i[1],i=i.replace(/^\[[ xX]\] +/,""))),p.items.push({type:"list_item",raw:h,task:l,checked:c,loose:o,text:i})}return p}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):O(e[0]):e[0]}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var i={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];var n,s=i.align.length;for(n=0;n/i.test(n[0])&&(e=!1),!i&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?i=!0:i&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(i=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:e,inRawBlock:i,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):O(n[0]):n[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var i=e[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;var n=k(i.slice(0,-1),"\\");if((i.length-n.length)%2==0)return}else{var s=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var i=t.length,n=0,s=0;s-1){var r=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,r).trim(),e[3]=""}}var a=e[2],o="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);l&&(a=l[1],o=l[3])}else o=e[3]?e[3].slice(1,-1):"";return a=a.trim(),/^$/.test(i)?a.slice(1):a.slice(1,-1)),E(e,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:o?o.replace(this.rules.inline._escapes,"$1"):o},e[0])}},e.reflink=function(t,e){var i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=e[n.toLowerCase()])||!n.href){var s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return E(i,n,i[0])}},e.strong=function(t,e,i){void 0===i&&(i="");var n=this.rules.inline.strong.start.exec(t);if(n&&(!n[1]||n[1]&&(""===i||this.rules.inline.punctuation.exec(i)))){e=e.slice(-1*t.length);var s,r="**"===n[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(r.lastIndex=0;null!=(n=r.exec(e));)if(s=this.rules.inline.strong.middle.exec(e.slice(0,n.index+3)))return{type:"strong",raw:t.slice(0,s[0].length),text:t.slice(2,s[0].length-2)}}},e.em=function(t,e,i){void 0===i&&(i="");var n=this.rules.inline.em.start.exec(t);if(n&&(!n[1]||n[1]&&(""===i||this.rules.inline.punctuation.exec(i)))){e=e.slice(-1*t.length);var s,r="*"===n[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(r.lastIndex=0;null!=(n=r.exec(e));)if(s=this.rules.inline.em.middle.exec(e.slice(0,n.index+2)))return{type:"em",raw:t.slice(0,s[0].length),text:t.slice(1,s[0].length-1)}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var i=e[2].replace(/\n/g," "),n=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return n&&s&&(i=i.substring(1,i.length-1)),i=O(i,!0),{type:"codespan",raw:e[0],text:i}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2]}},e.autolink=function(t,e){var i,n,s=this.rules.inline.autolink.exec(t);if(s)return n="@"===s[2]?"mailto:"+(i=O(this.options.mangle?e(s[1]):s[1])):i=O(s[1]),{type:"link",raw:s[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},e.url=function(t,e){var i;if(i=this.rules.inline.url.exec(t)){var n,s;if("@"===i[2])s="mailto:"+(n=O(this.options.mangle?e(i[0]):i[0]));else{var r;do{r=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(r!==i[0]);n=O(i[0]),s="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}},e.inlineText=function(t,e,i){var n,s=this.rules.inline.text.exec(t);if(s)return n=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):O(s[0]):s[0]:O(this.options.smartypants?i(s[0]):s[0]),{type:"text",raw:s[0],text:n}},t}(),D={exec:function(){}},I=function(t,e){t=t.source||t,e=e||"";var i={replace:function(e,n){return n=(n=n.source||n).replace(d,"$1"),t=t.replace(e,n),i},getRegex:function(){return new RegExp(t,e)}};return i},T=x,R={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:D,table:D,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};R.def=I(R.def).replace("label",R._label).replace("title",R._title).getRegex(),R.bullet=/(?:[*+-]|\d{1,9}[.)])/,R.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,R.item=I(R.item,"gm").replace(/bull/g,R.bullet).getRegex(),R.listItemStart=I(/^( *)(bull)/).replace("bull",R.bullet).getRegex(),R.list=I(R.list).replace(/bull/g,R.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+R.def.source+")").getRegex(),R._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",R._comment=/|$)/,R.html=I(R.html,"i").replace("comment",R._comment).replace("tag",R._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),R.paragraph=I(R._paragraph).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",R._tag).getRegex(),R.blockquote=I(R.blockquote).replace("paragraph",R.paragraph).getRegex(),R.normal=T({},R),R.gfm=T({},R.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),R.gfm.nptable=I(R.gfm.nptable).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",R._tag).getRegex(),R.gfm.table=I(R.gfm.table).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",R._tag).getRegex(),R.pedantic=T({},R.normal,{html:I("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",R._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:D,paragraph:I(R.normal._paragraph).replace("hr",R.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",R.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var j={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:D,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:D,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};j.punctuation=I(j.punctuation).replace(/punctuation/g,j._punctuation).getRegex(),j._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",j._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",j._comment=I(R._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),j.em.start=I(j.em.start).replace(/punctuation/g,j._punctuation).getRegex(),j.em.middle=I(j.em.middle).replace(/punctuation/g,j._punctuation).replace(/overlapSkip/g,j._overlapSkip).getRegex(),j.em.endAst=I(j.em.endAst,"g").replace(/punctuation/g,j._punctuation).getRegex(),j.em.endUnd=I(j.em.endUnd,"g").replace(/punctuation/g,j._punctuation).getRegex(),j.strong.start=I(j.strong.start).replace(/punctuation/g,j._punctuation).getRegex(),j.strong.middle=I(j.strong.middle).replace(/punctuation/g,j._punctuation).replace(/overlapSkip/g,j._overlapSkip).getRegex(),j.strong.endAst=I(j.strong.endAst,"g").replace(/punctuation/g,j._punctuation).getRegex(),j.strong.endUnd=I(j.strong.endUnd,"g").replace(/punctuation/g,j._punctuation).getRegex(),j.blockSkip=I(j._blockSkip,"g").getRegex(),j.overlapSkip=I(j._overlapSkip,"g").getRegex(),j._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,j._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,j._email=/[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])?)+(?![-_])/,j.autolink=I(j.autolink).replace("scheme",j._scheme).replace("email",j._email).getRegex(),j._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,j.tag=I(j.tag).replace("comment",j._comment).replace("attribute",j._attribute).getRegex(),j._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,j._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,j._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,j.link=I(j.link).replace("label",j._label).replace("href",j._href).replace("title",j._title).getRegex(),j.reflink=I(j.reflink).replace("label",j._label).getRegex(),j.reflinkSearch=I(j.reflinkSearch,"g").replace("reflink",j.reflink).replace("nolink",j.nolink).getRegex(),j.normal=T({},j),j.pedantic=T({},j.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:I(/^!?\[(label)\]\((.*?)\)/).replace("label",j._label).getRegex(),reflink:I(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",j._label).getRegex()}),j.gfm=T({},j.normal,{escape:I(j.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\1;)1&e&&(i+=t),e>>=1,t+=t;return i+t};function V(t){return t.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function z(t){var e,i,n="",s=t.length;for(e=0;e.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}var B=function(){function e(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||N,this.options.tokenizer=this.options.tokenizer||new A,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:P.normal,inline:F.normal};this.options.pedantic?(e.block=P.pedantic,e.inline=F.pedantic):this.options.gfm&&(e.block=P.gfm,e.inline=this.options.breaks?F.breaks:F.gfm),this.tokenizer.rules=e}e.lex=function(t,i){return new e(i).lex(t)},e.lexInline=function(t,i){return new e(i).inlineTokens(t)};var i,n,s=e.prototype;return s.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},s.blockTokens=function(t,e,i){var n,s,r,a;for(void 0===e&&(e=[]),void 0===i&&(i=!0),this.options.pedantic&&(t=t.replace(/^ +$/gm,""));t;)if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),n.type&&e.push(n);else if(n=this.tokenizer.code(t,e))t=t.substring(n.raw.length),n.type?e.push(n):((a=e[e.length-1]).raw+="\n"+n.raw,a.text+="\n"+n.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.nptable(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),n.tokens=this.blockTokens(n.text,[],i),e.push(n);else if(n=this.tokenizer.list(t)){for(t=t.substring(n.raw.length),r=n.items.length,s=0;s0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,r.index)+"["+M("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,r.index)+"["+M("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;t;)if(a||(o=""),a=!1,s=this.tokenizer.escape(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.tag(t,i,n))t=t.substring(s.raw.length),i=s.inLink,n=s.inRawBlock,e.push(s);else if(s=this.tokenizer.link(t))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,n)),e.push(s);else if(s=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,n)),e.push(s);else if(s=this.tokenizer.strong(t,l,o))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.em(t,l,o))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.codespan(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.br(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.del(t))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.autolink(t,z))t=t.substring(s.raw.length),e.push(s);else if(i||!(s=this.tokenizer.url(t,z))){if(s=this.tokenizer.inlineText(t,n,V))t=t.substring(s.raw.length),o=s.raw.slice(-1),a=!0,e.push(s);else if(t){var h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else t=t.substring(s.raw.length),e.push(s);return e},i=e,n=[{key:"rules",get:function(){return{block:P,inline:F}}}],null&&t(i.prototype,null),n&&t(i,n),e}(),H=n.defaults,U=function(t,e,i){if(t){var n;try{n=decodeURIComponent(u(i)).replace(p,"").toLowerCase()}catch(s){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}e&&!m.test(i)&&(i=function(t,e){f[" "+t]||(f[" "+t]=g.test(t)?t+"/":y(t,"/",!0));var i=-1===(t=f[" "+t]).indexOf(":");return"//"===e.substring(0,2)?i?e:t.replace(b,"$1")+e:"/"===e.charAt(0)?i?e:t.replace(_,"$1")+e:t+e}(e,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(s){return null}return i},X=v,q=function(){function t(t){this.options=t||H}var e=t.prototype;return e.code=function(t,e,i){var n=(e||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(t,n);null!=s&&s!==t&&(i=!0,t=s)}return t=t.replace(/\n$/,"")+"\n",n?'
'+(i?t:X(t,!0))+"
\n":"
"+(i?t:X(t,!0))+"
\n"},e.blockquote=function(t){return"
\n"+t+"
\n"},e.html=function(t){return t},e.heading=function(t,e,i,n){return this.options.headerIds?"'+t+"\n":""+t+"\n"},e.hr=function(){return this.options.xhtml?"
\n":"
\n"},e.list=function(t,e,i){var n=e?"ol":"ul";return"<"+n+(e&&1!==i?' start="'+i+'"':"")+">\n"+t+"\n"},e.listitem=function(t){return"
  • "+t+"
  • \n"},e.checkbox=function(t){return" "},e.paragraph=function(t){return"

    "+t+"

    \n"},e.table=function(t,e){return e&&(e=""+e+""),"\n\n"+t+"\n"+e+"
    \n"},e.tablerow=function(t){return"\n"+t+"\n"},e.tablecell=function(t,e){var i=e.header?"th":"td";return(e.align?"<"+i+' align="'+e.align+'">':"<"+i+">")+t+"\n"},e.strong=function(t){return""+t+""},e.em=function(t){return""+t+""},e.codespan=function(t){return""+t+""},e.br=function(){return this.options.xhtml?"
    ":"
    "},e.del=function(t){return""+t+""},e.link=function(t,e,i){if(null===(t=U(this.options.sanitize,this.options.baseUrl,t)))return i;var n='"+i+""},e.image=function(t,e,i){if(null===(t=U(this.options.sanitize,this.options.baseUrl,t)))return i;var n=''+i+'":">")},e.text=function(t){return t},t}(),$=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,i){return""+i},e.image=function(t,e,i){return""+i},e.br=function(){return""},t}(),W=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var i=t,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[t];do{i=t+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return e||(this.seen[t]=n,this.seen[i]=0),i},e.slug=function(t,e){void 0===e&&(e={});var i=this.serialize(t);return this.getNextSafeSlug(i,e.dryrun)},t}(),K=n.defaults,G=w,Y=function(){function t(t){this.options=t||K,this.options.renderer=this.options.renderer||new q,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $,this.slugger=new W}t.parse=function(e,i){return new t(i).parse(e)},t.parseInline=function(e,i){return new t(i).parseInline(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var i,n,s,r,a,o,l,c,h,u,d,p,m,f,g,b,_,y,v="",w=t.length;for(i=0;i0&&"text"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,m),h+=this.renderer.listitem(f,_,b);v+=this.renderer.list(h,d,p);continue;case"html":v+=this.renderer.html(u.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(h=u.tokens?this.parseInline(u.tokens):u.text;i+1An error occurred:

    "+J(l.message+"",!0)+"
    ";throw l}}return nt.options=nt.setOptions=function(t){return Q(nt.defaults,t),et(nt.defaults),nt},nt.getDefaults=tt,nt.defaults=it,nt.use=function(t){var e=Q({},t);if(t.renderer&&function(){var i=nt.defaults.renderer||new q,n=function(e){var n=i[e];i[e]=function(){for(var s=arguments.length,r=new Array(s),a=0;aAn error occurred:

    "+J(n.message+"",!0)+"
    ";throw n}},nt.Parser=Y,nt.parser=Y.parse,nt.Renderer=q,nt.TextRenderer=$,nt.Lexer=B,nt.lexer=B.lex,nt.Tokenizer=A,nt.Slugger=W,nt.parse=nt,nt}()},PqYM:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("HDdC"),s=i("D0XW"),r=i("Y7HM"),a=i("z+Ro");function o(t=0,e,i){let o=-1;return Object(r.a)(e)?o=Number(e)<1?1:Number(e):Object(a.a)(e)&&(i=e),Object(a.a)(i)||(i=s.a),new n.a(e=>{const n=Object(r.a)(t)?t:+t-i.now();return i.schedule(l,n,{index:0,period:o,subscriber:e})})}function l(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},QPBi:function(t,e,i){"use strict";i.d(e,"e",function(){return G}),i.d(e,"d",function(){return tt}),i.d(e,"c",function(){return it}),i.d(e,"b",function(){return C}),i.d(e,"a",function(){return j}),i.d(e,"f",function(){return N});var n=i("EUkQ"),s=i.n(n),r=i("IzEk"),a=i("lJxs"),o=i("7o/Q");class l{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new c(t,this.count,this.source))}}class c extends o.a{constructor(t,e,i){super(t),this.count=e,this.source=i}error(t){if(!this.isStopped){const{source:e,count:i}=this;if(0===i)return super.error(t);i>-1&&(this.count=i-1),e.subscribe(this._unsubscribeAndRecycle())}}}var h=i("vkgz"),u=i("JIr8"),d=i("UXun"),p=i("eIep"),m=i("fXoL"),f=i("LRne"),g=i("Cfvw"),b=i("XNiG"),_=i("2Vo4"),y=i("cp0P"),v=i("itXk"),w=i("EY2u");class x{constructor(t){this.translations=t}getTranslation(t){return Object(f.a)(this.translations.get(t)||{})}}const C=new m.s("TRANSLOCO_LOADER");function k(t,e){return t&&t.hasOwnProperty(e)?t[e]:e.split(".").reduce((t,e)=>t&&t[e],t)}function S(t){return t?Array.isArray(t)?t.length:E(t)?Object.keys(t).length:t?t.length:0:0}function O(t){return"string"==typeof t}function E(t){return t&&"object"==typeof t&&!Array.isArray(t)}function A(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,e)=>0==e?t.toLowerCase():t.toUpperCase()).replace(/\s+|_|-|\//g,"")}function D(t){return null==t}function I(t){return!1===D(t)}function T(t){return t&&"string"==typeof t.scope}function R(t){return s()(t,{safe:!0})}const j=new m.s("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>({})}),L={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function N(t=L){return Object.assign({},L,t)}const P=new m.s("TRANSLOCO_TRANSPILER"),F=new m.s("TRANSLOCO_MISSING_HANDLER");let M=(()=>{class t{handle(t,e){return e.missingHandler.logMissingKey&&!e.prodMode&&console.warn(`%c Missing translation for '${t}'`,"font-size: 12px; color: red"),t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m.Jb({token:t,factory:t.\u0275fac}),t})();const V=new m.s("TRANSLOCO_INTERCEPTOR");let z=(()=>{class t{preSaveTranslation(t,e){return t}preSaveTranslationKey(t,e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m.Jb({token:t,factory:t.\u0275fac}),t})();const B=new m.s("TRANSLOCO_FALLBACK_STRATEGY");function H(t){if(!t)return"";const e=t.split("/");return e.pop(),e.join("/")}function U(t){return t?t.split("/").pop():""}function X(t,e,i="|"){if(O(t)){const n=t.split(i),s=n.pop();return s===e?[!0,n.toString()]:[!1,s]}return[!1,""]}function q(t,e){return(i=t)&&E(i.loader)?function(t,e){return Object.keys(t).reduce((i,n)=>(i[`${e}/${n}`]=t[n],i),{})}(t.loader,e):null;var i}function $(t){return{scope:H(t)||null,langName:U(t),lang:t}}function W(t,e,i,n){if(i){if(0==("function"==typeof i[t]))throw"You're using an inline loader but didn't provide a loader for "+t;return i[t]().then(t=>t.default?t.default:t)}return e.getTranslation(t,n)}let K,G=(()=>{class t{constructor(t,e,i,n,s,r){this.loader=t,this.parser=e,this.missingHandler=i,this.interceptor=n,this.userConfig=s,this.fallbackStrategy=r,this.translations=new Map,this.cache=new Map,this.firstFallbackLang=null,this.availableLangs=[],this.isResolvedMissingOnce=!1,this.events=new b.a,this.events$=this.events.asObservable(),this.failedCounter=0,this.failedLangs=new Set,this.loader||(this.loader=new x(this.translations)),K=this,this.mergedConfig=function(t,e){return Object.assign({},t,e,{missingHandler:Object.assign({},t.missingHandler,e.missingHandler),flatten:Object.assign({},t.flatten,e.flatten)})}(L,s),this.setAvailableLangs(this.mergedConfig.availableLangs),this.setFallbackLangForMissingTranslation(this.mergedConfig),this.setDefaultLang(this.mergedConfig.defaultLang),this.lang=new _.a(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(t=>{if("translationLoadSuccess"===t.type&&t.wasFailure){const e=U(t.payload.lang);this.setActiveLang(e)}})}get config(){return this.mergedConfig}getDefaultLang(){return this.defaultLang}setDefaultLang(t){this.defaultLang=t}getActiveLang(){return this.lang.getValue()}setActiveLang(t){return this.lang.next(t),this.parser.onLangChanged&&this.parser.onLangChanged(t),this}setAvailableLangs(t){this.availableLangs=t}getAvailableLangs(){return this.availableLangs}load(t,e={}){if(!1===this.cache.has(t)){let r;const o=this._isLangScoped(t),c=o?H(t):null;if(this.useFallbackTranslation(t)){const l=(i=this.loader,n=e.inlineLoader,s={scope:c},[t,o?`${c}/${this.firstFallbackLang}`:this.firstFallbackLang].map(t=>{const e=W(t,i,n,s);return Object(g.a)(e).pipe(Object(a.a)(e=>({translation:e,lang:t})))}));r=Object(y.a)(l)}else{const i=W(t,this.loader,e.inlineLoader,{scope:c});r=Object(g.a)(i)}const p=r.pipe(function(t=-1){return e=>e.lift(new l(t,e))}(this.config.failedRetries),Object(h.a)(e=>{Array.isArray(e)?e.forEach(e=>{this.handleSuccess(e.lang,e.translation),e.lang!==t&&this.cache.set(e.lang,Object(f.a)({}))}):this.handleSuccess(t,e)}),Object(u.a)(()=>this.handleFailure(t,e)),Object(d.a)(1));this.cache.set(t,p)}var i,n,s;return this.cache.get(t)}translate(t,e={},i=this.getActiveLang()){if(!t)return t;const{scope:n,resolveLang:s}=this.resolveLangAndScope(i);if(Array.isArray(t))return t.map(t=>this.translate(n?`${n}.${t}`:t,e,s));t=n?`${n}.${t}`:t;const r=this.getTranslation(s),a=r[t];return a?this.parser.transpile(a,e,r):this._handleMissingKey(t,a,e)}selectTranslate(t,e,i,n=!1){let s=null;const r=(i,s)=>this.load(i,s).pipe(Object(a.a)(()=>n?this.translateObject(t,e,i):this.translate(t,e,i)));if(D(i))return this.langChanges$.pipe(Object(p.a)(t=>r(t)));if(T(i)){const t=i;i=t.scope,s=q(t,t.scope)}if(this.isLang(i=i)||this.isScopeWithLang(i))return r(i);const o=i;return this.langChanges$.pipe(Object(p.a)(t=>r(`${o}/${t}`,{inlineLoader:s})))}isScopeWithLang(t){return this.isLang(U(t))}translateObject(t,e,i=this.getActiveLang()){if(O(t)||Array.isArray(t)){if(Array.isArray(t))return t.map(t=>this.translateObject(a?`${a}.${t}`:t,e,r));const{resolveLang:r,scope:a}=this.resolveLangAndScope(i),o=this.getTranslation(r),l=(n=this.getObjectByKey(o,t=a?`${a}.${t}`:t),s.a.unflatten(n,{safe:!0}));return 0===S(l)?this.translate(t,e,i):this.parser.transpile(l,e,o)}var n;const r=[];for(const[s,a]of this.getEntries(t))r.push(this.translateObject(s,a,i));return r}selectTranslateObject(t,e,i){if(O(t)||Array.isArray(t))return this.selectTranslate(t,e,i,!0);const[[n,s],...r]=this.getEntries(t);return this.selectTranslateObject(n,s,i).pipe(Object(a.a)(t=>{const e=[t];for(const[n,s]of r)e.push(this.translateObject(n,s,i));return e}))}getTranslation(t){if(t){if(this.isLang(t))return this.translations.get(t)||{};{const{scope:e,resolveLang:i}=this.resolveLangAndScope(t),n=this.translations.get(i)||{};return this.getObjectByKey(n,e)}}return this.translations}selectTranslation(t){let e=this.langChanges$;if(t){const i=U(t)!==t;e=this.isLang(t)||i?Object(f.a)(t):this.langChanges$.pipe(Object(a.a)(e=>`${t}/${e}`))}return e.pipe(Object(p.a)(t=>this.load(t).pipe(Object(a.a)(()=>this.getTranslation(t)))))}setTranslation(t,e=this.getActiveLang(),i={}){const n=Object.assign({},{merge:!0,emitChange:!0},i),s=H(e);let r=t;s&&(r=R({[this.getMappedScope(s)]:t}));const a=s?U(e):e,o=Object.assign({},n.merge&&this.getTranslation(a),r),l=this.mergedConfig.flatten.aot?o:R(o),c=this.interceptor.preSaveTranslation(l,a);this.translations.set(a,c),n.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(t,e,i=this.getActiveLang()){const n=this.interceptor.preSaveTranslationKey(t,e,i),s=Object.assign({},this.getTranslation(i),{[t]:n});this.setTranslation(s,i)}setFallbackLangForMissingTranslation({fallbackLang:t}){const e=Array.isArray(t)?t[0]:t;this.useFallbackTranslation(e)&&t&&(this.firstFallbackLang=e)}_handleMissingKey(t,e,i){if(this.config.missingHandler.allowEmpty&&""===e)return"";if(this.useFallbackTranslation()&&!this.isResolvedMissingOnce){this.isResolvedMissingOnce=!0;const e=this.translate(t,i,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,e}return this.missingHandler.handle(t,this.getMissingHandlerData(),i)}_isLangScoped(t){return-1===this.getAvailableLangsIds().indexOf(t)}isLang(t){return-1!==this.getAvailableLangsIds().indexOf(t)}_loadDependencies(t,e){const i=U(t);return this._isLangScoped(t)&&!this.isLoadedTranslation(i)?Object(v.b)(this.load(i),this.load(t,{inlineLoader:e})):this.load(t,{inlineLoader:e})}_completeScopeWithLang(t){return this._isLangScoped(t)&&!this.isLang(U(t))?`${t}/${this.getActiveLang()}`:t}_setScopeAlias(t,e){this.mergedConfig.scopeMapping||(this.mergedConfig.scopeMapping={}),this.mergedConfig.scopeMapping[t]=e}ngOnDestroy(){this.subscription.unsubscribe()}isLoadedTranslation(t){return S(this.getTranslation(t))}getAvailableLangsIds(){return O(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(t=>t.id)}getMissingHandlerData(){return Object.assign({},this.config,{activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang})}useFallbackTranslation(t){return this.config.missingHandler.useFallbackTranslation&&t!==this.firstFallbackLang}handleSuccess(t,e){this.setTranslation(e,t,{emitChange:!1}),this.failedCounter=0,this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:$(t)}),this.failedLangs.forEach(t=>this.cache.delete(t)),this.failedLangs.clear()}handleFailure(t,e){const i=t.split("/"),n=(e.fallbackLangs||this.fallbackStrategy.getNextLangs(t))[this.failedCounter];if(this.failedLangs.add(t),this.cache.has(n))return this.handleSuccess(n,this.getTranslation(n)),w.a;if(!n||n===i[i.length-1]){let t="Unable to load translation and all the fallback languages";throw i.length>1&&(t+=", did you misspelled the scope name?"),new Error(t)}let s=n;return i.length>1&&(i[i.length-1]=n,s=i.join("/")),this.failedCounter++,this.events.next({type:"translationLoadFailure",payload:$(t)}),this.load(s)}getMappedScope(t){const{scopeMapping:e={}}=this.config;return e[t]||A(t)}resolveLangAndScope(t){let e,i=t;if(this._isLangScoped(t)){const n=U(t),s=this.isLang(n);i=s?n:this.getActiveLang(),e=this.getMappedScope(s?H(t):t)}return{scope:e,resolveLang:i}}getObjectByKey(t,e){const i={},n=e+".";for(const s in t)s.startsWith(n)&&(i[s.replace(n,"")]=t[s]);return i}getEntries(t){return t instanceof Map?t.entries():Object.entries(t)}}return t.\u0275fac=function(e){return new(e||t)(m.Xb(C,8),m.Xb(P),m.Xb(F),m.Xb(V),m.Xb(j),m.Xb(B))},t.\u0275prov=m.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(m.U)({factory:function(){return new t(Object(m.X)(C,8),Object(m.X)(P),Object(m.X)(F),Object(m.X)(V),Object(m.X)(j),Object(m.X)(B))},token:t,providedIn:"root"}),t})();const Y=new m.s("TRANSLOCO_LANG"),Q=(new m.s("TRANSLOCO_LOADING_TEMPLATE"),new m.s("TRANSLOCO_SCOPE"));class Z{constructor(){this.initialized=!1}resolve({inline:t,provider:e,active:i}={inline:void 0,provider:void 0,active:void 0}){let n=i;if(this.initialized)return n=i,n;if(e){const[t,i]=X(e,"static");n=i}if(t){const[e,i]=X(t,"static");n=i}return this.initialized=!0,n}resolveLangBasedOnScope(t){return H(t)?U(t):t}resolveLangPath(t,e){return e?`${e}/${t}`:t}}class J{constructor(t){this.translocoService=t}resolve({inline:t,provider:e}={inline:void 0,provider:void 0}){if(t)return t;if(e){if(T(e)){const{scope:t,alias:i=A(t)}=e;return this.translocoService._setScopeAlias(t,i),t}return e}}}let tt=(()=>{class t{constructor(t,e,i,n){this.translocoService=t,this.providerScope=e,this.providerLang=i,this.cdr=n,this.subscription=null,this.lastValue="",this.langResolver=new Z,this.scopeResolver=new J(this.translocoService),this.listenToLangChange=function(t,e){const[i]=X(e,"static");return!1===i&&t.config.reRenderOnLangChange}(this.translocoService,this.providerLang)}transform(t,e,i){if(!t)return t;const n=e?`${t}${JSON.stringify(e)}`:t;return n===this.lastKey||(this.lastKey=n,this.subscription&&this.subscription.unsubscribe(),this.subscription=this.translocoService.langChanges$.pipe(Object(p.a)(t=>{const e=this.langResolver.resolve({inline:i,provider:this.providerLang,active:t});return Array.isArray(this.providerScope)?Object(y.a)(this.providerScope.map(t=>this.resolveScope(e,t))):this.resolveScope(e,this.providerScope)}),(s=this.listenToLangChange,s?t=>t:Object(r.a)(1))).subscribe(()=>this.updateValue(t,e))),this.lastValue;var s}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateValue(t,e){const i=this.langResolver.resolveLangBasedOnScope(this.path);this.lastValue=this.translocoService.translate(t,e,i),this.cdr.markForCheck()}resolveScope(t,e){let i=this.scopeResolver.resolve({inline:void 0,provider:e});this.path=this.langResolver.resolveLangPath(t,i);const n=q(e,i);return this.translocoService._loadDependencies(this.path,n)}}return t.\u0275fac=function(e){return new(e||t)(m.Nb(G),m.Nb(Q,8),m.Nb(Y,8),m.Zb())},t.\u0275pipe=m.Mb({name:"transloco",type:t,pure:!1}),t})();const et=[{provide:P,useClass:class{constructor(t){this.interpolationMatcher=function(t){const[e,i]=t&&t.interpolation?t.interpolation:L.interpolation;return new RegExp(`${e}(.*?)${i}`,"g")}(t)}transpile(t,e={},i){return O(t)?t.replace(this.interpolationMatcher,(t,n)=>(n=n.trim(),I(e[n])?e[n]:I(i[n])?this.transpile(i[n],e,i):"")):(e&&(E(t)?t=this.handleObject(t,e,i):Array.isArray(t)&&(t=this.handleArray(t,e,i))),t)}handleObject(t,e={},i){let n=t;return Object.keys(e).forEach(t=>{const s=k(n,t),r=k(e,t),a=this.transpile(s,r,i);n=function(t,e,i){t=Object.assign({},t);const n=e.split("."),s=n.length-1;return n.reduce((t,e,n)=>(t[e]=n===s?i:Array.isArray(t[e])?t[e].slice():Object.assign({},t[e]),t&&t[e]),t),t}(n,t,a)}),n}handleArray(t,e={},i){return t.map(t=>this.transpile(t,e,i))}},deps:[j]},{provide:F,useClass:M},{provide:V,useClass:z},{provide:B,useClass:class{constructor(t){this.userConfig=t}getNextLangs(t){const e=this.userConfig.fallbackLang;if(!e)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(e)?e:[e]}},deps:[j]}];let it=(()=>{class t{}return t.\u0275mod=m.Lb({type:t}),t.\u0275inj=m.Kb({factory:function(e){return new(e||t)},providers:[et]}),t})();new m.s("TRANSLOCO_TEST_LANGS - Available testing languages"),new m.s("TRANSLOCO_TEST_OPTIONS - Testing options")},Qu3c:function(t,e,i){"use strict";i.d(e,"a",function(){return k}),i.d(e,"b",function(){return O});var n=i("rDax"),s=i("u47x"),r=i("ofXK"),a=i("fXoL"),o=i("FKr1"),l=i("vxfF"),c=i("8LU1"),h=i("FtGj"),u=i("0MNC"),d=i("nLfN"),p=i("+rOU"),m=i("XNiG"),f=i("1G5W"),g=i("IzEk"),b=i("R0Ic"),_=i("cH1L");const y={tooltipState:Object(b.m)("state",[Object(b.j)("initial, void, hidden",Object(b.k)({opacity:0,transform:"scale(0)"})),Object(b.j)("visible",Object(b.k)({transform:"scale(1)"})),Object(b.l)("* => visible",Object(b.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(b.g)([Object(b.k)({opacity:0,transform:"scale(0)",offset:0}),Object(b.k)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(b.k)({opacity:1,transform:"scale(1)",offset:1})]))),Object(b.l)("* => hidden",Object(b.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(b.k)({opacity:0})))])},v=Object(d.f)({passive:!0}),w=new a.s("mat-tooltip-scroll-strategy"),x={provide:w,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},C=new a.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let k=(()=>{class t{constructor(t,e,i,n,s,r,a,o,l,c,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=r,this._ariaDescriber=a,this._focusMonitor=o,this._dir=c,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 m.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=l,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(c.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?String(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(f.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,i])=>{t.removeEventListener(e,i,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(S,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(f.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(f.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(f.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(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object(g.a)(1),Object(f.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,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(n.c),a.Nb(a.l),a.Nb(l.c),a.Nb(a.R),a.Nb(a.B),a.Nb(d.a),a.Nb(s.c),a.Nb(s.h),a.Nb(w),a.Nb(_.b,8),a.Nb(C,8))},t.\u0275dir=a.Ib({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})(),S=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new m.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)(a.Nb(a.h),a.Nb(u.a))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&a.bc("click",function(){return e._handleBodyInteraction()},!1,a.tc),2&t&&a.Ac("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(a.Tb(0,"div",0),a.bc("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),a.gc(1,"async"),a.Ec(2),a.Sb()),2&t){let t=null;a.Fb("mat-tooltip-handset",null==(t=a.hc(1,5,e._isHandset))?null:t.matches),a.lc("ngClass",e.tooltipClass)("@state",e._visibility),a.Cb(2),a.Fc(e.message)}},directives:[r.k],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})(),O=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},providers:[x],imports:[[s.a,r.c,n.f,o.i],o.i,l.b]}),t})()},R0Ic:function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return g}),i.d(e,"e",function(){return o}),i.d(e,"f",function(){return p}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return m}),i.d(e,"i",function(){return l}),i.d(e,"j",function(){return h}),i.d(e,"k",function(){return c}),i.d(e,"l",function(){return d}),i.d(e,"m",function(){return a}),i.d(e,"n",function(){return b}),i.d(e,"o",function(){return _});class n{}class s{}const r="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function o(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function u(t){return{type:5,steps:t}}function d(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function p(t=null){return{type:9,options:t}}function m(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function f(t){Promise.resolve(null).then(t)}class g{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class b{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,i=0,n=0;const s=this.players.length;0==s?f(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==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 i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const _="!"},R1ws:function(t,e,i){"use strict";i.d(e,"a",function(){return Te}),i.d(e,"b",function(){return je});var n=i("fXoL"),s=i("jhN1"),r=i("R0Ic");function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function o(t){switch(t.length){case 0:return new r.d;case 1:return t[0];default:return new r.n(t)}}function l(t,e,i,n,s={},a={}){const o=[],l=[];let c=-1,h=null;if(n.forEach(t=>{const i=t.offset,n=i==c,u=n&&h||{};Object.keys(t).forEach(i=>{let n=i,l=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),l){case r.o:l=s[i];break;case r.a:l=a[i];break;default:l=e.normalizeStyleValue(i,n,l,o)}u[n]=l}),n||l.push(u),h=u,c=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return l}function c(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&h(i,"start",t)));break;case"done":t.onDone(()=>n(i&&h(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&h(i,"destroy",t)))}}function h(t,e,i){const n=i.totalTime,s=u(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(s._data=r),s}function u(t,e,i,n,s="",r=0,a){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:r,disabled:!!a}}function d(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,f=(t,e)=>!1,g=(t,e,i)=>[];const b=a();(b||"undefined"!=typeof Element)&&(m=(t,e)=>t.contains(e),f=(()=>{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,i)=>e.apply(t,[i]):f}})(),g=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let S=(()=>{class t{validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,a=[],o){return new r.d(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),O=(()=>{class t{}return t.NOOP=new S,t})();const E="ng-enter",A="ng-leave",D="ng-trigger",I=".ng-trigger",T="ng-animating",R=".ng-animating";function j(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:L(parseFloat(e[1]),e[2])}function L(t,e){switch(e){case"s":return 1e3*t;default:return t}}function N(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,r="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=L(parseFloat(i[1]),i[2]);const a=i[3];null!=a&&(s=L(parseFloat(a),i[4]));const o=i[5];o&&(r=o)}else n=t;if(!i){let i=!1,r=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:r}}(t,e,i)}function P(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function F(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else P(t,i);return i}function M(t,e,i){return i?e+":"+i+";":""}function V(t){let e="";for(let i=0;i{const s=K(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),a()&&V(t))}function B(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=K(e);t.style[i]=""}),a()&&V(t))}function H(t){return Array.isArray(t)?1==t.length?t[0]:Object(r.i)(t):t}const U=new RegExp("{{\\s*(.+?)\\s*}}","g");function X(t){let e=[];if("string"==typeof t){let i;for(;i=U.exec(t);)e.push(i[1]);U.lastIndex=0}return e}function q(t,e,i){const n=t.toString(),s=n.replace(U,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push("Please provide a value for the animation param "+n),s=""),s.toString()});return s==n?t:s}function $(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const W=/-+([a-z0-9])/g;function K(t){return t.replace(W,(...t)=>t[1].toUpperCase())}function G(t,e){return 0===t||0===e}function Y(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let r=e[0],a=[];if(n.forEach(t=>{r.hasOwnProperty(t)||a.push(t),r[t]=i[t]}),a.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=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,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],r=n[2],a=n[3];e.push(nt(s,a)),"<"!=r[0]||s==J&&a==J||e.push(nt(a,s))}(t,i,e)):i.push(t),i}const et=new Set(["true","1"]),it=new Set(["false","0"]);function nt(t,e){const i=et.has(t)||it.has(t),n=et.has(e)||it.has(e);return(s,r)=>{let a=t==J||t==s,o=e==J||e==r;return!a&&i&&"boolean"==typeof s&&(a=s?et.has(t):it.has(t)),!o&&n&&"boolean"==typeof r&&(o=r?et.has(e):it.has(e)),a&&o}}const st=new RegExp("s*:selfs*,?","g");function rt(t,e,i){return new at(t).build(e,i)}class at{constructor(t){this._driver=t}build(t,e){const i=new ot(e);return this._resetContextStyleTimingState(i),Q(this,H(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=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 i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=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:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,r=n||{};if(i.styles.forEach(t=>{if(lt(t)){const e=t;Object.keys(e).forEach(t=>{X(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=$(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Q(this,H(t.animation),e);return{type:1,matchers:tt(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ct(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Q(this,t,e)),options:ct(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=Q(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:ct(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return ht(N(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||N(n,e),ht(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:Object(r.k)({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,a=!1;if(!s){a=!0;const t={};i.easing&&(t.easing=i.easing),s=Object(r.k)(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=a,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.a?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(lt(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],a=r[i];let o=!0;a&&(s!=n&&s>=a.startTime&&n<=a.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${a.startTime}ms" and "${a.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),o=!1),s=a.startTime),o&&(r[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=X(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let r=!1,a=!1,o=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(lt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(lt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),c=0;return null!=l&&(n++,c=i.offset=l),a=a||c<0||c>1,r=r||c0&&n{const r=h>0?n==u?1:h*n:s[n],a=r*m;e.currentTime=d+p.delay+a,p.duration=a,this._validateStyleAst(t,e),t.offset=r,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:Q(this,H(t.animation),e),options:ct(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ct(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ct(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=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(st,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,R),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,d(e.collectedStyles,e.currentQuerySelector,{});const a=Q(this,H(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:a,originalSelector:t.selector,options:ct(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:N(t.timings,e.errors,!0);return{type:12,animation:Q(this,H(t.animation),e),timings:i,options:null}}}class ot{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 lt(t){return!Array.isArray(t)&&"object"==typeof t}function ct(t){var e;return t?(t=P(t)).params&&(t.params=(e=t.params)?P(e):null):t={},t}function ht(t,e,i){return{duration:t,delay:e,easing:i}}function ut(t,e,i,n,s,r,a=null,o=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:a,subTimeline:o}}class dt{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 i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const pt=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function ft(t,e,i,n,s,r={},a={},o,l,c=[]){return(new gt).buildKeyframes(t,e,i,n,s,r,a,o,l,c)}class gt{buildKeyframes(t,e,i,n,s,r,a,o,l,c=[]){l=l||new dt;const h=new _t(t,e,l,n,s,c,[]);h.options=o,h.currentTimeline.setStyles([r],null,h.errors,o),Q(this,i,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(a).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([a],null,h.errors,o)}return u.length?u.map(t=>t.buildKeyframes()):[ut(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?j(i.duration):null,r=null!=i.delay?j(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,r);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Q(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=bt);const t=j(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Q(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?j(t.options.delay):0;t.steps.forEach(r=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),Q(this,r,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return N(e.params?q(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,r=e.createSubContext().currentTimeline;r.easing=i.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(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?j(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);let r=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=a.length;let o=null;a.forEach((i,n)=>{e.currentQueryIndex=n;const a=e.createSubContext(t.options,i);s&&a.delayNextStep(s),i===e.element&&(o=a.currentTimeline),Q(this,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),a=r*(e.currentQueryTotal-1);let o=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":o=a-o;break;case"full":o=i.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);const c=l.currentTime;Q(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const bt={};class _t{constructor(t,e,i,n,s,r,a,o){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new yt(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=j(i.duration)),null!=i.delay&&(n.delay=j(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=q(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new _t(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||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=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new vt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,r){let a=[];if(n&&a.push(this.element),t.length>0){t=(t=t.replace(pt,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),a.push(...e)}return s||0!=a.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class yt{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,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 yt(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,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},a=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=r.a})):F(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(t=>{const e=q(a[t],s,i);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 i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,a)=>{const o=F(s,!0);Object.keys(o).forEach(i=>{const n=o[i];n==r.o?t.add(i):n==r.a&&e.add(i)}),i||(o.offset=a/this.duration),n.push(o)});const s=t.size?$(t.values()):[],a=e.size?$(e.values()):[];if(i){const t=n[0],e=P(t);t.offset=0,e.offset=1,n=[t,e]}return ut(this.element,n,s,a,this.duration,this.startTime,this.easing,!1)}}class vt extends yt{constructor(t,e,i,n,s,r,a=!1){super(t,e,r.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=a,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:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=i+e,a=e/r,o=F(t[0],!1);o.offset=0,s.push(o);const l=F(t[0],!1);l.offset=wt(a),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let a=F(t[n],!1);a.offset=wt((e+a.offset*i)/r),s.push(a)}i=r,e=0,n="",t=s}return ut(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function wt(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class xt{}class Ct extends xt{normalizePropertyName(t,e){return K(t)}normalizeStyleValue(t,e,i,n){let s="";const r=i.toString().trim();if(kt[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return r+s}}const kt=(()=>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 St(t,e,i,n,s,r,a,o,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const Ot={};class Et{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],r=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):r}build(t,e,i,n,s,r,a,o,l,c){const h=[],u=this.ast.options&&this.ast.options.params||Ot,p=this.buildStyles(i,a&&a.params||Ot,h),m=o&&o.params||Ot,f=this.buildStyles(n,m,h),g=new Set,b=new Map,_=new Map,y="void"===n,v={params:Object.assign(Object.assign({},u),m)},w=c?[]:ft(t,e,this.ast.animation,s,r,p,f,v,l,h);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),h.length)return St(e,this._triggerName,i,n,y,p,f,[],[],b,_,x,h);w.forEach(t=>{const i=t.element,n=d(b,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=d(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const C=$(g.values());return St(e,this._triggerName,i,n,y,p,f,w,C,b,_,x)}}class At{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=P(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),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=q(r,n,e)),i[t]=r})}}),i}}class Dt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new At(t.style,t.options&&t.options.params||{})}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Et(t,e,this.states))}),this.fallbackTransition=new Et(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,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function It(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Tt=new dt;class Rt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=rt(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: "+i.join("\n"));this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=l(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let a;const l=new Map;if(s?(a=ft(this._driver,e,s,E,A,{},{},i,Tt,n),a.forEach(t=>{const e=d(l,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),a=[]),n.length)throw new Error("Unable to create the animation due to the following errors: "+n.join("\n"));l.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,r.a)})});const c=o(a.map(t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,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,i,n){const s=u(e,"","","");return c(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){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(n[0]));break;case"destroy":this.destroy(t)}}}const jt="ng-animate-queued",Lt="ng-animate-disabled",Nt=".ng-animate-disabled",Pt=[],Ft={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Mt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Vt{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=P(t);delete e.value,this.options=e}else this.options={};var n;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(i=>{null==t[i]&&(t[i]=e[i])})}}}const zt="void",Bt=new Vt(zt);class Ht{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Gt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const r=d(this._elementListeners,t,[]),a={name:e,phase:i,callback:n};r.push(a);const o=d(this._engine.statesByElement,t,{});return o.hasOwnProperty(e)||(Gt(t,D),Gt(t,"ng-trigger-"+e),o[e]=Bt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(a);t>=0&&r.splice(t,1),this._triggers[e]||delete o[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,i,n=!0){const s=this._getTrigger(e),r=new Xt(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Gt(t,D),Gt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));let o=a[e];const l=new Vt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&o&&l.absorbOptions(o.options),a[e]=l,o||(o=Bt),l.value!==zt&&o.value===l.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{B(t,i),z(t,n)})}return}const c=d(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(o.value,l.value,t,l.params),u=!1;if(!h){if(!n)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:o,toState:l,player:r,isFallbackTransition:u}),u||(Gt(t,jt),r.onStart(()=>{Yt(t,jt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(r);t>=0&&i.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,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 i=this._engine.driver.query(t,I,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,zt,n);i&&r.push(i)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&o(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const n=e.name;if(i.has(n))return;i.add(n);const s=this._triggers[n].fallbackTransition,r=this._engine.statesByElement.get(t)[n]||Bt,a=new Vt(zt),o=new Xt(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:r,toState:a,player:o,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Ft||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Gt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==i.triggerName){const n=u(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,c(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n: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 Ut{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(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 i=new Ht(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Gt(t,Lt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Yt(t,Lt))}removeNode(t,e,i,n){if(qt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return qt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,R,!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 o(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Ft,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Nt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Nt,!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 i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?o(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 i=new dt,n=[],s=new Map,a=[],l=new Map,c=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 i=0;i{const i=E+b++;g.set(e,i),t.forEach(t=>Gt(t,i))});const _=[],y=new Set,v=new Set;for(let r=0;ry.add(t)):v.add(t))}const w=new Map,x=Kt(m,Array.from(y));x.forEach((t,e)=>{const i=A+b++;w.set(e,i),t.forEach(t=>Gt(t,i))}),t.push(()=>{f.forEach((t,e)=>{const i=g.get(e);t.forEach(t=>Yt(t,i))}),x.forEach((t,e)=>{const i=w.get(e);t.forEach(t=>Yt(t,i))}),_.forEach(t=>{this.processLeaveNode(t)})});const C=[],k=[];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(C.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),o=w.get(s),u=g.get(s),m=this._buildInstruction(t,i,u,o,r);if(m.errors&&m.errors.length)k.push(m);else{if(r)return e.onStart(()=>B(s,m.fromStyles)),e.onDestroy(()=>z(s,m.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>B(s,m.fromStyles)),e.onDestroy(()=>z(s,m.toStyles)),void n.push(e);m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,m.timelines),a.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>d(l,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=c.get(e);t||c.set(e,t=new Set),i.forEach(e=>t.add(e))}}),m.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=h.get(e);n||h.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(k.length){const t=[];k.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,O=new Map;a.forEach(t=>{const e=t.element;i.has(e)&&(O.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(S,e,[]).push(t),t.destroy()})});const D=_.filter(t=>Jt(t,c,h)),I=new Map;Wt(I,this.driver,v,h,r.a).forEach(t=>{Jt(t,c,h)&&D.push(t)});const T=new Map;f.forEach((t,e)=>{Wt(T,this.driver,new Set(t),c,r.o)}),D.forEach(t=>{const e=I.get(t),i=T.get(t);I.set(t,Object.assign(Object.assign({},e),i))});const j=[],L=[],N={};a.forEach(t=>{const{element:e,player:r,instruction:a}=t;if(i.has(e)){if(u.has(e))return r.onDestroy(()=>z(e,a.toStyles)),r.disabled=!0,r.overrideTotalTime(a.totalTime),void n.push(r);let t=N;if(O.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=O.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>O.set(e,t))}const i=this._buildAnimation(r.namespaceId,a,S,s,T,I);if(r.setRealPlayer(i),t===N)j.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=o(e)),n.push(r)}}else B(e,a.fromStyles),r.onDestroy(()=>z(e,a.toStyles)),L.push(r),u.has(e)&&n.push(r)}),L.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=o(e);t.setRealPlayer(i)}}),n.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(Yt(t,A),e&&e.hasAnimation)continue;let i=[];if(l.size){let e=l.get(t);e&&e.length&&i.push(...e);let n=this.driver.query(t,R,!0);for(let t=0;t!t.destroyed);n.length?Qt(this,t,n):this.processLeaveNode(t)}return _.length=0,j.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),j}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,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||s==zt;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&r.push(e)})}}return(i||n)&&(r=r.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),r}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const a of e.timelines){const t=a.element,o=t!==n,l=d(i,t,[]);this._getPreviousPlayers(t,o,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}B(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,a){const c=e.triggerName,h=e.element,u=[],p=new Set,m=new Set,f=e.timelines.map(e=>{const o=e.element;p.add(o);const d=o.__ng_removed;if(d&&d.removedBeforeQueried)return new r.d(e.duration,e.delay);const f=o!==h,g=function(t){const e=[];return Zt(t,e),e}((i.get(o)||Pt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===o),b=s.get(o),_=a.get(o),y=l(0,this._normalizer,0,e.keyframes,b,_),v=this._buildPlayer(e,y,g);if(e.subTimeline&&n&&m.add(o),f){const e=new Xt(t,c,o);e.setRealPlayer(v),u.push(e)}return v});u.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>Gt(t,T));const g=o(f);return g.onDestroy(()=>{p.forEach(t=>Yt(t,T)),z(h,e.toStyles)}),m.forEach(t=>{d(n,t,[]).push(g)}),g}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new r.d(t.duration,t.delay)}}class Xt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,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(i=>c(t,e,void 0,i))}),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 qt(t){return t&&1===t.nodeType}function $t(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Wt(t,e,i,n,s){const r=[];i.forEach(t=>r.push($t(t)));const a=[];n.forEach((i,n)=>{const r={};i.forEach(t=>{const i=r[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=Mt,a.push(n))}),t.set(n,r)});let o=0;return i.forEach(t=>$t(t,r[o++])),a}function Kt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const a=t.parentNode;return e=i.has(a)?a:n.has(a)?1:r(a),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&i.get(e).push(t)}),i}function Gt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Yt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Qt(t,e,i){o(i).onDone(()=>t.processLeaveNode(e))}function Zt(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class te{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ut(t,e,i),this._timelineEngine=new Rt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const r=t+"-"+n;let a=this._triggerCache[r];if(!a){const t=[],e=rt(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);a=function(t,e){return new Dt(t,e)}(n,e),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,n,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=p(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=p(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ee(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=ne(e[0]),e.length>1&&(n=ne(e[e.length-1]))):e&&(i=ne(e)),i||n?new ie(t,i,n):null}let ie=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&z(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(z(this._element,this._initialStyles),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(B(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),z(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ne(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=pe(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),ue(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=pe(t,"").split(","),n=he(i,e);n>=0&&(i.splice(n,1),de(t,"",i.join(",")))}(this._element,this._name))}}function le(t,e,i){de(t,"PlayState",i,ce(t,e))}function ce(t,e){const i=pe(t,"");return i.indexOf(",")>0?he(i.split(","),e):he([i],e)}function he(t,e){for(let i=0;i=0)return i;return-1}function ue(t,e,i){i?t.removeEventListener(ae,e):t.addEventListener(ae,e)}function de(t,e,i,n){const s=re+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function pe(t,e){return t.style[re+e]||""}class me{constructor(t,e,i,n,s,r,a,o){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=a,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=n+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 oe(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(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:Z(this.element,i))})}this.currentSnapshot=t}}class fe extends r.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=k(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 ge{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>k(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=s+"}\n"}),n+="}\n";const r=document.createElement("style");return r.textContent=n,r}animate(t,e,i,n,s,r=[],a){const o=r.filter(t=>t instanceof me),l={};G(i,n)&&o.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=Y(t,e,l));if(0==i)return new fe(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=ee(t,e),p=new me(t,e,h,i,n,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}}class be{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(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,i){return t.animate(e,i)}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]:Z(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _e{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ye().toString()),this._cssKeyframesDriver=new ge}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,r=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,r);const o={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(o.easing=s);const l={},c=r.filter(t=>t instanceof be);G(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=ee(t,e=Y(t,e=e.map(t=>F(t,!1)),l));return new be(t,e,o,h)}}function ye(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ve=i("ofXK");let we=(()=>{class t extends r.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:n.S.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?Object(r.i)(t):t;return ke(this._renderer,null,e,"register",[i]),new xe(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(n.H),n.Xb(ve.d))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();class xe extends r.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Ce(this._id,t,e||{},this._renderer)}}class Ce{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ke(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function ke(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}const Se="@",Oe="@.disabled";let Ee=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,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 i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Ae("",i,this.engine),this._rendererCache.set(i,t)),t}const n=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(n,s,t,e.name,e)};return e.data.animation.forEach(r),new De(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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)(n.Xb(n.H),n.Xb(te),n.Xb(n.B))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();class Ae{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,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,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}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,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Se&&e==Oe?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class De extends Ae{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Se?"."==e.charAt(1)&&e==Oe?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==Se){const n=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)!=Se&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Ie=(()=>{class t extends te{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(ve.d),n.Xb(O),n.Xb(xt))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();const Te=new n.s("AnimationModuleType"),Re=[{provide:O,useFactory:function(){return"function"==typeof ye()?new _e:new ge}},{provide:Te,useValue:"BrowserAnimations"},{provide:r.b,useClass:we},{provide:xt,useFactory:function(){return new Ct}},{provide:te,useClass:Ie},{provide:n.H,useFactory:function(t,e,i){return new Ee(t,e,i)},deps:[s.d,te,n.B]}];let je=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:Re,imports:[s.a]}),t})()},STbY:function(t,e,i){"use strict";i.d(e,"a",function(){return M}),i.d(e,"b",function(){return L}),i.d(e,"c",function(){return X}),i.d(e,"d",function(){return H});var n=i("u47x"),s=i("8LU1"),r=i("FtGj"),a=i("fXoL"),o=i("XNiG"),l=i("quSY"),c=i("VRyK"),h=i("LRne"),u=i("7Hc7"),d=i("JX91"),p=i("eIep"),m=i("IzEk"),f=i("pLZG"),g=i("1G5W"),b=i("3E0/"),_=i("R0Ic"),y=i("+rOU"),v=i("ofXK"),w=i("FKr1"),x=i("rDax"),C=i("nLfN"),k=i("vxfF"),S=i("cH1L");const O=["mat-menu-item",""],E=["*"];function A(t,e){if(1&t){const t=a.Ub();a.Tb(0,"div",0),a.bc("keydown",function(e){return a.uc(t),a.fc()._handleKeydown(e)})("click",function(){return a.uc(t),a.fc().closed.emit("click")})("@transformMenu.start",function(e){return a.uc(t),a.fc()._onAnimationStart(e)})("@transformMenu.done",function(e){return a.uc(t),a.fc()._onAnimationDone(e)}),a.Tb(1,"div",1),a.jc(2),a.Sb(),a.Sb()}if(2&t){const t=a.fc();a.lc("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),a.Db("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const D={transformMenu:Object(_.m)("transformMenu",[Object(_.j)("void",Object(_.k)({opacity:0,transform:"scale(0.8)"})),Object(_.l)("void => enter",Object(_.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(_.k)({opacity:1,transform:"scale(1)"}))),Object(_.l)("* => void",Object(_.e)("100ms 25ms linear",Object(_.k)({opacity:0})))]),fadeInItems:Object(_.m)("fadeInItems",[Object(_.j)("showing",Object(_.k)({opacity:1})),Object(_.l)("void => *",[Object(_.k)({opacity:0}),Object(_.e)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I=new a.s("MatMenuContent"),T=new a.s("MAT_MENU_PANEL");class R{}const j=Object(w.x)(Object(w.y)(R));let L=(()=>{class t extends j{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new o.a,this._focused=new o.a,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new a.F,this._tabSubscription=l.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.a,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new a.o,this.close=this.closed,this.panelId="mat-menu-panel-"+P++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Object(s.c)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(s.c)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.g(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(p.a)(t=>Object(c.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(p.a)(t=>Object(c.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case r.h:Object(r.t)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case r.j:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case r.n:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==r.q&&e!==r.e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Object(m.a)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Object(d.a)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(a.B),a.Nb(N))},t.\u0275dir=a.Ib({type:t,contentQueries:function(t,e,i){if(1&t&&(a.Gb(i,I,!0),a.Gb(i,L,!0),a.Gb(i,L,!1)),2&t){let t;a.rc(t=a.cc())&&(e.lazyContent=t.first),a.rc(t=a.cc())&&(e._allItems=t),a.rc(t=a.cc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&a.Ic(a.N,!0),2&t){let t;a.rc(t=a.cc())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),M=(()=>{class t extends F{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(a.B),a.Nb(N))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&a.Db("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a.Bb([{provide:T,useExisting:t}]),a.zb],ngContentSelectors:E,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(a.kc(),a.Dc(0,A,3,6,"ng-template"))},directives:[v.k],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[D.transformMenu,D.fadeInItems]},changeDetection:0}),t})();const V=new a.s("mat-menu-scroll-strategy"),z={provide:V,deps:[x.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B=Object(C.f)({passive:!0});let H=(()=>{class t{constructor(t,e,i,n,s,r,o,c){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=o,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=l.a.EMPTY,this._hoverSubscription=l.a.EMPTY,this._menuCloseSubscription=l.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new a.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.o,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof F?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,B),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,B),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof F&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof F?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Object(f.a)(t=>"void"===t.toState),Object(m.a)(1),Object(g.a)(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new x.d({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,a]=[n,s],[o,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=o="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(r="top"===n?"bottom":"top",a="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:o,overlayY:n,offsetY:c},{originX:i,originY:r,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:a,overlayX:o,overlayY:s,offsetY:-c},{originX:i,originY:a,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:Object(h.a)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Object(f.a)(t=>t!==this._menuItemInstance),Object(f.a)(()=>this._menuOpen)):Object(h.a)();return Object(c.a)(t,i,n,e)}_handleMousedown(t){Object(n.l)(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(e===r.n&&"ltr"===this.dir||e===r.j&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Object(f.a)(t=>t===this._menuItemInstance&&!t.disabled),Object(b.a)(0,u.a)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof F&&this.menu._isAnimating?this.menu._animationDone.pipe(Object(m.a)(1),Object(b.a)(0,u.a),Object(g.a)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new y.h(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(x.c),a.Nb(a.l),a.Nb(a.R),a.Nb(V),a.Nb(T,8),a.Nb(L,10),a.Nb(S.b,8),a.Nb(n.h))},t.\u0275dir=a.Ib({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&a.bc("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&a.Db("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),U=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},providers:[z],imports:[w.i]}),t})(),X=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},providers:[z],imports:[[v.c,w.i,w.s,x.f,U],k.b,w.i,U]}),t})()},SeVD:function(t,e,i){"use strict";i.d(e,"a",function(){return h});var n=i("ngJS"),s=i("NJ4a"),r=i("Lhse"),a=i("kJWO"),o=i("I55L"),l=i("c2HN"),c=i("XoHu");const h=t=>{if(t&&"function"==typeof t[a.a])return h=t,t=>{const e=h[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(o.a)(t))return Object(n.a)(t);if(Object(l.a)(t))return i=t,t=>(i.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 i=e[r.a]();for(;;){let e;try{e=i.next()}catch(n){return t.error(n),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=Object(c.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,h}},SpAZ:function(t,e,i){"use strict";function n(t){return t}i.d(e,"a",function(){return n})},SxV6:function(t,e,i){"use strict";i.d(e,"a",function(){return c});var n=i("sVev"),s=i("pLZG"),r=i("IzEk"),a=i("xbPD"),o=i("XDbj"),l=i("SpAZ");function c(t,e){const i=arguments.length>=2;return c=>c.pipe(t?Object(s.a)((e,i)=>t(e,i,c)):l.a,Object(r.a)(1),i?Object(a.a)(e):Object(o.a)(()=>new n.a))}},UXun:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("jtHE");function s(t,e,i){let s;return s=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:s}){let r,a,o=0,l=!1,c=!1;return function(h){let u;o++,!r||l?(l=!1,r=new n.a(t,e,s),u=r.subscribe(this),a=h.subscribe({next(t){r.next(t)},error(t){l=!0,r.error(t)},complete(){c=!0,a=void 0,r.complete()}})):u=r.subscribe(this),this.add(()=>{o--,u.unsubscribe(),a&&!c&&i&&0===o&&(a.unsubscribe(),a=void 0,r=void 0)})}}(s))}},VHTt:function(t,e,i){"use strict";i.d(e,"g",function(){return n}),i.d(e,"s",function(){return s}),i.d(e,"f",function(){return r}),i.d(e,"d",function(){return a.a}),i.d(e,"q",function(){return o}),i.d(e,"t",function(){return l}),i.d(e,"o",function(){return c}),i.d(e,"p",function(){return h}),i.d(e,"j",function(){return u}),i.d(e,"b",function(){return d}),i.d(e,"l",function(){return p.f}),i.d(e,"k",function(){return p.e}),i.d(e,"a",function(){return p.a}),i.d(e,"m",function(){return p.g}),i.d(e,"i",function(){return p.d}),i.d(e,"c",function(){return p.b}),i.d(e,"h",function(){return p.c}),i.d(e,"n",function(){return m}),i.d(e,"r",function(){return y}),i.d(e,"e",function(){return S});var n=function(t){return t[t.Concept=0]="Concept",t[t.Formula=1]="Formula",t}({});function s(t){let e="";switch(t){case n.Formula:e="KnowledgeItemCategory.Formula";break;case n.Concept:default:e="KnowledgeItemCategory.Concept"}return e}class r{constructor(){this._tags=[]}get ID(){return this._id}set ID(t){this._id=t}get Title(){return this._title}set Title(t){this._title=t}get Content(){return this._content}set Content(t){this._content=t}get ItemCategory(){return this._itemCtgy}set ItemCategory(t){this._itemCtgy=t}get Tags(){return this._tags}set Tags(t){this._tags=t.slice()}get CreatedAt(){return this._createdAt}set CreatedAt(t){this._createdAt=t}get ModifiedAt(){return this._modifiedAt}set ModifiedAt(t){this._modifiedAt=t}parseData(t){if(t&&t.ID&&(this.ID=+t.ID),t&&t.Category&&(this.ItemCategory=isNaN(+t.Category)?n[t.Category]:+t.Category),t&&t.Title&&(this._title=t.Title),t&&t.Content&&(this.Content=t.Content),t&&t.CreatedAt&&(this.CreatedAt=new Date(t.CreatedAt)),t&&t.ModifiedAt&&(this.ModifiedAt=new Date(t.ModifiedAt)),t&&t.Tags){const e=t.Tags;this._tags=[],e.forEach(t=>{this._tags.push(t.TagTerm)})}}generateString(t){let e={Content:this._content,Title:this._title,Category:n[this.ItemCategory]};return t&&(e.ID=this.ID),this.CreatedAt&&(e.CreatedAt=this.CreatedAt.toISOString()),this.ModifiedAt&&(e.ModifiedAt=this.ModifiedAt.toISOString()),this.Tags&&(e.Tags=[],this.Tags.forEach(t=>{e.Tags.push({TagTerm:t})})),JSON&&JSON.stringify(e)}}var a=i("NUjs"),o=function(t){return t[t.KnowledgeItem=1]="KnowledgeItem",t[t.ExerciseItem=2]="ExerciseItem",t}({});const l=t=>{let e="";switch(t){case o.ExerciseItem:e="ExerciseItem";break;default:e="KnowledgeItem"}return e};class c{parseData(t){t&&t.TagTerm&&(this.TagTerm=t.TagTerm),t&&t.RefType&&(this.RefType=isNaN(+t.RefType)?o[t.RefType]:+t.RefType),t&&t.RefID&&(this.RefID=t.RefID)}}class h{parseData(t){t&&t.Tag&&(this.TagTerm=t.Tag),t&&t.RefType&&(this.RefType=isNaN(+t.RefType)?o[t.RefType]:t.RefType),t&&t.Count&&(this.Count=t.Count)}}class u{parseData(t){t&&t.RefType&&(this.RefType=isNaN(+t.RefType)?o[t.RefType]:+t.RefType),t&&t.Count&&(this.Count=t.Count)}}var d=function(t){return t[t.home=0]="home",t[t.ps_basic=1]="ps_basic",t[t.ps_extend=2]="ps_extend",t[t.games=3]="games",t[t.award=4]="award",t[t.report=5]="report",t[t.help=6]="help",t[t.knowledge=7]="knowledge",t[t.others=10]="others",t}({}),p=i("BETK");const m=9;class f{constructor(){this._dataCells=[];for(let t=0;t<3;t++)this._dataCells.push(0)}getCell(t){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataCells[t]}setCell(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");this._dataCells[t]=e}toString(){return this._dataCells.join(" ")}print2Log(){console.log(this.toString())}}class g{constructor(){this._dataRows=[];for(let t=0;t<3;t++){const t=new f;this._dataRows.push(t)}}static generateValidOne(){const t=new g,e=[];for(let i=0;im)throw new Error("Failed to initialize a 3*3!")}}for(let i=0;i=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataRows[t]}setRow(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(null==e)throw new Error("Unit row is not assigned");this._dataRows[t]=e}getCell(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataRows[t].getCell(e)}setCell(t,e,i){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");this._dataRows[t].setCell(e,i)}swapRows(t,e){if(t<0||t>=3||e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");const i=new g;for(let n=0;n<3;n++)for(let s=0;s<3;s++)i.setCell(n===t?e:n===e?t:n,s,this.getCell(n,s));return i}swapColumns(t,e){if(t<0||t>=3||e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");const i=new g;for(let n=0;n<3;n++)for(let s=0;s<3;s++)i.setCell(n,s===t?e:s===e?t:s,this.getCell(n,s));return i}scrollUp(){return this.swapRows(0,1).swapRows(1,2)}scrollDown(){return this.swapRows(1,2).swapRows(0,1)}scrollLeft(){return this.swapColumns(0,1).swapColumns(1,2)}scrollRight(){return this.swapColumns(1,2).swapColumns(0,1)}print2Log(){for(let t=0;t<3;t++)this._dataRows[t].print2Log()}}class b{constructor(){this._dataCells=[];for(let t=0;t<3;t++)this._dataCells.push(new g)}getCell(t){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataCells[t]}setCell(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");this._dataCells[t]=e}}class _{constructor(){this._dataRows=[];for(let t=0;t<3;t++){const t=new b;this._dataRows.push(t)}}getRow(t){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataRows[t]}setRow(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(null==e)throw new Error("Unit row is not assigned");this._dataRows[t]=e}getUnitCell(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataRows[t].getCell(e)}setUnitCell(t,e,i){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");this._dataRows[t].setCell(e,i)}getDataCells(){const t=[];for(let e=0;e50)throw new Error("Invalid dimension");this._finished=!1,this.cells=new Array;for(let e=0;e=this._dimension||e<0||e>=this._dimension)throw new Error("Invalid row or column");return void 0!==this.cells[t][e].playerinput}setCellValue(t,e,i){if(!this._inited)throw new Error("Not initialed");if(this._finished)throw new Error("Already finished");if(t<0||t>=this._dimension||e<0||e>=this._dimension)throw new Error("Invalid row or column");this.cells[t][e].playerinput=i,this._queuePositions.push({row:t,column:e}),this.checkWinner(t,e,i)}workoutNextCellAIPosition(){if(this._finished)throw new Error("Game is over!");const t={row:0,column:0};if(this._queuePositions.length<=0)return t.row=Math.round(Math.random()*this._dimension/2),t.column=Math.round(Math.random()*this._dimension/2),t;if(1===this._queuePositions.length)return t.row=this._queuePositions[0].row,t.column=this._queuePositions[0].column+1{-1!==e||!0===t.headsealed&&!0===t.tailsealed?this._playAnalysis[e].risklevel{-1!==i||!0===t.headsealed&&!0===t.tailsealed?this._playAnalysis[i].risklevel=t+this._dimension||(this.cells[t][n-t].playerinput===i?r++:r=0,5!==r));t++);if(5!==r){let n=t-e;if(n<0){n=Math.abs(n);for(let t=0;t=this._dimension||(this.cells[t][t+n].playerinput===i?a++:a=0,5!==a));t++);}else for(let t=n;t1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof o&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.a?t[0]:Object(r.a)(e)(Object(a.a)(t,i))}},WMd4:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("EY2u"),s=i("LRne"),r=i("z6cu");let a=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,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,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Object(s.a)(this.value);case"E":return Object(r.a)(this.error);case"C":return Object(n.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})()},Wp6s:function(t,e,i){"use strict";i.d(e,"a",function(){return m}),i.d(e,"b",function(){return p}),i.d(e,"c",function(){return h}),i.d(e,"d",function(){return f}),i.d(e,"e",function(){return g}),i.d(e,"f",function(){return d}),i.d(e,"g",function(){return u});var n=i("R1ws"),s=i("FKr1"),r=i("fXoL");const a=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],l=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],c=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),p=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&r.Fb("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),m=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(n.a,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&r.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(t,e){1&t&&(r.kc(a),r.jc(0),r.jc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:c,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(r.kc(l),r.jc(0),r.Tb(1,"div",0),r.jc(2,1),r.Sb(),r.jc(3,2))},encapsulation:2,changeDetection:0}),t})(),g=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.i],s.i]}),t})()},XDbj:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("sVev"),s=i("7o/Q");function r(t=l){return e=>e.lift(new a(t))}class a{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new o(t,this.errorFactory))}}class o 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 l(){return new n.a}},XNiG:function(t,e,i){"use strict";i.d(e,"b",function(){return c}),i.d(e,"a",function(){return h});var n=i("HDdC"),s=i("7o/Q"),r=i("quSY"),a=i("9ppp"),o=i("Ylt2"),l=i("2QA8");class c extends s.a{constructor(t){super(t),this.destination=t}}let h=(()=>{class t extends n.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(t){const e=new u(this,this);return e.operator=t,e}next(t){if(this.closed)throw new a.a;if(!this.isStopped){const{observers:e}=this,i=e.length,n=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}}},Xa2L:function(t,e,i){"use strict";i.d(e,"a",function(){return m}),i.d(e,"b",function(){return f});var n=i("fXoL"),s=i("ofXK"),r=i("FKr1"),a=i("8LU1"),o=i("nLfN"),l=i("R1ws");function c(t,e){if(1&t&&(n.ec(),n.Ob(0,"circle",3)),2&t){const t=n.fc();n.Ac("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.Db("r",t._getCircleRadius())}}function h(t,e){if(1&t&&(n.ec(),n.Ob(0,"circle",3)),2&t){const t=n.fc();n.Ac("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.Db("r",t._getCircleRadius())}}class u{constructor(t){this._elementRef=t}}const d=Object(r.w)(u,"primary"),p=new n.s("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let m=(()=>{class t extends d{constructor(e,i,n,s,r){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const a=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),a.has(n.head)||a.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Object(a.f)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Object(a.f)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Object(a.f)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Object(o.c)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(o.a),n.Nb(s.d,8),n.Nb(l.a,8),n.Nb(p))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(n.Db("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),n.Ac("width",e.diameter,"px")("height",e.diameter,"px"),n.Fb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[n.zb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.ec(),n.Tb(0,"svg",0),n.Dc(1,c,1,9,"circle",1),n.Dc(2,h,1,7,"circle",2),n.Sb()),2&t&&(n.Ac("width",e.diameter,"px")("height",e.diameter,"px"),n.lc("ngSwitch","indeterminate"===e.mode),n.Db("viewBox",e._getViewBox()),n.Cb(1),n.lc("ngSwitchCase",!0),n.Cb(1),n.lc("ngSwitchCase",!1))},directives:[s.o,s.p],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),f=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[r.i,s.c],r.i]}),t})()},XhcP:function(t,e,i){"use strict";i.d(e,"a",function(){return q}),i.d(e,"b",function(){return W}),i.d(e,"c",function(){return X}),i.d(e,"d",function(){return G});var n=i("nLfN"),s=i("vxfF"),r=i("ofXK"),a=i("fXoL"),o=i("FKr1"),l=i("8LU1"),c=i("FtGj"),h=i("XNiG"),u=i("xgIS"),d=i("VRyK"),p=i("pLZG"),m=i("lJxs"),f=i("7o/Q");function g(t){return e=>e.lift(new b(t))}class b{constructor(t){this.value=t}call(t,e){return e.subscribe(new _(t,this.value))}}class _ extends f.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}var y=i("1G5W"),v=i("/uUt"),w=i("IzEk"),x=i("JX91"),C=i("Kj3r"),k=i("R0Ic"),S=i("R1ws"),O=i("u47x"),E=i("cH1L");const A=["*"];function D(t,e){if(1&t){const t=a.Ub();a.Tb(0,"div",2),a.bc("click",function(){return a.uc(t),a.fc()._onBackdropClicked()}),a.Sb()}if(2&t){const t=a.fc();a.Fb("mat-drawer-shown",t._isShowingBackdrop())}}function I(t,e){1&t&&(a.Tb(0,"mat-drawer-content"),a.jc(1,2),a.Sb())}const T=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],R=["mat-drawer","mat-drawer-content","*"];function j(t,e){if(1&t){const t=a.Ub();a.Tb(0,"div",2),a.bc("click",function(){return a.uc(t),a.fc()._onBackdropClicked()}),a.Sb()}if(2&t){const t=a.fc();a.Fb("mat-drawer-shown",t._isShowingBackdrop())}}function L(t,e){1&t&&(a.Tb(0,"mat-sidenav-content",3),a.jc(1,2),a.Sb())}const N=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],P=["mat-sidenav","mat-sidenav-content","*"],F=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",M={transformDrawer:Object(k.m)("transform",[Object(k.j)("open, open-instant",Object(k.k)({transform:"none",visibility:"visible"})),Object(k.j)("void",Object(k.k)({"box-shadow":"none",visibility:"hidden"})),Object(k.l)("void => open-instant",Object(k.e)("0ms")),Object(k.l)("void <=> open, open-instant => void",Object(k.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},V=new a.s("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),z=new a.s("MAT_DRAWER_CONTAINER");let B=(()=>{class t extends s.a{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.h),a.Nb(Object(a.W)(()=>U)),a.Nb(a.l),a.Nb(s.c),a.Nb(a.B))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.Ac("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.zb],ngContentSelectors:A,decls:1,vars:0,template:function(t,e){1&t&&(a.kc(),a.jc(0))},encapsulation:2,changeDetection:0}),t})(),H=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=r,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new h.a,this._animationEnd=new h.a,this._animationState="void",this.openedChange=new a.o(!0),this._openedStream=this.openedChange.pipe(Object(p.a)(t=>t),Object(m.a)(()=>{})),this.openedStart=this._animationStarted.pipe(Object(p.a)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),g(void 0)),this._closedStream=this.openedChange.pipe(Object(p.a)(t=>!t),Object(m.a)(()=>{})),this.closedStart=this._animationStarted.pipe(Object(p.a)(t=>t.fromState!==t.toState&&"void"===t.toState),g(void 0)),this._destroyed=new h.a,this.onPositionChanged=new a.o,this._modeChanged=new h.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(u.a)(this._elementRef.nativeElement,"keydown").pipe(Object(p.a)(t=>t.keyCode===c.h&&!this.disableClose&&!Object(c.t)(t)),Object(y.a)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Object(v.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Object(l.c)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Object(l.c)(t)}get opened(){return this._opened}set opened(t){this.toggle(Object(l.c)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Object(w.a)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(O.i),a.Nb(O.h),a.Nb(n.a),a.Nb(a.B),a.Nb(r.d,8),a.Nb(z,8))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&a.Bc("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(a.Db("align",null),a.Cc("@transform",e._animationState),a.Fb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:A,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.kc(),a.Tb(0,"div",0),a.jc(1),a.Sb())},encapsulation:2,data:{animation:[M.transformDrawer]},changeDetection:0}),t})(),U=(()=>{class t{constructor(t,e,i,n,s,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new a.F,this.backdropClick=new a.o,this._destroyed=new h.a,this._doCheckSubject=new h.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new h.a,t&&t.change.pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Object(y.a)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Object(l.c)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Object(l.c)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(x.a)(this._allDrawers),Object(y.a)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(x.a)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Object(C.a)(10),Object(y.a)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Object(p.a)(t=>t.fromState!==t.toState),Object(y.a)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(y.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Object(y.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Object(w.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Object(y.a)(Object(d.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(E.b,8),a.Nb(a.l),a.Nb(a.B),a.Nb(a.h),a.Nb(s.e),a.Nb(V),a.Nb(S.a,8))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(a.Gb(i,B,!0),a.Gb(i,H,!0)),2&t){let t;a.rc(t=a.cc())&&(e._content=t.first),a.rc(t=a.cc())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&a.Ic(B,!0),2&t){let t;a.rc(t=a.cc())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.Fb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.Bb([{provide:z,useExisting:t}])],ngContentSelectors:R,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(a.kc(T),a.Dc(0,D,1,2,"div",0),a.jc(1),a.jc(2,1),a.Dc(3,I,2,0,"mat-drawer-content",1)),2&t&&(a.lc("ngIf",e.hasBackdrop),a.Cb(3),a.lc("ngIf",!e._content))},directives:[r.m,B],styles:[F],encapsulation:2,changeDetection:0}),t})(),X=(()=>{class t extends B{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.h),a.Nb(Object(a.W)(()=>W)),a.Nb(a.l),a.Nb(s.c),a.Nb(a.B))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.Ac("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.zb],ngContentSelectors:A,decls:1,vars:0,template:function(t,e){1&t&&(a.kc(),a.jc(0))},encapsulation:2,changeDetection:0}),t})(),q=(()=>{class t extends H{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Object(l.c)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Object(l.f)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Object(l.f)(t)}}return t.\u0275fac=function(e){return $(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(a.Db("align",null),a.Ac("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),a.Fb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.zb],ngContentSelectors:A,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.kc(),a.Tb(0,"div",0),a.jc(1),a.Sb())},encapsulation:2,data:{animation:[M.transformDrawer]},changeDetection:0}),t})();const $=a.Vb(q);let W=(()=>{class t extends U{}return t.\u0275fac=function(e){return K(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(a.Gb(i,X,!0),a.Gb(i,q,!0)),2&t){let t;a.rc(t=a.cc())&&(e._content=t.first),a.rc(t=a.cc())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.Fb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[a.Bb([{provide:z,useExisting:t}]),a.zb],ngContentSelectors:P,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(a.kc(N),a.Dc(0,j,1,2,"div",0),a.jc(1),a.jc(2,1),a.Dc(3,L,2,0,"mat-sidenav-content",1)),2&t&&(a.lc("ngIf",e.hasBackdrop),a.Cb(3),a.lc("ngIf",!e._content))},directives:[r.m,X,s.a],styles:[F],encapsulation:2,changeDetection:0}),t})();const K=a.Vb(W);let G=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},imports:[[r.c,o.i,n.b,s.b],s.b,o.i]}),t})()},XiUz:function(t,e,i){"use strict";i.d(e,"d",function(){return U}),i.d(e,"a",function(){return C}),i.d(e,"c",function(){return g}),i.d(e,"b",function(){return j});var n=i("fXoL"),s=i("pD6V"),r=i("cH1L"),a=(i("XNiG"),i("1G5W"));const o="inline",l=["row","column","row-reverse","column-reverse"];function c(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return l.find(t=>t===e)||(e=l[0]),i===o&&(i=n!==o?n:"",n=o),[e,u(i),!!n]}function h(t){let[e]=c(t);return e.indexOf("row")>-1}function u(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let d=(()=>{class t extends s.h{buildStyles(t){return function(t){let[e,i,n]=c(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(t)}}return t.\u0275fac=function(e){return p(e||t)},t.\u0275prov=Object(n.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const p=n.Vb(d),m=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let f=(()=>{class t extends s.b{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout",this.styleCache=_,this.init()}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(s.i),n.Nb(d),n.Nb(s.f))},t.\u0275dir=n.Ib({type:t,features:[n.zb]}),t})(),g=(()=>{class t extends f{constructor(){super(...arguments),this.inputs=m}}return t.\u0275fac=function(e){return b(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[n.zb]}),t})();const b=n.Vb(g),_=new Map;function y(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}new Map,new Map,new Map,new Map;let v=(()=>{class t extends s.h{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[i,n,...s]=t.split(" "),r=s.join(" ");const a=e.direction.indexOf("column")>-1?"column":"row",o=h(a)?"max-width":"max-height",l=h(a)?"min-width":"min-height",c=String(r).indexOf("calc")>-1,u=c||"auto"===r,d=String(r).indexOf("%")>-1&&!c,p=String(r).indexOf("px")>-1||String(r).indexOf("rem")>-1||String(r).indexOf("em")>-1||String(r).indexOf("vw")>-1||String(r).indexOf("vh")>-1;let m=c||p;i="0"==i?0:i,n="0"==n?0:n;const f=!i&&!n;let g={};const b={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(r||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;r="row"===a?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,r="auto";break;case"grow":r="100%";break;case"noshrink":n=0,r="auto";break;case"auto":break;case"none":i=0,n=0,r="auto";break;default:m||d||isNaN(r)||(r+="%"),"0%"===r&&(m=!0),"0px"===r&&(r="0%"),g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":m?r:"100%"}:{flex:`${i} ${n} ${m?r:"100%"}`})}return g.flex||g["flex-grow"]||(g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":r}:{flex:`${i} ${n} ${r}`})),"0%"!==r&&"0px"!==r&&"0.000000001px"!==r&&"auto"!==r&&(g[l]=f||m&&i?r:null,g[o]=f||!u&&n?r:null),g[l]||g[o]?e.hasWrap&&(g[c?"flex-basis":"flex"]=g[o]?c?g[o]:`${i} ${n} ${g[o]}`:c?g[l]:`${i} ${n} ${g[l]}`):g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":r}:{flex:`${i} ${n} ${r}`}),y(g,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(s.e))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(s.e))},token:t,providedIn:"root"}),t})();const w=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let x=(()=>{class t extends s.b{constructor(t,e,i,n,s){super(t,n,e,s),this.layoutConfig=i,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Object(a.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Object(a.a)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,i=e.startsWith("row"),n=this.wrap;i&&n?this.styleCache=E:i&&!n?this.styleCache=S:!i&&n?this.styleCache=A:i||n||(this.styleCache=O);const r=String(t).replace(";",""),a=Object(s.j)(r,this.flexGrow,this.flexShrink);this.addStyles(a.join(" "),{direction:e,hasWrap:n})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=Object(s.j)(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(s.i),n.Nb(s.e),n.Nb(v),n.Nb(s.f))},t.\u0275dir=n.Ib({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[n.zb]}),t})(),C=(()=>{class t extends x{constructor(){super(...arguments),this.inputs=w}}return t.\u0275fac=function(e){return k(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[n.zb]}),t})();const k=n.Vb(C),S=new Map,O=new Map,E=new Map,A=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map;let D=(()=>{class t extends s.h{buildStyles(t,e){const i={},[n,s]=t.split(" ");switch(n){case"center":i["justify-content"]="center";break;case"space-around":i["justify-content"]="space-around";break;case"space-between":i["justify-content"]="space-between";break;case"space-evenly":i["justify-content"]="space-evenly";break;case"end":case"flex-end":i["justify-content"]="flex-end";break;case"start":case"flex-start":default:i["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":i["align-items"]=i["align-content"]="flex-start";break;case"center":i["align-items"]=i["align-content"]="center";break;case"end":case"flex-end":i["align-items"]=i["align-content"]="flex-end";break;case"space-between":i["align-content"]="space-between",i["align-items"]="stretch";break;case"space-around":i["align-content"]="space-around",i["align-items"]="stretch";break;case"baseline":i["align-content"]="stretch",i["align-items"]="baseline";break;case"stretch":default:i["align-items"]=i["align-content"]="stretch"}return y(i,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===s?h(e.layout)?null:"100%":null,"max-height":"stretch"===s&&h(e.layout)?"100%":null})}}return t.\u0275fac=function(e){return I(e||t)},t.\u0275prov=Object(n.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const I=n.Vb(D),T=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let R=(()=>{class t extends s.b{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Object(a.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",i=this.inline;"row"===e&&i?this.styleCache=V:"row"!==e||i?"row-reverse"===e&&i?this.styleCache=B:"row-reverse"!==e||i?"column"===e&&i?this.styleCache=z:"column"!==e||i?"column-reverse"===e&&i?this.styleCache=H:"column-reverse"!==e||i||(this.styleCache=M):this.styleCache=P:this.styleCache=F:this.styleCache=N,this.addStyles(t,{layout:e,inline:i})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),l.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(s.i),n.Nb(D),n.Nb(s.f))},t.\u0275dir=n.Ib({type:t,features:[n.zb]}),t})(),j=(()=>{class t extends R{constructor(){super(...arguments),this.inputs=T}}return t.\u0275fac=function(e){return L(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[n.zb]}),t})();const L=n.Vb(j),N=new Map,P=new Map,F=new Map,M=new Map,V=new Map,z=new Map,B=new Map,H=new Map;let U=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[s.c,r.a]]}),t})()},XoHu:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,"a",function(){return n})},Y7HM:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("DH7j");function s(t){return!Object(n.a)(t)&&t-parseFloat(t)+1>=0}},Ylt2:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("quSY");class s extends n.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 i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},bHdf:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("5+tZ"),s=i("SpAZ");function r(t=Number.POSITIVE_INFINITY){return Object(n.a)(s.a,t)}},bOdf:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("5+tZ");function s(t,e){return Object(n.a)(t,e,1)}},bSwM:function(t,e,i){"use strict";i.d(e,"a",function(){return w}),i.d(e,"b",function(){return C});var n=i("8LU1"),s=i("fXoL"),r=i("3Pt+"),a=i("FKr1"),o=i("R1ws"),l=i("GU7r"),c=i("u47x");const h=["input"],u=function(){return{enterDuration:150}},d=["*"],p=new s.s("mat-checkbox-default-options",{providedIn:"root",factory:m});function m(){return{color:"accent",clickAction:"check-indeterminate"}}let f=0;const g=m(),b={provide:r.k,useExisting:Object(s.W)(()=>w),multi:!0};class _{}class y{constructor(t){this._elementRef=t}}const v=Object(a.B)(Object(a.w)(Object(a.x)(Object(a.y)(y))));let w=(()=>{class t extends v{constructor(t,e,i,n,r,a,o){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=a,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++f,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.o,this.indeterminateChange=new s.o,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||g,this.color=this.defaultColor=this._options.color||g.color,this.tabIndex=parseInt(r)||0}get inputId(){return(this.id||this._uniqueId)+"-input"}get required(){return this._required}set required(t){this._required=Object(n.c)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Object(n.c)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Object(n.c)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new _;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+i}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.h),s.Nb(c.h),s.Nb(s.B),s.Yb("tabindex"),s.Nb(o.a,8),s.Nb(p,8))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Ic(h,!0),s.Ic(a.r,!0)),2&t){let t;s.rc(t=s.cc())&&(e._inputElement=t.first),s.rc(t=s.cc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Wb("id",e.id),s.Db("tabindex",null),s.Fb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s.Bb([b]),s.zb],ngContentSelectors:d,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.kc(),s.Tb(0,"label",0,1),s.Tb(2,"span",2),s.Tb(3,"input",3,4),s.bc("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.Sb(),s.Tb(5,"span",5),s.Ob(6,"span",6),s.Sb(),s.Ob(7,"span",7),s.Tb(8,"span",8),s.ec(),s.Tb(9,"svg",9),s.Ob(10,"path",10),s.Sb(),s.dc(),s.Ob(11,"span",11),s.Sb(),s.Sb(),s.Tb(12,"span",12,13),s.bc("cdkObserveContent",function(){return e._onLabelTextChange()}),s.Tb(14,"span",14),s.Ec(15,"\xa0"),s.Sb(),s.jc(16),s.Sb(),s.Sb()),2&t){const t=s.sc(1),i=s.sc(13);s.Db("for",e.inputId),s.Cb(2),s.Fb("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.Cb(1),s.lc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.Db("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.Cb(2),s.lc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.oc(19,u))}},directives:[a.r,l.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)}}),t})(),C=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},imports:[[a.s,a.i,l.c,x],a.i,x]}),t})()},bTqV:function(t,e,i){"use strict";i.d(e,"a",function(){return m}),i.d(e,"b",function(){return p}),i.d(e,"c",function(){return f});var n=i("FKr1"),s=i("R1ws"),r=i("fXoL"),a=i("u47x");const o=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class u{constructor(t){this._elementRef=t}}const d=Object(n.w)(Object(n.y)(Object(n.x)(u)));let p=(()=>{class t extends d{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of h)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);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.Nb(r.l),r.Nb(a.h),r.Nb(s.a,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Ic(n.r,!0),2&t){let t;r.rc(t=r.cc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.Db("disabled",e.disabled||null),r.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.zb],attrs:o,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.kc(),r.Tb(0,"span",0),r.jc(1),r.Sb(),r.Ob(2,"span",1),r.Ob(3,"span",2)),2&t&&(r.Cb(2),r.Fb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.lc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.r],styles:[c],encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t extends p{constructor(t,e,i){super(e,t,i)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(a.h),r.Nb(r.l),r.Nb(s.a,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.bc("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.Db("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.zb],attrs:o,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.kc(),r.Tb(0,"span",0),r.jc(1),r.Sb(),r.Ob(2,"span",1),r.Ob(3,"span",2)),2&t&&(r.Cb(2),r.Fb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.lc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.r],styles:[c],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[n.s,n.i],n.i]}),t})()},bv9b:function(t,e,i){"use strict";i.d(e,"a",function(){return g}),i.d(e,"b",function(){return _});var n=i("fXoL"),s=i("ofXK"),r=i("FKr1"),a=i("8LU1"),o=i("R1ws"),l=i("quSY"),c=i("xgIS"),h=i("pLZG");const u=["primaryValueBar"];class d{constructor(t){this._elementRef=t}}const p=Object(r.w)(d,"primary"),m=new n.s("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(n.X)(s.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let f=0,g=(()=>{class t extends p{constructor(t,e,i,s){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=i,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new n.o,this._animationEndSubscription=l.a.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+f++;const r=s?s.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${r}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=b(Object(a.f)(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=b(t||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Object(c.a)(t,"transitionend").pipe(Object(h.a)(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(n.B),n.Nb(o.a,8),n.Nb(m,8))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){if(1&t&&n.Ic(u,!0),2&t){let t;n.rc(t=n.cc())&&(e._primaryValueBar=t.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(n.Db("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),n.Fb("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[n.zb],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(n.ec(),n.Tb(0,"svg",0),n.Tb(1,"defs"),n.Tb(2,"pattern",1),n.Ob(3,"circle",2),n.Sb(),n.Sb(),n.Ob(4,"rect",3),n.Sb(),n.dc(),n.Ob(5,"div",4),n.Ob(6,"div",5,6),n.Ob(8,"div",7)),2&t&&(n.Cb(2),n.lc("id",e.progressbarId),n.Cb(2),n.Db("fill",e._rectangleFillValue),n.Cb(1),n.lc("ngStyle",e._bufferTransform()),n.Cb(1),n.lc("ngStyle",e._primaryTransform()))},directives:[s.n],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function b(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let _=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[s.c,r.i],r.i]}),t})()},c2HN:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,"a",function(){return n})},cH1L:function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return a});var n=i("fXoL"),s=i("ofXK");const r=new n.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(n.X)(s.d)}});let a=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new n.o,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(r,8))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(r,8))},token:t,providedIn:"root"}),t})(),o=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})()},cp0P:function(t,e,i){"use strict";i.d(e,"a",function(){return l});var n=i("HDdC"),s=i("DH7j"),r=i("lJxs"),a=i("XoHu"),o=i("Cfvw");function l(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return c(e,null);if(Object(a.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(r.a)(t=>e(...t)))}return c(t,null)}function c(t,e){return new n.a(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let r=0,a=0;for(let l=0;l{h||(h=!0,a++),s[l]=t},error:t=>i.error(t),complete:()=>{r++,r!==n&&h||(a===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}},d3UM:function(t,e,i){"use strict";i.d(e,"a",function(){return $}),i.d(e,"b",function(){return K});var n=i("rDax"),s=i("ofXK"),r=i("fXoL"),a=i("FKr1"),o=i("kmnG"),l=i("vxfF"),c=i("u47x"),h=i("8LU1"),u=i("0EQZ"),d=i("FtGj"),p=i("XNiG"),m=i("NXyV"),f=i("VRyK"),g=i("JX91"),b=i("eIep"),_=i("IzEk"),y=i("pLZG"),v=i("lJxs"),w=i("/uUt"),x=i("1G5W"),C=i("R0Ic"),k=i("cH1L"),S=i("3Pt+");const O=["trigger"],E=["panel"];function A(t,e){if(1&t&&(r.Tb(0,"span",8),r.Ec(1),r.Sb()),2&t){const t=r.fc();r.Cb(1),r.Fc(t.placeholder||"\xa0")}}function D(t,e){if(1&t&&(r.Tb(0,"span"),r.Ec(1),r.Sb()),2&t){const t=r.fc(2);r.Cb(1),r.Fc(t.triggerValue||"\xa0")}}function I(t,e){1&t&&r.jc(0,0,["*ngSwitchCase","true"])}function T(t,e){if(1&t&&(r.Tb(0,"span",9),r.Dc(1,D,2,1,"span",10),r.Dc(2,I,1,0,"ng-content",11),r.Sb()),2&t){const t=r.fc();r.lc("ngSwitch",!!t.customTrigger),r.Cb(2),r.lc("ngSwitchCase",!0)}}function R(t,e){if(1&t){const t=r.Ub();r.Tb(0,"div",12),r.Tb(1,"div",13,14),r.bc("@transformPanel.done",function(e){return r.uc(t),r.fc()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return r.uc(t),r.fc()._handleKeydown(e)}),r.jc(3,1),r.Sb(),r.Sb()}if(2&t){const t=r.fc();r.lc("@transformPanelWrap",void 0),r.Cb(1),r.Eb("mat-select-panel ",t._getPanelTheme(),""),r.Ac("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.lc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.Db("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const j=[[["mat-select-trigger"]],"*"],L=["mat-select-trigger","*"],N={transformPanelWrap:Object(C.m)("transformPanelWrap",[Object(C.l)("* => void",Object(C.h)("@transformPanel",[Object(C.f)()],{optional:!0}))]),transformPanel:Object(C.m)("transformPanel",[Object(C.j)("void",Object(C.k)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(C.j)("showing",Object(C.k)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(C.j)("showing-multiple",Object(C.k)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(C.l)("void => *",Object(C.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(C.l)("* => void",Object(C.e)("100ms 25ms linear",Object(C.k)({opacity:0})))])};let P=0;const F=256,M=new r.s("mat-select-scroll-strategy"),V=new r.s("MAT_SELECT_CONFIG"),z={provide:M,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class B{constructor(t,e){this.source=t,this.value=e}}class H{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const U=Object(a.x)(Object(a.B)(Object(a.y)(Object(a.z)(H)))),X=new r.s("MatSelectTrigger");let q=(()=>{class t extends U{constructor(t,e,i,n,s,a,o,l,c,h,u,d,w,x){var C,k,S;super(s,n,o,l,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=a,this._parentFormField=c,this.ngControl=h,this._liveAnnouncer=w,this._defaultOptions=x,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+P++,this._triggerAriaLabelledBy=null,this._destroy=new p.a,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+P++,this._panelDoneAnimatingStream=new p.a,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(S=null===(k=this._defaultOptions)||void 0===k?void 0:k.disableOptionCentering)&&void 0!==S&&S,this.ariaLabel="",this.optionSelectionChanges=Object(m.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(g.a)(t),Object(b.a)(()=>Object(f.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),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=x.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}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(x.a)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(x.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(g.a)(null),Object(x.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._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(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,i=e===d.e||e===d.q||e===d.j||e===d.n,n=e===d.g||e===d.o,s=this._keyManager;if(!s.isTyping()&&n&&!Object(d.t)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===d.e||i===d.q,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||i!==d.g&&i!==d.o||!e.activeItem||Object(d.t)(t))if(!s&&this._multiple&&i===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 i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&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._positioningSettled()})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{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(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(x.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(x.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(f.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(x.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(f.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(x.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==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)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),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(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_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())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(t){this.openedChange.emit(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.Nb(l.e),r.Nb(r.h),r.Nb(r.B),r.Nb(a.d),r.Nb(r.l),r.Nb(k.b,8),r.Nb(S.o,8),r.Nb(S.g,8),r.Nb(o.a,8),r.Nb(S.l,10),r.Yb("tabindex"),r.Nb(M),r.Nb(c.k),r.Nb(V,8))},t.\u0275dir=r.Ib({type:t,viewQuery:function(t,e){if(1&t&&(r.Ic(O,!0),r.Ic(E,!0),r.Ic(n.a,!0)),2&t){let t;r.rc(t=r.cc())&&(e.trigger=t.first),r.rc(t=r.cc())&&(e.panel=t.first),r.rc(t=r.cc())&&(e.overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.zb,r.Ab]}),t})(),$=(()=>{class t extends q{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Object(x.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object(_.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(t){const e=Object(a.u)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=Object(a.v)((t+e)*i,i,this.panel.nativeElement.scrollTop,F)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new B(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=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}i||(s*=-1);const r=0-(t.left+s-(i?n:0)),a=t.right+s-e.width+(i?0:n);r>0?s+=r+8:a>0&&(s-=a+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,r=Math.floor(F/n);let a;return this.disableOptionCentering?0:(a=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-r))*n+(n-(this._getItemCount()*n-F)%n):e-n/2,Math.round(-1*a-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,F)-r-this._triggerRect.height;a>s?this._adjustPanelUp(a,s):r>n?this._adjustPanelDown(r,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,F),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=Object(a.u)(s,this.options,this.optionGroups);const r=i/2;this._scrollTop=this._calculateOverlayScroll(s,r,n),this._offsetY=this._calculateOverlayOffsetY(s,r,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(e){return W(e||t)},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(r.Gb(i,X,!0),r.Gb(i,a.m,!0),r.Gb(i,a.f,!0)),2&t){let t;r.rc(t=r.cc())&&(e.customTrigger=t.first),r.rc(t=r.cc())&&(e.options=t),r.rc(t=r.cc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.bc("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(r.Db("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.Fb("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"},exportAs:["matSelect"],features:[r.Bb([{provide:o.d,useExisting:t},{provide:a.g,useExisting:t}]),r.zb],ngContentSelectors:L,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[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.kc(j),r.Tb(0,"div",0,1),r.bc("click",function(){return e.toggle()}),r.Tb(3,"div",2),r.Dc(4,A,2,1,"span",3),r.Dc(5,T,3,2,"span",4),r.Sb(),r.Tb(6,"div",5),r.Ob(7,"div",6),r.Sb(),r.Sb(),r.Dc(8,R,4,14,"ng-template",7),r.bc("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=r.sc(1);r.Db("aria-owns",e.panelOpen?e.id+"-panel":null),r.Cb(3),r.lc("ngSwitch",e.empty),r.Db("id",e._valueId),r.Cb(1),r.lc("ngSwitchCase",!0),r.Cb(1),r.lc("ngSwitchCase",!1),r.Cb(3),r.lc("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.b,s.o,s.p,n.a,s.q,s.k],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[N.transformPanelWrap,N.transformPanel]},changeDetection:0}),t})();const W=r.Vb($);let K=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},providers:[z],imports:[[s.c,n.f,a.n,a.i],l.b,o.e,a.n,a.i]}),t})()},dNgK:function(t,e,i){"use strict";i.d(e,"a",function(){return E}),i.d(e,"b",function(){return S});var n=i("rDax"),s=i("+rOU"),r=i("ofXK"),a=i("fXoL"),o=i("FKr1"),l=i("bTqV"),c=i("XNiG"),h=i("IzEk"),u=i("1G5W"),d=i("R0Ic"),p=i("u47x"),m=i("0MNC"),f=i("nLfN");function g(t,e){if(1&t){const t=a.Ub();a.Tb(0,"div",1),a.Tb(1,"button",2),a.bc("click",function(){return a.uc(t),a.fc().action()}),a.Ec(2),a.Sb(),a.Sb()}if(2&t){const t=a.fc();a.Cb(2),a.Fc(t.data.action)}}function b(t,e){}const _=new a.s("MatSnackBarData");class y{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const v=Math.pow(2,31)-1;class w{constructor(t,e){this._overlayRef=e,this._afterDismissed=new c.a,this._afterOpened=new c.a,this._onAction=new c.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,v))}_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 x=(()=>{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)(a.Nb(w),a.Nb(_))},t.\u0275cmp=a.Hb({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&&(a.Tb(0,"span"),a.Ec(1),a.Sb(),a.Dc(2,g,3,1,"div",0)),2&t&&(a.Cb(1),a.Fc(e.data.message),a.Cb(1),a.lc("ngIf",e.hasAction))},directives:[r.m,l.b],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 C={snackBarState:Object(d.m)("state",[Object(d.j)("void, hidden",Object(d.k)({transform:"scale(0.8)",opacity:0})),Object(d.j)("visible",Object(d.k)({transform:"scale(1)",opacity:1})),Object(d.l)("* => visible",Object(d.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(d.l)("* => void, * => hidden",Object(d.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(d.k)({opacity:0})))])};let k=(()=>{class t extends s.a{constructor(t,e,i,n,s){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this._platform=n,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new c.a,this._onExit=new c.a,this._onEnter=new c.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive"}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:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),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()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let i=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(i=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),null==i||i.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.B),a.Nb(a.l),a.Nb(a.h),a.Nb(f.a),a.Nb(y))},t.\u0275cmp=a.Hb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&a.zc(s.c,!0),2&t){let t;a.rc(t=a.cc())&&(e._portalOutlet=t.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&a.Bc("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&a.Cc("@state",e._animationState)},features:[a.zb],decls:3,vars:1,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(a.Tb(0,"div",0),a.Dc(1,b,0,0,"ng-template",1),a.Sb(),a.Ob(2,"div")),2&t&&(a.Cb(2),a.Db("aria-live",e._live))},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:[C.snackBarState]}}),t})(),S=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},imports:[[n.f,s.g,r.c,l.c,o.i],o.i]}),t})();const O=new a.s("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new y}});let E=(()=>{class t{constructor(t,e,i,n,s,r){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=s,this._defaultConfig=r,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=x,this.snackBarContainerComponent=k,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="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage===t&&(n.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=a.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),n=new s.d(this.snackBarContainerComponent,e.viewContainerRef,i),r=t.attach(n);return r.instance.snackBarConfig=e,r.instance}_attach(t,e){const i=Object.assign(Object.assign(Object.assign({},new y),this._defaultConfig),e),n=this._createOverlay(i),r=this._attachSnackBarContainer(n,i),o=new w(r,n);if(t instanceof a.N){const e=new s.h(t,null,{$implicit:i.data,snackBarRef:o});o.instance=r.attachTemplatePortal(e)}else{const e=this._createInjector(i,o),n=new s.d(t,void 0,e),a=r.attachComponentPortal(n);o.instance=a.instance}return this._breakpointObserver.observe(m.b.HandsetPortrait).pipe(Object(u.a)(n.detachments())).subscribe(t=>{const e=n.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),i.announcementMessage&&r._onAnnounce.subscribe(()=>{this._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(o,i),this._openedSnackBarRef=o,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))}_createOverlay(t){const e=new n.d;e.direction=t.direction;let i=this._overlay.position().global();const s="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!s||"end"===t.horizontalPosition&&s,a=!r&&"center"!==t.horizontalPosition;return r?i.left("0"):a?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}_createInjector(t,e){return a.t.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:w,useValue:e},{provide:_,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(a.Xb(n.c),a.Xb(p.k),a.Xb(a.t),a.Xb(m.a),a.Xb(t,12),a.Xb(O))},t.\u0275prov=Object(a.Jb)({factory:function(){return new t(Object(a.Xb)(n.c),Object(a.Xb)(p.k),Object(a.Xb)(a.p),Object(a.Xb)(m.a),Object(a.Xb)(t,12),Object(a.Xb)(O))},token:t,providedIn:S}),t})()},e1Vu:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return RPN});const RPNOperators=["+","-","*","/","(",")"];function RPNOperationPriority(t){let e=0;switch(t){case"+":case"-":e=1;break;case"*":case"/":e=2;break;case"(":case")":e=0;break;default:throw new Error("Unsupported operator!")}return e}function RPNGetOperatorResult(t,e,i){let n=0;switch(i){case"+":n=t+e;break;case"-":n=t-e;break;case"*":n=t*e;break;case"/":try{n=t/e}catch(s){throw s}break;default:throw new Error("Operation has no result")}return n}function rpn1(strinputs){if(0===strinputs.length)return 0;let arinputs=strinputs.split(/(\d)/),stack=[];for(var i=0;i1)throw new Error("Inputted expression has too many values.");return stack.pop()}class RPN{constructor(){this._arInputs=[]}get InputArray(){return this._arInputs}toString(){return this._arInputs.join(" ")}buildExpress(t){let e=new Array,i="";for(let s=0;s=0){for(i.length>0&&(this._arInputs.push(i),i="");e.length>0;){if("("===(n=e.pop())||RPNOperationPriority(n)0&&(this._arInputs.push(i),i="");e.length>0&&"("!==(n=e.pop());)this._arInputs.push(n)}else i+=r}for(i.length>0&&this._arInputs.push(i);e.length>0;){var n=e.pop();this._arInputs.push(n)}return this._arInputs.toString()}WorkoutResult(){let t=new Array,e=0;for(let n=0;ni.pipe(a((i,r)=>Object(s.a)(t(i,r)).pipe(Object(n.a)((t,n)=>e(i,t,r,n))))):e=>e.lift(new o(t))}class o{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.b{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new r.a(this),n=this.destination;n.add(i),this.innerSubscription=Object(r.c)(t,i),this.innerSubscription!==i&&n.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},eNwd:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("3N8a");class s extends n.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var r=i("IjjT");class a extends r.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(n.c)(t)}get inset(){return this._inset}set inset(t){this._inset=Object(n.c)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(r.Db("aria-orientation",e.vertical?"vertical":"horizontal"),r.Fb("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),o=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.i],s.i]}),t})()},f6nW:function(t,e,i){"use strict";i.d(e,"a",function(){return x}),i.d(e,"b",function(){return j}),i.d(e,"c",function(){return k}),i.d(e,"d",function(){return q}),i.d(e,"e",function(){return D}),i.d(e,"f",function(){return R}),i.d(e,"g",function(){return O}),i.d(e,"h",function(){return W}),i.d(e,"i",function(){return U}),i.d(e,"j",function(){return T}),i.d(e,"k",function(){return S}),i.d(e,"l",function(){return $}),i.d(e,"m",function(){return z}),i.d(e,"n",function(){return G}),i.d(e,"o",function(){return K}),i.d(e,"p",function(){return X}),i.d(e,"q",function(){return it}),i.d(e,"r",function(){return rt}),i.d(e,"s",function(){return st}),i.d(e,"t",function(){return Z}),i.d(e,"u",function(){return tt}),i.d(e,"v",function(){return J}),i.d(e,"w",function(){return et}),i.d(e,"x",function(){return N}),i.d(e,"y",function(){return P});var n=i("8LU1"),s=i("0EQZ"),r=i("fXoL"),a=i("cH1L"),o=i("nLfN"),l=i("vxfF"),c=i("ofXK"),h=i("XNiG"),u=i("Cfvw"),d=i("2Vo4"),p=i("7+OI"),m=i("LRne"),f=i("1G5W"),g=i("IzEk");const b=[[["caption"]],[["colgroup"],["col"]]],_=["caption","colgroup, col"];function y(t,e){if(1&t&&(r.Tb(0,"th",3),r.Ec(1),r.Sb()),2&t){const t=r.fc();r.Ac("text-align",t.justify),r.Cb(1),r.Gc(" ",t.headerText," ")}}function v(t,e){if(1&t&&(r.Tb(0,"td",4),r.Ec(1),r.Sb()),2&t){const t=e.$implicit,i=r.fc();r.Ac("text-align",i.justify),r.Cb(1),r.Gc(" ",i.dataAccessor(t,i.name)," ")}}function w(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Object(n.c)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const x=new r.s("CDK_TABLE"),C=new r.s("text-column-options");let k=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkCellDef",""]]}),t})(),S=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),O=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class E{}const A=w(E);let D=(()=>{class t extends A{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(n.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.Nb(x,8))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(r.Gb(i,k,!0),r.Gb(i,S,!0),r.Gb(i,O,!0)),2&t){let t;r.rc(t=r.cc())&&(e.cell=t.first),r.rc(t=r.cc())&&(e.headerCell=t.first),r.rc(t=r.cc())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[r.Bb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),r.zb]}),t})();class I{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let T=(()=>{class t extends I{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(D),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[r.zb]}),t})(),R=(()=>{class t extends I{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(D),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[r.zb]}),t})(),j=(()=>{class t extends I{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(D),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[r.zb]}),t})();class L{constructor(){this.tasks=[],this.endTasks=[]}}const N=new r.s("_COALESCED_STYLE_SCHEDULER");let P=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new h.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 L,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 L;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Object(u.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(g.a)(1))}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.B))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),F=(()=>{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 z?t.headerCell.template:this instanceof U?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N),r.Nb(r.u))},t.\u0275dir=r.Ib({type:t,features:[r.Ab]}),t})();class M extends F{}const V=w(M);let z=(()=>{class t extends V{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N),r.Nb(r.u),r.Nb(x,8))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[r.zb,r.Ab]}),t})();class B extends F{}const H=w(B);let U=(()=>{class t extends H{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N),r.Nb(r.u),r.Nb(x,8))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[r.zb,r.Ab]}),t})(),X=(()=>{class t extends F{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N),r.Nb(r.u),r.Nb(x,8))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[r.zb]}),t})(),q=(()=>{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.Nb(r.R))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({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.Pb(0,0)},directives:[q],encapsulation:2}),t})(),W=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({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.Pb(0,0)},directives:[q],encapsulation:2}),t})(),K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({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.Pb(0,0)},directives:[q],encapsulation:2}),t})(),G=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N))},t.\u0275dir=r.Ib({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const Y=["top","bottom","left","right"];class Q{constructor(t,e,i,n,s=!0,r=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._cachedCellWidths=[]}clearStickyPositioning(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return;const s=t[0],r=s.children.length,a=this._getCellWidths(s,n),o=this._getStickyStartColumnPositions(a,e),l=this._getStickyEndColumnPositions(a,i);this._scheduleStyleChanges(()=>{const n="rtl"===this.direction,s=n?"right":"left",a=n?"left":"right";for(const c of t)for(let t=0;t{for(let t=0;t{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="";Y.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i){t.classList.add(this._stickCellCss),t.style[e]=i+"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 i=0;for(const n of Y)t.style[n]&&(i+=e[n]);return i?""+i:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}let Z=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.R),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["","rowOutlet",""]]}),t})(),J=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.R),r.Nb(r.l))},t.\u0275dir=r.Ib({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.Nb(r.R),r.Nb(r.l))},t.\u0275dir=r.Ib({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.Nb(r.R),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),it=(()=>{class t{constructor(t,e,i,n,s,r,a,o,l,c){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=a,this._viewRepeater=o,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._onDestroy=new h.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._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new d.a({start:0,end:Number.MAX_VALUE}),n||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(n.c)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=Object(n.c)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler&&this._viewportRuler.change().pipe(Object(f.a)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),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,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,n,{$implicit:e.data})}else if(null==n)e.remove(i);else{const t=e.get(i);e.move(t,n)}}),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}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"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 i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{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 i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),nt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=nt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=nt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=nt(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 i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_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(p.a)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(m.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 i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))q.mostRecentCellOutlet&&q.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_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 i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.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._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Q(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Object(m.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(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.u),r.Nb(r.h),r.Nb(r.l),r.Yb("role"),r.Nb(a.b,8),r.Nb(c.d),r.Nb(o.a),r.Nb(s.g,8),r.Nb(N,8),r.Nb(l.e,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(r.Gb(i,G,!0),r.Gb(i,D,!0),r.Gb(i,X,!0),r.Gb(i,z,!0),r.Gb(i,U,!0)),2&t){let t;r.rc(t=r.cc())&&(e._noDataRow=t.first),r.rc(t=r.cc())&&(e._contentColumnDefs=t),r.rc(t=r.cc())&&(e._contentRowDefs=t),r.rc(t=r.cc())&&(e._contentHeaderRowDefs=t),r.rc(t=r.cc())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(r.zc(Z,!0),r.zc(J,!0),r.zc(tt,!0),r.zc(et,!0)),2&t){let t;r.rc(t=r.cc())&&(e._rowOutlet=t.first),r.rc(t=r.cc())&&(e._headerRowOutlet=t.first),r.rc(t=r.cc())&&(e._footerRowOutlet=t.first),r.rc(t=r.cc())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&r.Fb("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[r.Bb([{provide:x,useExisting:t},{provide:s.g,useClass:s.e},{provide:N,useClass:P}])],ngContentSelectors:_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(r.kc(b),r.jc(0),r.jc(1,1),r.Pb(2,0),r.Pb(3,1),r.Pb(4,2),r.Pb(5,3))},directives:[J,Z,et,tt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function nt(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.Nb(it,8),r.Nb(C,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["cdk-text-column"]],viewQuery:function(t,e){if(1&t&&(r.zc(D,!0),r.zc(k,!0),r.zc(S,!0)),2&t){let t;r.rc(t=r.cc())&&(e.columnDef=t.first),r.rc(t=r.cc())&&(e.cell=t.first),r.rc(t=r.cc())&&(e.headerCell=t.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.Rb(0,0),r.Dc(1,y,2,3,"th",1),r.Dc(2,v,2,3,"td",2),r.Qb())},directives:[D,S,k,T,j],encapsulation:2}),t})(),rt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[l.d]]}),t})()},fXoL:function(t,e,i){"use strict";i.d(e,"a",function(){return ci}),i.d(e,"b",function(){return nc}),i.d(e,"c",function(){return Zl}),i.d(e,"d",function(){return Yl}),i.d(e,"e",function(){return Ql}),i.d(e,"f",function(){return Zc}),i.d(e,"g",function(){return zc}),i.d(e,"h",function(){return Bo}),i.d(e,"i",function(){return mc}),i.d(e,"j",function(){return mo}),i.d(e,"k",function(){return ac}),i.d(e,"l",function(){return _o}),i.d(e,"m",function(){return Kc}),i.d(e,"n",function(){return On}),i.d(e,"o",function(){return Ol}),i.d(e,"p",function(){return mr}),i.d(e,"q",function(){return yi}),i.d(e,"r",function(){return O}),i.d(e,"s",function(){return li}),i.d(e,"t",function(){return Ir}),i.d(e,"u",function(){return No}),i.d(e,"v",function(){return Po}),i.d(e,"w",function(){return rc}),i.d(e,"x",function(){return Zo}),i.d(e,"y",function(){return Hc}),i.d(e,"z",function(){return Qo}),i.d(e,"A",function(){return Nc}),i.d(e,"B",function(){return bc}),i.d(e,"C",function(){return vi}),i.d(e,"D",function(){return ic}),i.d(e,"E",function(){return ec}),i.d(e,"F",function(){return Al}),i.d(e,"G",function(){return vo}),i.d(e,"H",function(){return yo}),i.d(e,"I",function(){return Tn}),i.d(e,"J",function(){return xo}),i.d(e,"K",function(){return yn}),i.d(e,"L",function(){return xi}),i.d(e,"M",function(){return qc}),i.d(e,"N",function(){return Wo}),i.d(e,"O",function(){return kc}),i.d(e,"P",function(){return hi}),i.d(e,"Q",function(){return Co}),i.d(e,"R",function(){return tl}),i.d(e,"S",function(){return R}),i.d(e,"T",function(){return Pc}),i.d(e,"U",function(){return b}),i.d(e,"V",function(){return jc}),i.d(e,"W",function(){return p}),i.d(e,"X",function(){return Ti}),i.d(e,"Y",function(){return Rc}),i.d(e,"Z",function(){return Yc}),i.d(e,"ab",function(){return Ec}),i.d(e,"bb",function(){return sc}),i.d(e,"cb",function(){return gr}),i.d(e,"db",function(){return Ja}),i.d(e,"eb",function(){return bn}),i.d(e,"fb",function(){return Ji}),i.d(e,"gb",function(){return Hi}),i.d(e,"hb",function(){return Xi}),i.d(e,"ib",function(){return Ki}),i.d(e,"jb",function(){return $i}),i.d(e,"kb",function(){return qi}),i.d(e,"lb",function(){return Wi}),i.d(e,"mb",function(){return Ga}),i.d(e,"nb",function(){return Gc}),i.d(e,"ob",function(){return Ya}),i.d(e,"pb",function(){return Qa}),i.d(e,"qb",function(){return Ui}),i.d(e,"rb",function(){return F}),i.d(e,"sb",function(){return zr}),i.d(e,"tb",function(){return oa}),i.d(e,"ub",function(){return aa}),i.d(e,"vb",function(){return Ka}),i.d(e,"wb",function(){return Ot}),i.d(e,"xb",function(){return h}),i.d(e,"yb",function(){return Bi}),i.d(e,"zb",function(){return Rr}),i.d(e,"Ab",function(){return yt}),i.d(e,"Bb",function(){return ho}),i.d(e,"Cb",function(){return bs}),i.d(e,"Db",function(){return qr}),i.d(e,"Eb",function(){return Ha}),i.d(e,"Fb",function(){return Ea}),i.d(e,"Gb",function(){return Hl}),i.d(e,"Hb",function(){return K}),i.d(e,"Ib",function(){return et}),i.d(e,"Jb",function(){return g}),i.d(e,"Kb",function(){return _}),i.d(e,"Lb",function(){return Z}),i.d(e,"Mb",function(){return it}),i.d(e,"Nb",function(){return Gr}),i.d(e,"Ob",function(){return ea}),i.d(e,"Pb",function(){return sa}),i.d(e,"Qb",function(){return na}),i.d(e,"Rb",function(){return ia}),i.d(e,"Sb",function(){return ta}),i.d(e,"Tb",function(){return Jr}),i.d(e,"Ub",function(){return ra}),i.d(e,"Vb",function(){return si}),i.d(e,"Wb",function(){return Ua}),i.d(e,"Xb",function(){return Ii}),i.d(e,"Yb",function(){return ri}),i.d(e,"Zb",function(){return Gl}),i.d(e,"ac",function(){return Yr}),i.d(e,"bc",function(){return la}),i.d(e,"cc",function(){return ql}),i.d(e,"dc",function(){return we}),i.d(e,"ec",function(){return ve}),i.d(e,"fc",function(){return pa}),i.d(e,"gc",function(){return wl}),i.d(e,"hc",function(){return xl}),i.d(e,"ic",function(){return Cl}),i.d(e,"jc",function(){return ga}),i.d(e,"kc",function(){return fa}),i.d(e,"lc",function(){return Qr}),i.d(e,"mc",function(){return ba}),i.d(e,"nc",function(){return _a}),i.d(e,"oc",function(){return fl}),i.d(e,"pc",function(){return gl}),i.d(e,"qc",function(){return bl}),i.d(e,"rc",function(){return Ml}),i.d(e,"sc",function(){return Kr}),i.d(e,"tc",function(){return Dn}),i.d(e,"uc",function(){return $t}),i.d(e,"vc",function(){return vn}),i.d(e,"wc",function(){return wn}),i.d(e,"xc",function(){return J}),i.d(e,"yc",function(){return Ul}),i.d(e,"zc",function(){return Vl}),i.d(e,"Ac",function(){return Oa}),i.d(e,"Bc",function(){return ca}),i.d(e,"Cc",function(){return Xa}),i.d(e,"Dc",function(){return Wr}),i.d(e,"Ec",function(){return Ma}),i.d(e,"Fc",function(){return Va}),i.d(e,"Gc",function(){return za}),i.d(e,"Hc",function(){return Ba}),i.d(e,"Ic",function(){return zl});var n=i("XNiG"),s=i("quSY"),r=i("HDdC"),a=i("VRyK"),o=i("w1tV");function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function h(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(h).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 i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function u(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return h(this())},t}function m(t){return f(t)?t():t}function f(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}function g(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const b=g;function _(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function y(t){return v(t,x)||v(t,k)}function v(t,e){return t.hasOwnProperty(e)?t[e]:null}function w(t){return t&&(t.hasOwnProperty(C)||t.hasOwnProperty(S))?t[C]:null}const x=l({"\u0275prov":l}),C=l({"\u0275inj":l}),k=l({ngInjectableDef:l}),S=l({ngInjectorDef:l});var O=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let E;function A(t){const e=E;return E=t,e}function D(t,e,i){const n=y(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(i&O.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${h(t)}]`)}function I(t){return{toString:t}.toString()}var T=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),R=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const j="undefined"!=typeof globalThis&&globalThis,L="undefined"!=typeof window&&window,N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,P="undefined"!=typeof global&&global,F=j||P||L||N,M={},V=[],z=l({"\u0275cmp":l}),B=l({"\u0275dir":l}),H=l({"\u0275pipe":l}),U=l({"\u0275mod":l}),X=l({"\u0275loc":l}),q=l({"\u0275fac":l}),$=l({__NG_ELEMENT_ID__:l});let W=0;function K(t){return I(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===T.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||V,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||R.Emulated,id:"c",styles:t.styles||V,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,r=t.pipes;return i.id+=W++,i.inputs=tt(t.inputs,e),i.outputs=tt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(G):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(Y):null,i})}function G(t){return nt(t)||function(t){return t[B]||null}(t)}function Y(t){return function(t){return t[H]||null}(t)}const Q={};function Z(t){const e={type:t.type,bootstrap:t.bootstrap||V,declarations:t.declarations||V,imports:t.imports||V,exports:t.exports||V,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&I(()=>{Q[t.id]=t.type}),e}function J(t,e){return I(()=>{const i=st(t,!0);i.declarations=e.declarations||V,i.imports=e.imports||V,i.exports=e.exports||V})}function tt(t,e){if(null==t)return M;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),i[s]=n,e&&(e[s]=r)}return i}const et=K;function it(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function nt(t){return t[z]||null}function st(t,e){const i=t[U]||null;if(!i&&!0===e)throw new Error(`Type ${h(t)} does not have '\u0275mod' property.`);return i}const rt=20,at=10;function ot(t){return Array.isArray(t)&&"object"==typeof t[1]}function lt(t){return Array.isArray(t)&&!0===t[1]}function ct(t){return 0!=(8&t.flags)}function ht(t){return 2==(2&t.flags)}function ut(t){return 1==(1&t.flags)}function dt(t){return null!==t.template}function pt(t,e){return t.hasOwnProperty(q)?t[q]:null}class mt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ft(t){return"string"==typeof t?t:null==t?"":String(t)}function gt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ft(t)}function bt(t,e){const i=e?" in "+e:"";throw new mt("201",`No provider for ${gt(t)} found${i}`)}class _t{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function yt(){return vt}function vt(t){return t.type.prototype.ngOnChanges&&(t.setInput=xt),wt}function wt(){const t=Ct(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===M)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function xt(t,e,i,n){const s=Ct(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:M,current:null}),r=s.current||(s.current={}),a=s.previous,o=this.declaredInputs[i],l=a[o];r[o]=new _t(l&&l.currentValue,e,a===M),t[n]=e}function Ct(t){return t.__ngSimpleChanges__||null}yt.ngInherit=!0;const kt="http://www.w3.org/2000/svg";let St=void 0;function Ot(t){St=t}function Et(){return void 0!==St?St:"undefined"!=typeof document?document:void 0}function At(t){return!!t.listen}const Dt={createRenderer:(t,e)=>Et()};function It(t){for(;Array.isArray(t);)t=t[0];return t}function Tt(t,e){return It(e[t])}function Rt(t,e){return It(e[t.index])}function jt(t,e){return t.data[e]}function Lt(t,e){return t[e]}function Nt(t,e){const i=e[t];return ot(i)?i:i[0]}function Pt(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ft(t){return 4==(4&t[2])}function Mt(t){return 128==(128&t[2])}function Vt(t,e){return null==e?null:t[e]}function zt(t){t[18]=0}function Bt(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Ht={lFrame:pe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ut(){return Ht.bindingsEnabled}function Xt(){return Ht.lFrame.lView}function qt(){return Ht.lFrame.tView}function $t(t){Ht.lFrame.contextLView=t}function Wt(){let t=Kt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Kt(){return Ht.lFrame.currentTNode}function Gt(t,e){const i=Ht.lFrame;i.currentTNode=t,i.isParent=e}function Yt(){return Ht.lFrame.isParent}function Qt(){Ht.lFrame.isParent=!1}function Zt(){return Ht.isInCheckNoChangesMode}function Jt(t){Ht.isInCheckNoChangesMode=t}function te(){const t=Ht.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ee(){return Ht.lFrame.bindingIndex}function ie(){return Ht.lFrame.bindingIndex++}function ne(t){const e=Ht.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function se(t,e){const i=Ht.lFrame;i.bindingIndex=i.bindingRootIndex=t,re(e)}function re(t){Ht.lFrame.currentDirectiveIndex=t}function ae(t){const e=Ht.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function oe(){return Ht.lFrame.currentQueryIndex}function le(t){Ht.lFrame.currentQueryIndex=t}function ce(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,i){if(i&O.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&O.Host||(n=ce(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Ht.lFrame=de();return n.currentTNode=e,n.lView=t,!0}function ue(t){const e=de(),i=t[1];Ht.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function de(){const t=Ht.lFrame,e=null===t?null:t.child;return null===e?pe(t):e}function pe(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function me(){const t=Ht.lFrame;return Ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const fe=me;function ge(){const t=me();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function be(){return Ht.lFrame.selectedIndex}function _e(t){Ht.lFrame.selectedIndex=t}function ye(){const t=Ht.lFrame;return jt(t.tView,t.selectedIndex)}function ve(){Ht.lFrame.currentNamespace=kt}function we(){Ht.lFrame.currentNamespace=null}function xe(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(a)):r.call(a)}const Ae=-1;class De{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ie(t,e,i){const n=At(t);let s=0;for(;se){a=r-1;break}}}for(;r>16,n=e;for(;i>0;)n=n[15],i--;return n}let Me=!0;function Ve(t){const e=Me;return Me=t,e}let ze=0;function Be(t,e){const i=Ue(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,He(n.data,t),He(e,null),He(n.blueprint,null));const s=Xe(t,e),r=t.injectorIndex;if(Ne(s)){const t=Pe(s),i=Fe(s,e),n=i[1].data;for(let s=0;s<8;s++)e[r+s]=i[t+s]|n[t+s]}return e[r+8]=s,r}function He(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ue(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Xe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return Ae;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return Ae}function qe(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty($)&&(n=i[$]),null==n&&(n=i[$]=ze++);const s=255&n,r=1<=0?255&e:Ye:e}(i);if("function"==typeof r){if(!he(e,t,n))return n&O.Host?$e(s,i,n):We(e,i,n,s);try{const t=r();if(null!=t||n&O.Optional)return t;bt(i)}finally{fe()}}else if("number"==typeof r){let s=null,a=Ue(t,e),o=Ae,l=n&O.Host?e[16][6]:null;for((-1===a||n&O.SkipSelf)&&(o=-1===a?Xe(t,e):e[a+8],o!==Ae&&ei(n,!1)?(s=e[1],a=Pe(o),e=Fe(o,e)):a=-1);-1!==a;){const t=e[1];if(ti(r,a,t.data)){const t=Qe(a,e,i,s,n,l);if(t!==Ge)return t}o=e[a+8],o!==Ae&&ei(n,e[1].data[a+8]===l)&&ti(r,a,e)?(s=t,a=Pe(o),e=Fe(o,e)):a=-1}}}return We(e,i,n,s)}const Ge={};function Ye(){return new ii(Wt(),Xt())}function Qe(t,e,i,n,s,r){const a=e[1],o=a.data[t+8],l=Ze(o,a,i,null==n?ht(o)&&Me:n!=a&&0!=(3&o.type),s&O.Host&&r===o);return null!==l?Je(e,a,l,o):Ge}function Ze(t,e,i,n,s){const r=t.providerIndexes,a=e.data,o=1048575&r,l=t.directiveStart,c=r>>20,h=s?o+c:t.directiveEnd;for(let u=n?o:o+c;u=l&&t.type===i)return u}if(s){const t=a[l];if(t&&dt(t)&&t.type===i)return l}return null}function Je(t,e,i,n){let s=t[i];const r=e.data;if(s instanceof De){const a=s;a.resolving&&function(t,e){throw new mt("200","Circular dependency in DI detected for "+t)}(gt(r[i]));const o=Ve(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?A(a.injectImpl):null;he(t,n,O.Default);try{s=t[i]=a.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(n){const n=vt(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),r&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,r),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,r))}(i,r[i],e)}finally{null!==l&&A(l),Ve(o),a.resolving=!1,fe()}}return s}function ti(t,e,i){const n=64&t,s=32&t;let r;return r=128&t?n?s?i[e+7]:i[e+6]:s?i[e+5]:i[e+4]:n?s?i[e+3]:i[e+2]:s?i[e+1]:i[e],!!(r&1<{const t=ni(m(e));return t?t():null};let i=pt(e);if(null===i){const t=w(e);i=t&&t.factory}return i||null}function si(t){return I(()=>{const e=t.prototype.constructor,i=e[q]||ni(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[q]||ni(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function ri(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty(ai)?t[ai]:Object.defineProperty(t,ai,{value:[]})[ai];for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class li{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=g({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const ci=new li("AnalyzeForEntryComponents"),hi=Function;function ui(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?di(t,e):e(t))}function pi(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function mi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function fi(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function bi(t,e){const i=_i(t,e);if(i>=0)return t[1|i]}function _i(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),r=t[i<<1];if(e===r)return i<<1;r>e?s=i:n=i+1}return~(s<<1)}(t,e)}const yi=oi("Inject",t=>({token:t})),vi=oi("Optional"),wi=oi("Self"),xi=oi("SkipSelf"),Ci={},ki=/\n/gm,Si="__source",Oi=l({provide:String,useValue:l});let Ei=void 0;function Ai(t){const e=Ei;return Ei=t,e}function Di(t,e=O.Default){if(void 0===Ei)throw new Error("inject() must be called from an injection context");return null===Ei?D(t,void 0,e):Ei.get(t,e&O.Optional?null:void 0,e)}function Ii(t,e=O.Default){return(E||Di)(m(t),e)}const Ti=Ii;function Ri(t){const e=[];for(let i=0;it,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ji}())||void 0===e?void 0:e.createHTML(t))||t}class Ni{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class Pi extends Ni{getTypeName(){return"HTML"}}class Fi extends Ni{getTypeName(){return"Style"}}class Mi extends Ni{getTypeName(){return"Script"}}class Vi extends Ni{getTypeName(){return"URL"}}class zi extends Ni{getTypeName(){return"ResourceURL"}}function Bi(t){return t instanceof Ni?t.changingThisBreaksApplicationSecurity:t}function Hi(t,e){const i=Ui(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Ui(t){return t instanceof Ni&&t.getTypeName()||null}function Xi(t){return new Pi(t)}function qi(t){return new Fi(t)}function $i(t){return new Mi(t)}function Wi(t){return new Vi(t)}function Ki(t){return new zi(t)}class Gi{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Li(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Yi{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=Li(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Li(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Ji(t.trim())).join(", ")),this.buf.push(" ",e,'="',fn(a),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();on.hasOwnProperty(e)&&!nn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(fn(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 pn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mn=/([^\#-~ |!])/g;function fn(t){return t.replace(/&/g,"&").replace(pn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(mn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let gn;function bn(t,e){let i=null;try{gn=gn||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(Li(""),"text/html")}catch(t){return!1}}()?new Gi:new Yi(t)}(t);let n=e?String(e):"";i=gn.getInertBodyElement(n);let s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=r,r=i.innerHTML,i=gn.getInertBodyElement(n)}while(n!==r);return(new dn).sanitizeChildren(_n(i)||i)}finally{if(i){const t=_n(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function _n(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var yn=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 vn(t){const e=xn();return e?e.sanitize(yn.HTML,t)||"":Hi(t,"HTML")?Bi(t):bn(Et(),ft(t))}function wn(t){const e=xn();return e?e.sanitize(yn.URL,t)||"":Hi(t,"URL")?Bi(t):Ji(ft(t))}function xn(){const t=Xt();return t&&t[12]}function Cn(t){return t.ngDebugContext}function kn(t){return t.ngOriginalError}function Sn(t,...e){t.error(...e)}class On{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||Sn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?Cn(t)?Cn(t):this._findContext(kn(t)):null}_findOriginalError(t){let e=kn(t);for(;e&&kn(e);)e=kn(e);return e}}function En(t,e){t.__ngContext__=e}const An=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function Dn(t){return{name:"body",target:t.ownerDocument.body}}function In(t){return t instanceof Function?t():t}var Tn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Rn(t,e){return(void 0)(t,e)}function jn(t){const e=t[3];return lt(e)?e[3]:e}function Ln(t){return Pn(t[13])}function Nn(t){return Pn(t[4])}function Pn(t){for(;null!==t&&!lt(t);)t=t[4];return t}function Fn(t,e,i,n,s){if(null!=n){let r,a=!1;lt(n)?r=n:ot(n)&&(a=!0,n=n[0]);const o=It(n);0===t&&null!==i?null==s?qn(e,i,o):Xn(e,i,o,s||null,!0):1===t&&null!==i?Xn(e,i,o,s||null,!0):2===t?function(t,e,i){const n=Wn(t,e);n&&function(t,e,i,n){At(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,o,a):3===t&&e.destroyNode(o),null!=r&&function(t,e,i,n,s){const r=i[7];r!==It(i)&&Fn(e,t,n,r,s);for(let a=at;a0&&(t[i-1][4]=n[4]);const a=mi(t,at+e);ts(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const o=a[19];null!==o&&o.detachView(a[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Bn(t,e){if(!(256&e[2])){const i=e[11];At(i)&&i.destroyNode&&ts(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Hn(t[1],t);for(;e;){let i=null;if(ot(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ot(e)&&Hn(e[1],e),e=e[3];null===e&&(e=t),ot(e)&&Hn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Hn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=l]():n[s=-l].unsubscribe(),t+=2}else{const e=n[s=i[t+1]];i[t].call(e)}if(null!==n)for(let t=s+1;tr?"":s[h+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==ss(e,c,0)||2&n&&c!==t){if(hs(n))return!1;a=!0}}}}else{if(!a&&!hs(n)&&!hs(l))return!1;if(a&&hs(l))continue;a=!1,n=l|1&n}}return hs(n)||a}function hs(t){return 0==(1&t)}function us(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+a:4&n&&(s+=" "+a);else""===s||hs(a)||(e+=ms(r,s),s=""),n=a,r=r||!hs(n);i++}return""!==s&&(e+=ms(r,s)),e}const gs={};function bs(t){_s(qt(),Xt(),be()+t,Zt())}function _s(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&Ce(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ke(e,n,0,i)}_e(i)}function ys(t,e){return t<<17|e<<2}function vs(t){return t>>17&32767}function ws(t){return 2|t}function xs(t){return(131068&t)>>2}function Cs(t,e){return-131069&t|e<<2}function ks(t){return 1|t}function Ss(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;nrt&&_s(t,e,rt,Zt()),i(n,s)}finally{_e(r)}}function js(t,e,i){if(ct(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=r&&i.push(r),i.push(n,s,a)}}function Us(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Xs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function qs(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Js(i)}}function Js(t){for(let i=Ln(t);null!==i;i=Nn(i))for(let t=at;t0&&Js(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Js(n)}}function tr(t,e){const i=Nt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function or(t){return t[7]||(t[7]=[])}function lr(t){return t.cleanup||(t.cleanup=[])}function cr(t,e,i){return(null===t||dt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function hr(t,e){const i=t[9],n=i?i.get(On,null):null;n&&n.handleError(e)}function ur(t,e,i,n,s){for(let r=0;rthis.processProvider(i,t,e)),di([t],t=>this.processInjectorType(t,[],s)),this.records.set(mr,Or(void 0,this));const r=this.records.get(gr);this.scope=null!=r?r.value:null,this.source=n||("object"==typeof t?null:h(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=Ci,i=O.Default){this.assertNotDestroyed();const n=Ai(this);try{if(!(i&O.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof li)&&y(t);e=i&&this.injectableDefInScope(i)?Or(kr(t),br):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&O.Self?wr():this.parent).get(t,e=i&O.Optional&&e===Ci?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(h(t)),n)throw r;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e[Si]&&s.unshift(e[Si]),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=h(e);if(Array.isArray(e))s=e.map(h).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):h(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(ki,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Ai(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(h(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=m(t)))return!1;let n=w(t);const s=null==n&&t.ngModule||void 0,r=void 0===s?t:s,a=-1!==i.indexOf(r);if(void 0!==s&&(n=w(s)),null==n)return!1;if(null!=n.imports&&!a){let t;i.push(r);try{di(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||yr))}}this.injectorDefTypes.add(r),this.records.set(r,Or(n.factory,br));const o=n.providers;if(null!=o&&!a){const e=t;di(o,t=>this.processProvider(t,e,o))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=Ar(t=m(t))?t:m(t&&t.provide);const s=function(t,e,i){return Er(t)?Or(void 0,t.useValue):Or(Sr(t),br)}(t);if(Ar(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Or(void 0,br,!0),e.factory=()=>Ri(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===br&&(e.value=_r,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.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 kr(t){const e=y(t),i=null!==e?e.factory:pt(t);if(null!==i)return i;const n=w(t);if(null!==n)return n.factory;if(t instanceof li)throw new Error(`Token ${h(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=fi(e,"?");throw new Error(`Can't resolve all parameters for ${h(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[x]||t[k]);if(e){const i=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 "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function Sr(t,e,i){let n=void 0;if(Ar(t)){const e=m(t);return pt(e)||kr(e)}if(Er(t))n=()=>m(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...Ri(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>Ii(m(t.useExisting));else{const e=m(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return pt(e)||kr(e);n=()=>new e(...Ri(t.deps))}var s;return n}function Or(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Er(t){return null!==t&&"object"==typeof t&&Oi in t}function Ar(t){return"function"==typeof t}const Dr=function(t,e,i){return function(t,e=null,i=null,n){const s=xr(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let Ir=(()=>{class t{static create(t,e){return Array.isArray(t)?Dr(t,e,""):Dr(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Ci,t.NULL=new fr,t.\u0275prov=g({token:t,providedIn:"any",factory:()=>Ii(mr)}),t.__NG_ELEMENT_ID__=-1,t})();function Tr(t,e){xe(Pt(t)[1],Wt())}function Rr(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s=void 0;if(dt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=jr(t.inputs),e.declaredInputs=jr(t.declaredInputs),e.outputs=jr(t.outputs);const i=s.hostBindings;i&&Pr(t,i);const r=s.viewQuery,a=s.contentQueries;if(r&&Lr(t,r),a&&Nr(t,a),c(t.inputs,s.inputs),c(t.declaredInputs,s.declaredInputs),c(t.outputs,s.outputs),dt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=je(s.hostAttrs,i=je(i,s.hostAttrs))}}(n)}function jr(t){return t===M?{}:t===V?[]:t}function Lr(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Nr(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Pr(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Fr=null;function Mr(){if(!Fr){const t=F.Symbol;if(t&&t.iterator)Fr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;eo(It(t[n.index])).target:n.index;if(At(i)){let a=null;if(!o&&l&&(a=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let r=0;ri?t[i]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,n.index)),null!==a)(a.__ngLastListenerFn__||a).__ngNextListenerFn__=r,a.__ngLastListenerFn__=r,u=!1;else{r=da(n,e,r,!1);const t=i.listen(p.name||m,s,r);h.push(r,t),c&&c.push(s,g,f,f+1)}}else r=da(n,e,r,!0),m.addEventListener(s,r,a),h.push(r),c&&c.push(s,g,f,a)}else r=da(n,e,r,!1);const d=n.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Ht.lFrame.contextLView))[8]}(t)}function ma(t,e){let i=null;const n=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 xa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ca(t){return t.substring(xa.key,xa.keyEnd)}function ka(t,e){const i=xa.textEnd;return i===e?-1:(e=xa.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,xa.key=e,i),Sa(t,e,i))}function Sa(t,e,i){for(;e=0;i=ka(e,i))gi(t,Ca(e),!0)}function Da(t,e,i,n){const s=Xt(),r=qt(),a=ne(2);r.firstUpdatePass&&Ta(r,t,a,n),e!==gs&&Ur(s,a,e)&&La(r,r.data[be()],s,s[11],t,s[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=h(Bi(t)))),t}(e,i),n,a)}function Ia(t,e){return e>=t.expandoStartIndex}function Ta(t,e,i,n){const s=t.data;if(null===s[i+1]){const r=s[be()],a=Ia(t,i);Fa(r,n)&&null===e&&!a&&(e=!1),e=function(t,e,i,n){const s=ae(t);let r=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=ja(i=Ra(null,t,e,i,n),e.attrs,n),r=null);else{const a=e.directiveStylingLast;if(-1===a||t[a]!==s)if(i=Ra(s,t,e,i,n),null===r){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==xs(n))return t[vs(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Ra(null,t,e,i[1],n),i=ja(i,e.attrs,n),function(t,e,i,n){t[vs(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else r=function(t,e,i){let n=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(h=!0)}else c=i;if(s)if(0!==l){const e=vs(t[o+1]);t[n+1]=ys(e,o),0!==e&&(t[e+1]=Cs(t[e+1],n)),t[o+1]=131071&t[o+1]|n<<17}else t[n+1]=ys(o,0),0!==o&&(t[o+1]=Cs(t[o+1],n)),o=n;else t[n+1]=ys(l,0),0===o?o=n:t[l+1]=Cs(t[l+1],n),l=n;h&&(t[n+1]=ws(t[n+1])),va(t,c,n,!0),va(t,c,n,!1),function(t,e,i,n,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&_i(r,e)>=0&&(i[n+1]=ks(i[n+1]))}(e,c,t,n,r),a=ys(o,l),r?e.classBindings=a:e.styleBindings=a}(s,r,e,i,a,n)}}function Ra(t,e,i,n,s){let r=null;const a=i.directiveEnd;let o=i.directiveStylingLast;for(-1===o?o=i.directiveStart:o++;o0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=i[s+1];h===gs&&(h=c?ya:void 0);let u=c?bi(h,n):l===n?h:void 0;if(r&&!Pa(u)&&(u=bi(e,n)),Pa(u)&&(o=u,a))return o;const d=t[s+1];s=a?vs(d):xs(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(o=bi(t,n))}return o}function Pa(t){return void 0!==t}function Fa(t,e){return 0!=(t.flags&(e?16:32))}function Ma(t,e=""){const i=Xt(),n=qt(),s=t+rt,r=n.firstCreatePass?Es(n,s,1,e,null):n.data[s],a=i[s]=function(t,e){return At(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Yn(n,i,a,r),Gt(r,!1)}function Va(t){return za("",t,""),Va}function za(t,e,i){const n=Xt(),s=$r(n,t,e,i);return s!==gs&&dr(n,be(),s),za}function Ba(t,e,i,n,s){const r=Xt(),a=function(t,e,i,n,s,r){const a=Xr(t,ee(),i,s);return ne(2),a?e+ft(i)+n+ft(s)+r:gs}(r,t,e,i,n,s);return a!==gs&&dr(r,be(),a),Ba}function Ha(t,e,i){!function(t,e,i,n){const s=qt(),r=ne(2);s.firstUpdatePass&&Ta(s,null,r,n);const a=Xt();if(i!==gs&&Ur(a,r,i)){const o=s.data[be()];if(Fa(o,n)&&!Ia(s,r)){let t=o.classesWithoutHost;null!==t&&(i=u(t,i||"")),Zr(s,o,a,i,n)}else!function(t,e,i,n,s,r,a,o){s===gs&&(s=ya);let l=0,c=0,h=0 null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(eo=t.toLowerCase().replace(/_/g,"-"))}function no(t,e,i,n,s){if(t=m(t),Array.isArray(t))for(let r=0;r>20;if(Ar(t)||!t.multi){const n=new De(l,s,Gr),p=ao(o,e,s?h:h+d,u);-1===p?(qe(Be(c,a),r,o),so(r,t,e.length),e.push(o),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),i.push(n),a.push(n)):(i[p]=n,a[p]=n)}else{const p=ao(o,e,h+d,u),m=ao(o,e,h,h+d),f=p>=0&&i[p],g=m>=0&&i[m];if(s&&!g||!s&&!f){qe(Be(c,a),r,o);const h=function(t,e,i,n,s){const r=new De(t,i,Gr);return r.multi=[],r.index=e,r.componentProviders=0,ro(r,s,n&&!i),r}(s?lo:oo,i.length,s,n,l);!s&&g&&(i[m].providerFactory=h),so(r,t,e.length,0),e.push(o),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),i.push(h),a.push(h)}else so(r,t,p>-1?p:m,ro(i[s?m:p],l,!s&&n));!s&&n&&g&&i[m].componentProviders++}}}function so(t,e,i,n){const s=Ar(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const a=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=a.indexOf(i);-1===t?a.push(i,[n,r]):a[t+1].push(n,r)}else a.push(i,r)}}}function ro(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ao(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=qt();if(n.firstCreatePass){const s=dt(t);no(i,n.data,n.blueprint,s,!0),no(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class uo{}class po{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${h(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let mo=(()=>{class t{}return t.NULL=new po,t})();function fo(...t){}function go(t,e){return new _o(Rt(t,e))}const bo=function(){return go(Wt(),Xt())};let _o=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=bo,t})();class yo{}let vo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>wo(),t})();const wo=function(){const t=Xt(),e=Nt(Wt().index,t);return function(t){return t[11]}(ot(e)?e:t)};let xo=(()=>{class t{}return t.\u0275prov=g({token:t,providedIn:"root",factory:()=>null}),t})();class Co{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ko=new Co("11.0.5");class So{constructor(){}supports(t){return zr(t)}create(t){return new Eo(t)}}const Oo=(t,e)=>e;class Eo{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||Oo}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const r=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(r&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,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;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):t=this._addAfter(new Ao(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Io),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._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 Io),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 Ao{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 Do{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Io{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Do,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.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 To(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),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 i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._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 i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Lo(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_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(i=>e(t[i],i))}}class Lo{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 No=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,i)},deps:[[t,new xi,new vi]]}}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 '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=g({token:t,providedIn:"root",factory:()=>new t([new So])}),t})(),Po=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,i)},deps:[[t,new xi,new vi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=g({token:t,providedIn:"root",factory:()=>new t([new Ro])}),t})();function Fo(t,e,i,n,s=!1){for(;null!==i;){const r=e[i.index];if(null!==r&&n.push(It(r)),lt(r))for(let t=at;t-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Bn(this._lView[1],this._lView)}onDestroy(t){Ms(this._lView[1],this._lView,null,t)}markForCheck(){ir(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){nr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Jt(!0);try{nr(t,e,i)}finally{Jt(!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,ts(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 Vo extends Mo{constructor(t){super(t),this._view=t}detectChanges(){sr(this._view)}checkNoChanges(){!function(t){Jt(!0);try{sr(t)}finally{Jt(!1)}}(this._view)}get context(){return null}}const zo=Ho;let Bo=(()=>{class t{}return t.__NG_ELEMENT_ID__=zo,t.__ChangeDetectorRef__=!0,t})();function Ho(t=!1){return function(t,e,i){if(!i&&ht(t)){const i=Nt(t.index,e);return new Mo(i,i)}return 47&t.type?new Mo(e[16],e):null}(Wt(),Xt(),t)}const Uo=[new Ro],Xo=new No([new So]),qo=new Po(Uo),$o=function(){return Yo(Wt(),Xt())};let Wo=(()=>{class t{}return t.__NG_ELEMENT_ID__=$o,t})();const Ko=Wo,Go=class extends Ko{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Os(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Ds(e,i,t),new Mo(i)}};function Yo(t,e){return 4&t.type?new Go(e,t,go(t,e)):null}class Qo{}class Zo{}const Jo=function(){return rl(Wt(),Xt())};let tl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Jo,t})();const el=tl,il=class extends el{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return go(this._hostTNode,this._hostLView)}get injector(){return new ii(this._hostTNode,this._hostLView)}get parentInjector(){const t=Xe(this._hostTNode,this._hostLView);if(Ne(t)){const e=Fe(t,this._hostLView),i=Pe(t);return new ii(e[1].data[i+8],e)}return new ii(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=nl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-at}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const r=i||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Qo,null);t&&(s=t)}const a=t.create(r,n,void 0,s);return this.insert(a.hostView,e),a}insert(t,e){const i=t._lView,n=i[1];if(lt(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new il(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,i,n){const s=at+n,r=i.length;n>0&&(i[s-1][4]=e),nAn});class hl extends uo{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(fs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ll(this.componentDef.inputs)}get outputs(){return ll(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const r=t.get(i,al,s);return r!==al||n===al?r:e.get(i,n,s)}}}(t,n.injector):t,r=s.get(yo,Dt),a=s.get(xo,null),o=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=i?function(t,e,i){if(At(t))return t.selectRootElement(e,i===R.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(o,i,this.componentDef.encapsulation):Mn(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?kt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:An,clean:ar,playerHandler:null,flags:0},d=Fs(0,null,null,1,0,null,null,null,null,null),p=Os(null,d,u,h,null,null,r,o,a,s);let m,f;ue(p);try{const t=function(t,e,i,n,s,r){const a=i[1];i[20]=t;const o=Es(a,20,2,"#host",null),l=o.mergedAttrs=e.hostAttrs;null!==l&&(pr(o,l,!0),null!==t&&(Ie(s,t,l),null!==o.classes&&ns(s,t,o.classes),null!==o.styles&&is(s,t,o.styles)));const c=n.createRenderer(t,e),h=Os(i,Ps(e),null,e.onPush?64:16,i[20],o,n,c,null,null);return a.firstCreatePass&&(qe(Be(o,i),a,e.type),Xs(a,o),$s(o,i.length,1)),er(i,h),i[20]=h}(c,this.componentDef,p,r,o);if(c)if(i)Ie(o,c,["ng-version",ko.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&ns(o,c,e.join(" "))}if(f=jt(d,rt),void 0!==e){const t=f.projection=[];for(let i=0;it(a,e)),e.contentQueries){const t=Wt();e.contentQueries(1,a,t.directiveStart)}const o=Wt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(_e(o.index),Hs(i[1],o,0,o.directiveStart,o.directiveEnd,e),Us(e,a)),a}(t,this.componentDef,p,u,[Tr]),Ds(d,p,null)}finally{ge()}return new ul(this.componentType,m,go(f,p),p,f)}}class ul extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Vo(n),this.componentType=t}get injector(){return new ii(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const dl=new Map;class pl extends Qo{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ol(this);const i=st(t),n=t[X]||null;n&&io(n),this._bootstrapComponents=In(i.bootstrap),this._r3Injector=xr(t,e,[{provide:Qo,useValue:this},{provide:mo,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ir.THROW_IF_NOT_FOUND,i=O.Default){return t===Ir||t===Qo||t===mr?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ml extends Zo{constructor(t){super(),this.moduleType=t,null!==st(t)&&function(t){const e=new Set;!function t(i){const n=st(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${h(e)} vs ${h(e.name)}`)}(s,dl.get(s),i),dl.set(s,i));const r=In(n.imports);for(const a of r)e.has(a)||(e.add(a),t(a))}(t)}(t)}create(t){return new pl(this.moduleType,t)}}function fl(t,e,i){const n=te()+t,s=Xt();return s[n]===gs?Hr(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function gl(t,e,i,n){return yl(Xt(),te(),t,e,i,n)}function bl(t,e,i,n,s){return vl(Xt(),te(),t,e,i,n,s)}function _l(t,e){const i=t[e];return i===gs?void 0:i}function yl(t,e,i,n,s,r){const a=e+i;return Ur(t,a,s)?Hr(t,a+1,r?n.call(r,s):n(s)):_l(t,a+1)}function vl(t,e,i,n,s,r,a){const o=e+i;return Xr(t,o,s,r)?Hr(t,o+2,a?n.call(a,s,r):n(s,r)):_l(t,o+2)}function wl(t,e){const i=qt();let n;const s=t+rt;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new mt("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const r=n.factory||(n.factory=pt(n.type)),a=A(Gr);try{const t=Ve(!1),e=r();return Ve(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Xt(),s,e),e}finally{A(a)}}function xl(t,e,i){const n=t+rt,s=Xt(),r=Lt(s,n);return Sl(s,kl(s,n)?yl(s,te(),e,r.transform,i,r):r.transform(i))}function Cl(t,e,i,n){const s=t+rt,r=Xt(),a=Lt(r,s);return Sl(r,kl(r,s)?vl(r,te(),e,a.transform,i,n,a):a.transform(i,n))}function kl(t,e){return t[1].data[e].pure}function Sl(t,e){return Vr.isWrapped(e)&&(e=Vr.unwrap(e),t[ee()]=gs),e}const Ol=class extends n.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let n,r=t=>null,a=()=>null;t&&"object"==typeof t?(n=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&&(a=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(n=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),i&&(a=this.__isAsync?()=>{setTimeout(()=>i())}:()=>{i()}));const o=super.subscribe(n,r,a);return t instanceof s.a&&t.add(o),o}};function El(){return this._results[Mr()]()}class Al{constructor(){this.dirty=!0,this._results=[],this.changes=new Ol,this.length=0;const t=Mr(),e=Al.prototype;e[t]||(e[t]=El)}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=ui(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Dl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Dl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Il{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,n=[];for(let t=0;t0)n.push(a[t/2]);else{const s=r[t+1],a=e[-i];for(let t=at;t{class t{constructor(t){this.appInits=t,this.resolve=fo,this.reject=fo,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 i=0;i{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Ii(Yl,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const Zl=new li("AppId"),Jl={provide:Zl,useFactory:function(){return`${tc()}${tc()}${tc()}`},deps:[]};function tc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ec=new li("Platform Initializer"),ic=new li("Platform ID"),nc=new li("appBootstrapListener");let sc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const rc=new li("LocaleId"),ac=new li("DefaultCurrencyCode");class oc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const lc=function(t){return new ml(t)},cc=lc,hc=function(t){return Promise.resolve(lc(t))},uc=function(t){const e=lc(t),i=In(st(t).declarations).reduce((t,e)=>{const i=nt(e);return i&&t.push(new hl(i)),t},[]);return new oc(e,i)},dc=uc,pc=function(t){return Promise.resolve(uc(t))};let mc=(()=>{class t{constructor(){this.compileModuleSync=cc,this.compileModuleAsync=hc,this.compileModuleAndAllComponentsSync=dc,this.compileModuleAndAllComponentsAsync=pc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const fc=(()=>Promise.resolve(0))();function gc(t){"undefined"==typeof Zone?fc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class bc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ol(!1),this.onMicrotaskEmpty=new Ol(!1),this.onStable=new Ol(!1),this.onError=new Ol(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=e,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=F.requestAnimationFrame,e=F.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(F,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,vc(t),yc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),vc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(i,n,s,r,a,o)=>{try{return wc(t),i.invokeTask(s,r,a,o)}finally{e&&"eventTask"===r.type&&e(),xc(t)}},onInvoke:(e,i,n,s,r,a,o)=>{try{return wc(t),e.invoke(n,s,r,a,o)}finally{xc(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,vc(t),yc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!bc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(bc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+n,t,_c,fo,fo);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const _c={};function yc(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 vc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function wc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function xc(t){t._nesting--,yc(t)}class Cc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ol,this.onMicrotaskEmpty=new Ol,this.onStable=new Ol,this.onError=new Ol}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let kc=(()=>{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:()=>{bc.assertNotInAngularZone(),gc(()=>{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())gc(()=>{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,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(Ii(bc))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})(),Sc=(()=>{class t{constructor(){this._applications=new Map,Dc.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 Dc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();class Oc{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Ec(t){Dc=t}let Ac,Dc=new Oc,Ic=!0,Tc=!1;function Rc(){return Tc=!0,Ic}function jc(){if(Tc)throw new Error("Cannot enable prod mode after platform setup.");Ic=!1}const Lc=new li("AllowMultipleToken");class Nc{constructor(t,e){this.name=t,this.token=e}}function Pc(t,e,i=[]){const n="Platform: "+e,s=new li(n);return(e=[])=>{let r=Fc();if(!r||r.injector.get(Lc,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:gr,useValue:"platform"});!function(t){if(Ac&&!Ac.destroyed&&!Ac.injector.get(Lc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ac=t.get(Mc);const e=t.get(ec,null);e&&e.forEach(t=>t())}(Ir.create({providers:t,name:n}))}return function(t){const e=Fc();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 Fc(){return Ac&&!Ac.destroyed?Ac:null}let Mc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Cc:("zone.js"===t?void 0:t)||new bc({enableLongStackTrace:Rc(),shouldCoalesceEventChangeDetection:e}),i}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),n=[{provide:bc,useValue:i}];return i.run(()=>{const e=Ir.create({providers:n,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 i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Bc(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return aa(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const t=s.injector.get(Ql);return t.runInitializers(),t.donePromise.then(()=>(io(s.injector.get(rc,to)||to),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Vc({},e);return function(t,e,i){const n=new ml(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(zc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${h(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)(Ii(Ir))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function Vc(t,e){return Array.isArray(e)?e.reduce(Vc,t):Object.assign(Object.assign({},t),e)}let zc=(()=>{class t{constructor(t,e,i,n,s,l){this._zone=t,this._console=e,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=s,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new 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(()=>{bc.assertNotInAngularZone(),gc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{bc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=Object(a.a)(c,h.pipe(Object(o.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 i;i=t instanceof uo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Qo),s=i.create(Ir.NULL,[],e||i.selector,n),r=s.location.nativeElement,a=s.injector.get(kc,null),o=a&&s.injector.get(Sc);return a&&o&&o.registerApplication(r,a),s.onDestroy(()=>{this.detachView(s.hostView),Bc(this.components,s),o&&o.unregisterApplication(r)}),this._loadComponent(s),Rc()&&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()}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;Bc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(nc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Ii(bc),Ii(sc),Ii(Ir),Ii(On),Ii(mo),Ii(Ql))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function Bc(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Hc{}class Uc{}const Xc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let qc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Xc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i("zn8P")(e).then(t=>t[n]).then(t=>$c(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>$c(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(Ii(mc),Ii(Uc,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function $c(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}class Wc extends Bo{}class Kc extends Wc{}const Gc=function(t){return null},Yc=Pc(null,"core",[{provide:ic,useValue:"unknown"},{provide:Mc,deps:[Ir]},{provide:Sc,deps:[]},{provide:sc,deps:[]}]),Qc=[{provide:zc,useClass:zc,deps:[bc,sc,Ir,On,mo,Ql]},{provide:cl,deps:[bc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ql,useClass:Ql,deps:[[new vi,Yl]]},{provide:mc,useClass:mc,deps:[]},Jl,{provide:No,useFactory:function(){return Xo},deps:[]},{provide:Po,useFactory:function(){return qo},deps:[]},{provide:rc,useFactory:function(t){return io(t=t||"undefined"!=typeof $localize&&$localize.locale||to),t},deps:[[new yi(rc),new vi,new xi]]},{provide:ac,useValue:"USD"}];let Zc=(()=>{class t{constructor(t){}}return t.\u0275mod=Z({type:t}),t.\u0275inj=_({factory:function(e){return new(e||t)(Ii(zc))},providers:Qc}),t})()},gRHU:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("2fFW"),s=i("NJ4a");const r={closed:!0,next(t){},error(t){if(n.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},iadO:function(t,e,i){"use strict";i.d(e,"a",function(){return bt}),i.d(e,"b",function(){return Ct}),i.d(e,"c",function(){return Ot}),i.d(e,"d",function(){return St});var n=i("u47x"),s=i("rDax"),r=i("+rOU"),a=i("ofXK"),o=i("fXoL"),l=i("bTqV"),c=i("0IaG"),h=i("vxfF"),u=i("FKr1"),d=i("XNiG"),p=i("quSY"),m=i("VRyK"),f=i("LRne"),g=i("FtGj"),b=i("IzEk"),_=i("JX91"),y=i("pLZG"),v=i("8LU1"),w=i("R0Ic"),x=i("3Pt+"),C=i("kmnG"),k=i("qFsG"),S=i("cH1L");const O=["mat-calendar-body",""];function E(t,e){if(1&t&&(o.Tb(0,"tr",2),o.Tb(1,"td",3),o.Ec(2),o.Sb(),o.Sb()),2&t){const t=o.fc();o.Cb(1),o.Ac("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),o.Db("colspan",t.numCols),o.Cb(1),o.Gc(" ",t.label," ")}}function A(t,e){if(1&t&&(o.Tb(0,"td",7),o.Ec(1),o.Sb()),2&t){const t=o.fc(2);o.Ac("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),o.Db("colspan",t._firstRowOffset),o.Cb(1),o.Gc(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function D(t,e){if(1&t){const t=o.Ub();o.Tb(0,"td",8),o.bc("click",function(i){o.uc(t);const n=e.$implicit;return o.fc(2)._cellClicked(n,i)}),o.Tb(1,"div",9),o.Ec(2),o.Sb(),o.Ob(3,"div",10),o.Sb()}if(2&t){const t=e.$implicit,i=e.index,n=o.fc().index,s=o.fc();o.Ac("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),o.Fb("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i))("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,n,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,n,i))("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)),o.lc("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),o.Db("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),o.Cb(1),o.Fb("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),o.Cb(1),o.Gc(" ",t.displayValue," ")}}function I(t,e){if(1&t&&(o.Tb(0,"tr",4),o.Dc(1,A,2,6,"td",5),o.Dc(2,D,4,46,"td",6),o.Sb()),2&t){const t=e.$implicit,i=e.index,n=o.fc();o.Cb(1),o.lc("ngIf",0===i&&n._firstRowOffset),o.Cb(1),o.lc("ngForOf",t)}}function T(t,e){if(1&t&&(o.Tb(0,"th",5),o.Ec(1),o.Sb()),2&t){const t=e.$implicit;o.Db("aria-label",t.long),o.Cb(1),o.Fc(t.narrow)}}const R=["*"];function j(t,e){}function L(t,e){if(1&t){const t=o.Ub();o.Tb(0,"mat-month-view",5),o.bc("activeDateChange",function(e){return o.uc(t),o.fc().activeDate=e})("_userSelection",function(e){return o.uc(t),o.fc()._dateSelected(e)}),o.Sb()}if(2&t){const t=o.fc();o.lc("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 N(t,e){if(1&t){const t=o.Ub();o.Tb(0,"mat-year-view",6),o.bc("activeDateChange",function(e){return o.uc(t),o.fc().activeDate=e})("monthSelected",function(e){return o.uc(t),o.fc()._monthSelectedInYearView(e)})("selectedChange",function(e){return o.uc(t),o.fc()._goToDateInView(e,"month")}),o.Sb()}if(2&t){const t=o.fc();o.lc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function P(t,e){if(1&t){const t=o.Ub();o.Tb(0,"mat-multi-year-view",7),o.bc("activeDateChange",function(e){return o.uc(t),o.fc().activeDate=e})("yearSelected",function(e){return o.uc(t),o.fc()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return o.uc(t),o.fc()._goToDateInView(e,"year")}),o.Sb()}if(2&t){const t=o.fc();o.lc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}const F=["button"];function M(t,e){1&t&&(o.ec(),o.Tb(0,"svg",3),o.Ob(1,"path",4),o.Sb())}const V=[[["","matDatepickerToggleIcon",""]]],z=["[matDatepickerToggleIcon]"];let B=(()=>{class t{constructor(){this.changes=new d.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close 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(o.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class H{constructor(t,e,i,n,s={},r=t,a){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=r,this.rawValue=a}}let U=(()=>{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 o.o,this.previewChange=new o.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&&X(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:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}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 i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==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 q(t,this.startValue,this.endValue)}_isRangeEnd(t){return $(t,this.startValue,this.endValue)}_isInRange(t){return W(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return q(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return $(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return W(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return q(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return $(t,this.previewStart,this.previewEnd)}_isInPreview(t){return W(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(X(t)?e=t:X(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(o.l),o.Nb(o.B))},t.\u0275cmp=o.Hb({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:[o.Ab],attrs:O,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&&(o.Dc(0,E,3,6,"tr",0),o.Dc(1,I,3,2,"tr",1)),2&t&&(o.lc("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 X(t){return"TD"===t.nodeName}function q(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function W(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class K{constructor(t,e){this.start=t,this.end=e}}let G=(()=>{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)(o.Nb(void 0),o.Nb(u.c))},t.\u0275dir=o.Ib({type:t}),t})(),Y=(()=>{class t extends G{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)(o.Xb(u.c))},t.\u0275prov=o.Jb({token:t,factory:t.\u0275fac}),t})();const Q={provide:G,deps:[[new o.C,new o.L,G],u.c],useFactory:function(t,e){return t||new Y(e)}},Z=new o.s("MAT_DATE_RANGE_SELECTION_STRATEGY");let J=(()=>{class t{constructor(t,e,i,n,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new o.o,this._userSelection=new o.o,this.activeDateChange=new o.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof K?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,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let r,a;this._selected instanceof K?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),r===e&&a===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event})}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case g.j:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case g.n:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case g.q:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case g.e:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case g.i:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case g.f:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case g.m:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case g.l:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case g.g:case g.o:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case g.h:return void(null==this._previewEnd||Object(g.t)(t)||(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 i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=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),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof K?(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)(o.Nb(o.h),o.Nb(u.e,8),o.Nb(u.c,8),o.Nb(S.b,8),o.Nb(Z,8))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&o.Ic(U,!0),2&t){let t;o.rc(t=o.cc())&&(e._matCalendarBody=t.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:[o.Ab],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&&(o.Tb(0,"table",0),o.Tb(1,"thead",1),o.Tb(2,"tr"),o.Dc(3,T,2,2,"th",2),o.Sb(),o.Tb(4,"tr"),o.Ob(5,"th",3),o.Sb(),o.Sb(),o.Tb(6,"tbody",4),o.bc("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),o.Sb(),o.Sb()),2&t&&(o.Cb(3),o.lc("ngForOf",e._weekdays),o.Cb(3),o.lc("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:[a.l,U],encapsulation:2,changeDetection:0}),t})();const tt=24;let et=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new o.o,this.yearSelected=new o.o,this.activeDateChange=new o.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),it(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof K?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,i=[];ethis._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case g.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case g.n:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case g.q:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case g.e:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case g.i:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case g.f:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case g.m:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case g.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:tt);break;case g.g:case g.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),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new H(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new o.o,this.monthSelected=new o.o,this.activeDateChange=new o.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,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 K?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,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case g.j:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case g.n:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case g.q:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case g.e:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case g.i:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case g.f:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case g.m:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case g.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case g.g:case g.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 i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new H(t,e.toLocaleUpperCase(),n,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 i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+at++,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+tt-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}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:tt)}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):it(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(B),o.Nb(Object(o.W)(()=>lt)),o.Nb(u.c,8),o.Nb(u.e,8),o.Nb(o.h))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:R,decls:10,vars:10,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&&(o.kc(),o.Tb(0,"div",0),o.Tb(1,"div",1),o.Tb(2,"button",2),o.bc("click",function(){return e.currentPeriodClicked()}),o.Tb(3,"span"),o.Ec(4),o.Sb(),o.Ob(5,"div",3),o.Sb(),o.Ob(6,"div",4),o.jc(7),o.Tb(8,"button",5),o.bc("click",function(){return e.previousClicked()}),o.Sb(),o.Tb(9,"button",6),o.bc("click",function(){return e.nextClicked()}),o.Sb(),o.Sb(),o.Sb()),2&t&&(o.Cb(2),o.Db("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),o.Cb(1),o.Db("id",e._buttonDescriptionId),o.Cb(1),o.Fc(e.periodButtonText),o.Cb(1),o.Fb("mat-calendar-invert","month"!==e.calendar.currentView),o.Cb(3),o.lc("disabled",!e.previousEnabled()),o.Db("aria-label",e.prevButtonLabel),o.Cb(1),o.lc("disabled",!e.nextEnabled()),o.Db("aria-label",e.nextButtonLabel))},directives:[l.b,n.d],encapsulation:2,changeDetection:0}),t})(),lt=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.o,this.yearSelected=new o.o,this.monthSelected=new o.o,this.viewChanged=new o.o(!0),this._userSelection=new o.o,this.stateChanges=new d.a,this._intlChanges=t.changes.subscribe(()=>{n.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 K?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){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new r.d(this.headerComponent||ot),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 K||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)(o.Nb(B),o.Nb(u.c,8),o.Nb(u.e,8),o.Nb(o.h))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(o.Ic(J,!0),o.Ic(rt,!0),o.Ic(et,!0)),2&t){let t;o.rc(t=o.cc())&&(e.monthView=t.first),o.rc(t=o.cc())&&(e.yearView=t.first),o.rc(t=o.cc())&&(e.multiYearView=t.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",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[o.Bb([Q]),o.Ab],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&&(o.Dc(0,j,0,0,"ng-template",0),o.Tb(1,"div",1),o.Dc(2,L,1,8,"mat-month-view",2),o.Dc(3,N,1,6,"mat-year-view",3),o.Dc(4,P,1,6,"mat-multi-year-view",4),o.Sb()),2&t&&(o.lc("cdkPortalOutlet",e._calendarHeaderPortal),o.Cb(1),o.lc("ngSwitch",e.currentView),o.Cb(1),o.lc("ngSwitchCase","month"),o.Cb(1),o.lc("ngSwitchCase","year"),o.Cb(1),o.lc("ngSwitchCase","multi-year"))},directives:[r.c,n.e,a.o,a.p,J,rt,et],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 ct={transformPanel:Object(w.m)("transformPanel",[Object(w.j)("void",Object(w.k)({opacity:0,transform:"scale(1, 0.8)"})),Object(w.l)("void => enter",Object(w.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(w.k)({opacity:1,transform:"scale(1, 1)"}))),Object(w.l)("* => void",Object(w.e)("100ms linear",Object(w.k)({opacity:0})))]),fadeInCalendar:Object(w.m)("fadeInCalendar",[Object(w.j)("void",Object(w.k)({opacity:0})),Object(w.j)("enter",Object(w.k)({opacity:1})),Object(w.l)("void => *",Object(w.e)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ht=0;const ut=new o.s("mat-datepicker-scroll-strategy"),dt={provide:ut,deps:[s.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class pt{constructor(t){this._elementRef=t}}const mt=Object(u.w)(pt);let ft=(()=>{class t extends mt{constructor(t,e,i,n,s,r){super(t),this._changeDetectorRef=e,this._model=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new p.a,this._animationState="enter",this._animationDone=new d.a,this._closeButtonText=(null==r?void 0:r.closeCalendarLabel)||"Close calendar"}ngAfterViewInit(){this._subscriptions.add(this.datepicker._stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,i=t.value,n=e instanceof K;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(o.l),o.Nb(o.h),o.Nb(G),o.Nb(u.c),o.Nb(Z,8),o.Nb(B))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&o.Ic(lt,!0),2&t){let t;o.rc(t=o.cc())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&o.Bc("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(o.Cc("@transformPanel",e._animationState),o.Fb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.zb],decls:4,vars:16,consts:[["cdkTrapFocus",""],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],["type","button","mat-raised-button","","color","primary",1,"mat-datepicker-close-button",3,"focus","blur","click"]],template:function(t,e){1&t&&(o.Tb(0,"div",0),o.Tb(1,"mat-calendar",1),o.bc("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),o.Sb(),o.Tb(2,"button",2),o.bc("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),o.Ec(3),o.Sb(),o.Sb()),2&t&&(o.Cb(1),o.lc("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"),o.Cb(1),o.Fb("cdk-visually-hidden",!e._closeButtonFocused),o.Cb(1),o.Fc(e._closeButtonText))},directives:[n.f,lt,a.k,l.b],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.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:[ct.transformPanel,ct.fadeInCalendar]},changeDetection:0}),t})(),gt=(()=>{class t{constructor(t,e,i,n,s,r,a,l,c){this._dialog=t,this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=r,this._dir=a,this._document=l,this._model=c,this._inputStateChanges=p.a.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new o.o,this.monthSelected=new o.o,this.viewChanged=new o.o(!0),this.openedStream=new o.o,this.closedStream=new o.o,this._opened=!1,this.id="mat-datepicker-"+ht++,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 panelClass(){return this._panelClass}set panelClass(t){this._panelClass=Object(v.g)(t)}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)}_viewChanged(t){this.viewChanged.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(ft,{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(ft,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(m.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Object(y.a)(t=>t.keyCode===g.h&&!Object(g.t)(t)||this._datepickerInput&&Object(g.t)(t,"altKey")&&t.keyCode===g.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",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(c.a),o.Nb(s.c),o.Nb(o.B),o.Nb(o.R),o.Nb(ut),o.Nb(u.c,8),o.Nb(S.b,8),o.Nb(a.d,8),o.Nb(G))},t.\u0275dir=o.Ib({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[o.Ab]}),t})(),bt=(()=>{class t extends gt{}return t.\u0275fac=function(e){return _t(e||t)},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o.Bb([Q]),o.zb],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const _t=o.Vb(bt);class yt{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let vt=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new o.o,this.dateInput=new o.o,this._valueChange=new o.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));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,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),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.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 yt(this,this._elementRef.nativeElement)),this.dateChange.emit(new yt(this,this._elementRef.nativeElement))),this._outsideValueChanged&&this._outsideValueChanged()}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,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===g.e&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this._valueChange.emit(i),this.dateInput.emit(new yt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new yt(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}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(o.l),o.Nb(u.c,8),o.Nb(u.e,8))},t.\u0275dir=o.Ib({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.Ab]}),t})();const wt={provide:x.k,useExisting:Object(o.W)(()=>Ct),multi:!0},xt={provide:x.j,useExisting:Object(o.W)(()=>Ct),multi:!0};let Ct=(()=>{class t extends vt{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._validator=x.t.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){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}_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)(o.Nb(o.l),o.Nb(u.c,8),o.Nb(u.e,8),o.Nb(C.a,8))},t.\u0275dir=o.Ib({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&o.bc("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&&(o.Wb("disabled",e.disabled),o.Db("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:[o.Bb([wt,xt,{provide:k.a,useExisting:t}]),o.zb]}),t})(),kt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Ib({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),St=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=p.a.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n: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(f.a)(),e=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput.stateChanges:Object(f.a)(),i=this.datepicker?Object(m.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(f.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(m.a)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(B),o.Nb(o.h),o.Yb("tabindex"))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&o.Gb(i,kt,!0),2&t){let t;o.rc(t=o.cc())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&o.Ic(F,!0),2&t){let t;o.rc(t=o.cc())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&o.bc("focus",function(){return e._button.focus()}),2&t&&(o.Db("tabindex",e.disabled?null:-1)("data-mat-calendar",e.datepicker?e.datepicker.id:null),o.Fb("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:[o.Ab],ngContentSelectors:z,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&&(o.kc(V),o.Tb(0,"button",0,1),o.bc("click",function(t){return e._open(t)}),o.Dc(2,M,2,0,"svg",2),o.jc(3),o.Sb()),2&t&&(o.lc("disabled",e.disabled)("disableRipple",e.disableRipple),o.Db("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),o.Cb(2),o.lc("ngIf",!e._customIcon))},directives:[l.b,a.m],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})(),Ot=(()=>{class t{}return t.\u0275mod=o.Lb({type:t}),t.\u0275inj=o.Kb({factory:function(e){return new(e||t)},providers:[B,dt],imports:[[a.c,l.c,c.e,s.f,n.a,r.g,u.i],h.b]}),t})()},itXk:function(t,e,i){"use strict";i.d(e,"b",function(){return p}),i.d(e,"a",function(){return m});var n=i("z+Ro"),s=i("DH7j"),r=i("7o/Q");class a extends r.a{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class o extends r.a{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=i("SeVD"),c=i("HDdC");function h(t,e,i,n,s=new o(t,i,n)){if(!s.closed)return e instanceof c.a?e.subscribe(s):Object(l.a)(e)(s)}var u=i("yCtX");const d={};function p(...t){let e=void 0,i=void 0;return Object(n.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(s.a)(t[0])&&(t=t[0]),Object(u.a)(t,i).lift(new m(e))}class m{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new f(t,this.resultSelector))}}class f extends a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)}}),t})();var o=i("vxfF"),l=i("nLfN"),c=i("8LU1"),h=i("XNiG"),u=i("quSY"),d=i("HDdC"),p=i("D0XW"),m=i("Y7HM");function f(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}var g=i("eNwd"),b=(i("VRyK"),i("1G5W"));function _(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function y(t,e){const i=e?"":"none";_(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function v(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function w(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function x(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function C(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 k(t,e,i){const{top:n,bottom:s,left:r,right:a}=t;return i>=n&&i<=s&&e>=r&&e<=a}function S(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function O(t,e,i,n){const{top:s,right:r,bottom:a,left:o,width:l,height:c}=t,h=l*e,u=c*e;return n>s-u&&no-h&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:C(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let r,a;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,a=t.left}else r=e.scrollTop,a=e.scrollLeft;const o=s.top-r,l=s.left-a;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&S(t.clientRect,o,l)}),s.top=r,s.left=a,{top:o,left:l}}}function A(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=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 i=t.target;return!!i&&(i===e||e.contains(i))});!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){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(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 i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.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:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),this._parentPositions=new E(i,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(),this._handles.forEach(t=>y(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>Object(c.e)(t)),this._handles.forEach(t=>y(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,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,L),e.addEventListener("touchstart",this._pointerDown,j)}),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()&&M(this._rootElement),M(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._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),y(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),y(t,this.disabled))}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&&M(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&M(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){V(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._preview=this._createPreviewElement(),s=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();i.insertBefore(r,t),v(t,!1),this._document.body.appendChild(i.replaceChild(s,t)),function(t,e){return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}(this._document,a).appendChild(n),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;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){e.stopPropagation();const i=this.isDragging(),n=V(e),s=!n&&0!==e.button,r=this._rootElement,a=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||a)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=C(this._boundaryElement));const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){v(this._rootElement,!0),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,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),r=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s}),e.drop(this,i,this._initialIndex,this._initialContainer,r,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){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(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=P(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=z(s,this._document),this._previewRef=s,t.matchSize?B(n,e):n.style.transform=P(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=A(t),B(n,t.getBoundingClientRect())}return _(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),y(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=P(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=x(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),r=x(e,"transition-duration"),a=x(e,"transition-delay");return w(r[s])+w(a[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=z(this._placeholderRef,this._document)):i=A(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,r=V(e)?e.targetTouches[0]:e,a=this._getViewportScrollPosition();return{x:s.left-i.left+(r.pageX-s.left-a.left),y:s.top-i.top+(r.pageY-s.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=V(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,r=this._previewRect,a=s.top+e,o=s.bottom-(r.height-e);i=F(i,s.left+t,s.right-(r.width-t)),n=F(n,a,o)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),a=Math.abs(i-s.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),a>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_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,L),t.removeEventListener("touchstart",this._pointerDown,j)}_applyRootElementTransform(t,e){const i=P(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}_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 i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,r=n.right-i.right,a=i.top-n.top,o=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,i.height>n.height?(a>0&&(e+=a),o>0&&(e-=o)):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:V(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&S(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()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Object(l.c)(this._rootElement)),this._cachedShadowRoot}}function P(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function F(t,e,i){return Math.max(e,Math.min(i,t))}function M(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function V(t){return"t"===t.type[0]}function z(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function B(t,e){t.style.width=e.width+"px",t.style.height=e.height+"px",t.style.transform=P(e.left,e.top)}function H(t,e){return Math.max(0,Math.min(e,t))}class U{constructor(t,e,i,n,s){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new h.a,this.entered=new h.a,this.exited=new h.a,this.dropped=new h.a,this.sorted=new h.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=u.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new h.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=p.a){return(!Object(m.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=p.a),new d.a(i=>(i.add(e.schedule(f,t,{subscriber:i,counter:0,period:t})),i))}(0,g.a).pipe(Object(b.a)(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?q(t,-2):2===this._verticalScrollDirection&&q(t,2),1===this._horizontalScrollDirection?$(t,-2):2===this._horizontalScrollDirection&&$(t,2)})},this.element=Object(c.e)(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new E(i,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,i,n){let s;this.start(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const r=this._activeDraggables,a=r.indexOf(t),o=t.getPlaceholderElement();let l=r[s];if(l===t&&(l=r[s+1]),a>-1&&r.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(o,e),r.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=r[0].getRootElement();e.parentNode.insertBefore(o,e),r.unshift(t)}else Object(c.e)(this.element).appendChild(o),r.push(t);o.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,i,n,s,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:r})}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?X("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,i,n){if(this.sortingDisabled||!O(this._clientRect,.05,e,i))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===r&&s.length>0)return;const a="horizontal"===this._orientation,o=X(s,e=>e.drag===t),l=s[r],c=l.clientRect,h=o>r?1:-1,u=this._getItemOffsetPx(s[o].clientRect,c,h),d=this._getSiblingOffsetPx(o,s,h),p=s.slice();!function(t,e,i){const n=H(e,t.length-1),s=H(i,t.length-1);if(n===s)return;const r=t[n],a=s{if(p[i]===e)return;const n=e.drag===t,s=n?u:d,r=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,a?(r.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,S(e.clientRect,0,s)):(r.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,S(e.clientRect,s,0))}),this._previousSwap.overlaps=k(c,e,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((r,a)=>{a!==this._document&&r.clientRect&&!i&&O(r.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=W(e,n),r=K(e,i);let a=0,o=0;if(s){const e=t.scrollTop;1===s?e>0&&(a=1):t.scrollHeight-e>t.clientHeight&&(a=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(o=1):t.scrollWidth-e>t.clientWidth&&(o=2)}return[a,o]}(a,r.clientRect,t,e),(n||s)&&(i=a))}),!n&&!s){const{width:r,height:a}=this._viewportRuler.getViewportSize(),o={width:r,height:a,top:0,right:r,bottom:a,left:0};n=W(o,e),s=K(o,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?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:C(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.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,i){const n="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*i];let a=s[n?"width":"height"]*i;if(r){const t=n?"left":"top",e=n?"right":"bottom";-1===i?a-=r.clientRect[t]-s[e]:a+=s[t]-r.clientRect[e]}return a}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,r=X(this._itemPositions,({drag:r,clientRect:a},o,l)=>{if(r===t)return l.length<2;if(n){const t=s?n.x:n.y;if(r===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(a.left)&&e=Math.floor(a.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!k(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=Object(c.e)(this.element);return n===s||s.contains(n)}_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})=>{S(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(l.c)(Object(c.e)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}function X(t,e){for(let i=0;i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function K(t,e){const{left:i,right:n,width:s}=t,r=.05*s;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}const G=Object(l.f)({passive:!1,capture:!0});let Y=(()=>{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 h.a,this.pointerUp=new h.a,this.scroll=new h.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,G)})}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,G)}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:G}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:G}),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)(r.Xb(r.B),r.Xb(s.d))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(r.B),Object(r.Xb)(s.d))},token:t,providedIn:"root"}),t})();const Q={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Z=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=Q){return new N(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)(r.Xb(s.d),r.Xb(r.B),r.Xb(o.e),r.Xb(Y))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(s.d),Object(r.Xb)(r.B),Object(r.Xb)(o.e),Object(r.Xb)(Y))},token:t,providedIn:"root"}),t})(),J=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},providers:[Z],imports:[o.b]}),t})();var tt=i("+rOU"),et=i("B/XX"),it=i("f6nW");i("0EQZ"),i("7+OI"),i("2Vo4"),i("LRne"),i("pLZG");let nt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)}}),t})();var st=i("FKr1"),rt=(i("NXyV"),i("xgIS"),i("rDax"));i("FtGj"),i("3Pt+"),i("kmnG"),i("3E0/");const at={provide:new r.s("mat-autocomplete-scroll-strategy"),deps:[rt.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let ot=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},providers:[at],imports:[[rt.f,st.n,st.i,s.c],o.b,st.n,st.i]}),t})();i("R1ws");let lt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[n.a,st.i],st.i]}),t})();i("0MNC"),i("R0Ic");let ct=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[rt.f,st.i,tt.g],st.i]}),t})();var ht=i("bTqV");let ut=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[st.i,st.s],st.i]}),t})();var dt=i("Wp6s"),pt=i("bSwM"),mt=i("A5z7"),ft=i("xHqg"),gt=i("iadO"),bt=i("0IaG"),_t=i("f0Cb"),yt=i("7EHt");let vt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[st.k,st.i],st.k,st.i]}),t})();var wt=i("NFeN"),xt=i("qFsG"),Ct=i("MutI"),kt=i("STbY"),St=i("M9IT"),Ot=i("bv9b"),Et=i("Xa2L");let At=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[st.s,st.i],st.i]}),t})();var Dt=i("d3UM"),It=i("XhcP");let Tt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.c,st.i],st.i]}),t})();var Rt=i("1jcm"),jt=i("dNgK"),Lt=i("Dh3D"),Nt=i("+0xr"),Pt=i("GU7r");i("PqYM"),i("/uUt");let Ft=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.c,st.i,tt.g,st.s,Pt.c,n.a],st.i]}),t})();var Mt=i("/t3+"),Vt=i("Qu3c");let zt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[nt,st.i],st.i]}),t})();var Bt=i("pD6V");i("jhN1"),new Map,new WeakMap;let Ht=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[Bt.c]]}),t})();var Ut=i("XiUz");new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let Xt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[Bt.c]]}),t})();new r.Q("11.0.0-beta.33");let qt=(()=>{class t{constructor(t,e){Object(s.w)(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Bt.e,useValue:Object.assign(Object.assign({},Bt.d),e)},{provide:Bt.a,useValue:i,multi:!0},{provide:Bt.g,useValue:!0}]:[{provide:Bt.e,useValue:Object.assign(Object.assign({},Bt.d),e)},{provide:Bt.a,useValue:i,multi:!0}]}}}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)(r.Xb(Bt.g),r.Xb(r.D))},imports:[[Ut.d,Ht,Xt],Ut.d,Ht,Xt]}),t})(),$t=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[n.a,a,et.e,it.r,nt,J,ot,lt,ct,ht.c,ut,dt.e,pt.b,mt.e,ft.d,gt.c,bt.e,_t.b,yt.a,vt,wt.b,xt.c,Ct.c,kt.c,st.l,St.b,Ot.b,Et.b,At,st.s,Dt.b,It.d,Tt,Rt.b,jt.b,Lt.b,Nt.k,Ft,Mt.b,Vt.b,zt,tt.g,o.d,qt]}),t})()},jZKg:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("HDdC"),s=i("quSY");function r(t,e){return new n.a(i=>{const n=new s.a;let r=0;return n.add(e.schedule(function(){r!==t.length?(i.next(t[r++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},jhN1:function(t,e,i){"use strict";i.d(e,"a",function(){return F}),i.d(e,"b",function(){return T}),i.d(e,"c",function(){return N}),i.d(e,"d",function(){return w});var n=i("ofXK"),s=i("fXoL");class r extends n.x{constructor(){super()}supportsDOMEvents(){return!0}}class a extends r{static makeCurrent(){Object(n.B)(new a)}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,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=l||(l=document.querySelector("base"),l)?l.getAttribute("href"):null;return null==e?null:(i=e,o||(o=document.createElement("a")),o.setAttribute("href",i),"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname);var i}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(n.A)(document.cookie,t)}}let o,l=null;const c=new s.s("TRANSITION_ID"),h=[{provide:s.d,useFactory:function(t,e,i){return()=>{i.get(s.e).donePromise.then(()=>{const i=Object(n.z)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[c,n.d,s.t],multi:!0}];class u{static init(){Object(s.ab)(new u)}addToWindow(t){s.rb.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.rb.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.rb.getAllAngularRootElements=()=>t.getAllRootElements(),s.rb.frameworkStabilizers||(s.rb.frameworkStabilizers=[]),s.rb.frameworkStabilizers.push(t=>{const e=s.rb.getAllAngularTestabilities();let i=e.length,n=!1;const r=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?Object(n.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,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{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.Jb({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends f{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 i=this._doc.createElement("style");i.textContent=t,this._styleNodes.add(e.appendChild(i))})}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(n.z)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.d))},t.\u0275prov=s.Jb({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,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new x(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.S.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.S.ShadowDom:return new k(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.Xb(p),s.Xb(g),s.Xb(s.c))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();class x{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,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=b[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=b[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.I.DashCase|s.I.Important)?t.style.setProperty(e,i,n&s.I.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.I.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(i)):this.eventManager.addEventListener(t,e,v(i))}}class C extends x{constructor(t,e,i,n){super(t),this.component=i;const s=y(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(_,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(_,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class k extends x{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=y(n.id,n.styles,[]);for(let r=0;r{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.d))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const O=["alt","control","meta","shift"],E={"\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"},A={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"},D={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let I=(()=>{class t extends m{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(n.z)().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let r="";if(O.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),r+=t+".")}),r+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=n,a.fullKey=r,a}static getEventFullKey(t){let e="",i=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&&A.hasOwnProperty(e)&&(e=A[e]))}return E[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),O.forEach(n=>{n!=i&&(0,D[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.d))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Jb)({factory:function(){return Object(s.Xb)(j)},token:t,providedIn:"root"}),t})();function R(t){return new j(t.get(n.d))}let j=(()=>{class t extends T{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.gb)(e,"HTML")?Object(s.yb)(e):Object(s.eb)(this._doc,String(e));case s.K.STYLE:return Object(s.gb)(e,"Style")?Object(s.yb)(e):e;case s.K.SCRIPT:if(Object(s.gb)(e,"Script"))return Object(s.yb)(e);throw new Error("unsafe value used in a script context");case s.K.URL:return Object(s.qb)(e),Object(s.gb)(e,"URL")?Object(s.yb)(e):Object(s.fb)(String(e));case s.K.RESOURCE_URL:if(Object(s.gb)(e,"ResourceURL"))return Object(s.yb)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(s.hb)(t)}bypassSecurityTrustStyle(t){return Object(s.kb)(t)}bypassSecurityTrustScript(t){return Object(s.jb)(t)}bypassSecurityTrustUrl(t){return Object(s.lb)(t)}bypassSecurityTrustResourceUrl(t){return Object(s.ib)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return R(Object(s.Xb)(s.p))},token:t,providedIn:"root"}),t})();const L=[{provide:s.D,useValue:n.y},{provide:s.E,useValue:function(){a.makeCurrent(),u.init()},multi:!0},{provide:n.d,useFactory:function(){return Object(s.wb)(document),document},deps:[]}],N=Object(s.T)(s.Z,"browser",L),P=[[],{provide:s.cb,useValue:"root"},{provide:s.n,useFactory:function(){return new s.n},deps:[]},{provide:d,useClass:S,multi:!0,deps:[n.d,s.B,s.D]},{provide:d,useClass:I,multi:!0,deps:[n.d]},[],{provide:w,useClass:w,deps:[p,g,s.c]},{provide:s.H,useExisting:w},{provide:f,useExisting:g},{provide:g,useClass:g,deps:[n.d]},{provide:s.O,useClass:s.O,deps:[s.B]},{provide:p,useClass:p,deps:[d,s.B]},[]];let F=(()=>{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:c,useExisting:s.c},h]}}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)(s.Xb(t,12))},providers:P,imports:[n.c,s.f]}),t})();"undefined"!=typeof window&&window},jtHE:function(t,e,i){"use strict";i.d(e,"a",function(){return g});var n=i("XNiG"),s=i("3N8a");class r extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}var a=i("IjjT");class o extends a.a{}const l=new o(r);var c=i("quSY"),h=i("7o/Q"),u=i("WMd4");class d extends h.a{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(d.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(u.a.createNext(t))}_error(t){this.scheduleMessage(u.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(u.a.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var m=i("9ppp"),f=i("Ylt2");class g extends n.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new b(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let r;if(this.closed)throw new m.a;if(this.isStopped||this.hasError?r=c.a.EMPTY:(this.observers.push(t),r=new f.a(this,t)),n&&t.add(t=new d(t,n)),e)for(let a=0;ae&&(r=Math.max(r,s-e)),r>0&&n.splice(0,r),n}}class b{constructor(t,e){this.time=t,this.value=e}}},kJWO:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kmnG:function(t,e,i){"use strict";i.d(e,"a",function(){return J}),i.d(e,"b",function(){return F}),i.d(e,"c",function(){return tt}),i.d(e,"d",function(){return V}),i.d(e,"e",function(){return et}),i.d(e,"f",function(){return H}),i.d(e,"g",function(){return U}),i.d(e,"h",function(){return $}),i.d(e,"i",function(){return K});var n=i("GU7r"),s=i("ofXK"),r=i("fXoL"),a=i("FKr1"),o=i("8LU1"),l=i("XNiG"),c=i("VRyK"),h=i("xgIS"),u=i("JX91"),d=i("1G5W"),p=i("IzEk"),m=i("R0Ic"),f=i("R1ws"),g=i("cH1L"),b=i("nLfN");const _=["underline"],y=["connectionContainer"],v=["inputContainer"],w=["label"];function x(t,e){1&t&&(r.Rb(0),r.Tb(1,"div",14),r.Ob(2,"div",15),r.Ob(3,"div",16),r.Ob(4,"div",17),r.Sb(),r.Tb(5,"div",18),r.Ob(6,"div",15),r.Ob(7,"div",16),r.Ob(8,"div",17),r.Sb(),r.Qb())}function C(t,e){1&t&&(r.Tb(0,"div",19),r.jc(1,1),r.Sb())}function k(t,e){if(1&t&&(r.Rb(0),r.jc(1,2),r.Tb(2,"span"),r.Ec(3),r.Sb(),r.Qb()),2&t){const t=r.fc(2);r.Cb(3),r.Fc(t._control.placeholder)}}function S(t,e){1&t&&r.jc(0,3,["*ngSwitchCase","true"])}function O(t,e){1&t&&(r.Tb(0,"span",23),r.Ec(1," *"),r.Sb())}function E(t,e){if(1&t){const t=r.Ub();r.Tb(0,"label",20,21),r.bc("cdkObserveContent",function(){return r.uc(t),r.fc().updateOutlineGap()}),r.Dc(2,k,4,1,"ng-container",12),r.Dc(3,S,1,0,"ng-content",12),r.Dc(4,O,2,0,"span",22),r.Sb()}if(2&t){const t=r.fc();r.Fb("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.lc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.Db("for",t._control.id)("aria-owns",t._control.id),r.Cb(2),r.lc("ngSwitchCase",!1),r.Cb(1),r.lc("ngSwitchCase",!0),r.Cb(1),r.lc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function A(t,e){1&t&&(r.Tb(0,"div",24),r.jc(1,4),r.Sb())}function D(t,e){if(1&t&&(r.Tb(0,"div",25,26),r.Ob(2,"span",27),r.Sb()),2&t){const t=r.fc();r.Cb(2),r.Fb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function I(t,e){if(1&t&&(r.Tb(0,"div"),r.jc(1,5),r.Sb()),2&t){const t=r.fc();r.lc("@transitionMessages",t._subscriptAnimationState)}}function T(t,e){if(1&t&&(r.Tb(0,"div",31),r.Ec(1),r.Sb()),2&t){const t=r.fc(2);r.lc("id",t._hintLabelId),r.Cb(1),r.Fc(t.hintLabel)}}function R(t,e){if(1&t&&(r.Tb(0,"div",28),r.Dc(1,T,2,2,"div",29),r.jc(2,6),r.Ob(3,"div",30),r.jc(4,7),r.Sb()),2&t){const t=r.fc();r.lc("@transitionMessages",t._subscriptAnimationState),r.Cb(1),r.lc("ngIf",t.hintLabel)}}const j=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],L=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let N=0;const P=new r.s("MatError");let F=(()=>{class t{constructor(){this.id="mat-error-"+N++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&r.Db("id",e.id)},inputs:{id:"id"},features:[r.Bb([{provide:P,useExisting:t}])]}),t})();const M={transitionMessages:Object(m.m)("transitionMessages",[Object(m.j)("enter",Object(m.k)({opacity:1,transform:"translateY(0%)"})),Object(m.l)("void => enter",[Object(m.k)({opacity:0,transform:"translateY(-100%)"}),Object(m.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t}),t})(),z=0;const B=new r.s("MatHint");let H=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+z++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(r.Db("id",e.id)("align",null),r.Fb("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[r.Bb([{provide:B,useExisting:t}])]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-label"]]}),t})(),X=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-placeholder"]]}),t})();const q=new r.s("MatPrefix");let $=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["","matPrefix",""]],features:[r.Bb([{provide:q,useExisting:t}])]}),t})();const W=new r.s("MatSuffix");let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["","matSuffix",""]],features:[r.Bb([{provide:W,useExisting:t}])]}),t})(),G=0;class Y{constructor(t){this._elementRef=t}}const Q=Object(a.w)(Y,"primary"),Z=new r.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),J=new r.s("MatFormField");let tt=(()=>{class t extends Q{constructor(t,e,i,n,s,r,a,o){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=r,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+G++,this._labelId="mat-form-field-label-"+G++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,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(o.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(c.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||"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,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.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,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),a=t.children,o=this._getStartEnd(a[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let a=0;a{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.c,a.i,n.c],a.i]}),t})()},lJxs:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("7o/Q");function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new a(t,this.project,this.thisArg))}}class a extends n.a{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},lR5k:function(t,e,i){"use strict";i.d(e,"a",function(){return m}),i.d(e,"b",function(){return f}),i.d(e,"c",function(){return h});var n=i("fXoL"),s=i("ofXK"),r=i("OnMO"),a=i("tk/3"),o=i("jhN1"),l=i("lJxs");i("SxV6");const c=["*"];class h{}const u=new n.s("SECURITY_CONTEXT");let d=(()=>{class t{constructor(t,e,i,n,s){this.platform=t,this.securityContext=e,this.http=i,this.sanitizer=s,this.initialMarkedOptions={renderer:new r.Renderer},this.options=n}get options(){return this._options}set options(t){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),t)}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}compile(t,e=!1,i=!1,n=this.options){const s=this.trimIndentation(t),a=e?this.decodeHtml(s):s,o=i?this.renderEmoji(a):a,l=Object(r.parse)(o,n);return this.sanitizer.sanitize(this.securityContext,l)||""}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe(Object(l.a)(e=>this.handleExtension(t,e)))}highlight(t){if(Object(s.v)(this.platform)&&"undefined"!=typeof Prism){t||(t=document);const e=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(e,t=>t.classList.add("language-none")),Prism.highlightAllUnder(t)}}renderKatex(t,e){if(!Object(s.v)(this.platform))return t;if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return t.replace(/\$([^\s][^$]*?[^\s])\$/gm,(t,i)=>katex.renderToString(i,e))}decodeHtml(t){if(!Object(s.v)(this.platform))return t;const e=document.createElement("textarea");return e.innerHTML=t,e.value}handleExtension(t,e){const i=t?t.split("?")[0].split(".").splice(-1).join():null;return"md"!==i?"```"+i+"\n"+e+"\n```":e}renderEmoji(t){if(!Object(s.v)(this.platform))return t;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}trimIndentation(t){if(!t)return"";let e;return t.split("\n").map(t=>{let i=e;return t.length>0&&(i=isNaN(i)?t.search(/\S|$/):Math.min(t.search(/\S|$/),i)),isNaN(e)&&(e=i),i?t.substring(i):t}).join("\n")}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(n.D),n.Xb(u),n.Xb(a.a,8),n.Xb(h,8),n.Xb(o.b))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();var p=function(t){return t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}({});let m=(()=>{class t{constructor(t,e){this.element=t,this.markdownService=e,this.error=new n.o,this.load=new n.o,this.ready=new n.o,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}get emoji(){return this._emoji}set emoji(t){this._emoji=this.coerceBooleanProperty(t)}get katex(){return this._katex}set katex(t){this._katex=this.coerceBooleanProperty(t)}get lineHighlight(){return this._lineHighlight}set lineHighlight(t){this._lineHighlight=this.coerceBooleanProperty(t)}get lineNumbers(){return this._lineNumbers}set lineNumbers(t){this._lineNumbers=this.coerceBooleanProperty(t)}ngOnChanges(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){this.data||this.src||this.handleTransclusion()}render(t,e=!1){let i=this.markdownService.compile(t,e,this.emoji);i=this.katex?this.markdownService.renderKatex(i,this.katexOptions):i,this.element.nativeElement.innerHTML=i,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}coerceBooleanProperty(t){return null!=t&&""+t!="false"}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe(t=>{this.render(t),this.load.emit(t)},t=>this.error.emit(t))}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,p.LineHighlight),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,p.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(t,e){const i=t.querySelectorAll("pre");for(let n=0;n{const s=e[t];if(s){const e=this.toLispCase(t);i.item(n).setAttribute(e,s.toString())}})}toLispCase(t){const e=t.match(/([A-Z])/g);if(!e)return t;let i=t.toString();for(let n=0,s=e.length;n{class t{static forRoot(e){return{ngModule:t,providers:[d,e&&e.loader||[],e&&e.markedOptions||[],{provide:u,useValue:e&&null!=e.sanitize?e.sanitize:n.K.HTML}]}}static forChild(){return{ngModule:t}}}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})()},n6bG:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,"a",function(){return n})},nLfN:function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return l}),i.d(e,"c",function(){return _}),i.d(e,"d",function(){return b}),i.d(e,"e",function(){return h}),i.d(e,"f",function(){return f}),i.d(e,"g",function(){return g});var n=i("fXoL"),s=i("ofXK");let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){r=!1}let a,o=(()=>{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)(n.Xb(n.D))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(n.D))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(c),a;let t=document.createElement("input");return a=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),a}let u,d,p,m;function f(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 g(){if(null==p)if("object"==typeof document&&document||(p=!1),"scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),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==m){const t="undefined"!=typeof document?document.head:null;m=!(!t||!t.createShadowRoot&&!t.attachShadow)}return m}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},nYR2:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("7o/Q"),s=i("quSY");function r(t){return e=>e.lift(new a(t))}class a{constructor(t){this.callback=t}call(t,e){return e.subscribe(new o(t,this.callback))}}class o extends n.a{constructor(t,e){super(t),this.add(new s.a(e))}}},ngJS:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=t=>e=>{for(let i=0,n=t.length;i{class t{constructor(t){this.http=t,this.apiUrl=h.a.apiurl_root+"/odata/",this.uploadUrl=h.a.apiurl_root+"/api/ImageUpload",this.isMetadataLoaded=!1,this.metadataInfo="",this.mockedKnowledgeItem=[],this.mockedExerciseItem=[],this.previewObjList=[],this.bufferedKnowledgeItems=[],this.bufferedExerciseItems=[]}getMetadata(t){if(!this.isMetadataLoaded||t){let t=new n.c;t=t.append("Content-Type","application/xml,application/json").append("Accept","text/html,application/xhtml+xml,application/xml");let e=this.apiUrl+"$metadata";return h.a.mockdata&&(e=h.a.basehref+"assets/mockdata/metadata.xml"),this.http.get(e,{headers:t,responseType:"text"}).pipe(Object(o.a)(t=>(this.isMetadataLoaded=!0,this.metadataInfo=t,this.metadataInfo)),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}return Object(r.a)(this.metadataInfo)}getKnowledgeItems(t=30,e=0,i,a){if(h.a.mockdata&&this.mockedKnowledgeItem.length>0)return Object(r.a)({totalCount:this.mockedKnowledgeItem.length,items:this.mockedKnowledgeItem});let u=new n.c;u=u.append("Content-Type","application/json").append("Accept","application/json");let d=new n.d;d=d.append("$top",t.toString()),d=d.append("$skip",e.toString()),d=d.append("$count","true"),i&&"createdat"===i&&(d=d.append("$orderby","CreatedAt "+a)),d=d.append("$select","ID,Category,Title,CreatedAt,ModifiedAt");let p=this.apiUrl+"KnowledgeItems";return h.a.mockdata&&(p=h.a.basehref+"assets/mockdata/knowledge-items.json",d=new n.d),this.http.get(p,{headers:u,params:d}).pipe(Object(o.a)(t=>{const e=t,i=[];return e.value.forEach(t=>{const e=new c.f;e.parseData(t),i.push(e)}),h.a.mockdata&&(this.mockedKnowledgeItem=i.slice()),{totalCount:e["@odata.count"],items:i}}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}readKnowledgeItem(t,e=!1){if(h.a.mockdata){const e=this.mockedKnowledgeItem.findIndex(e=>e.ID===t);return-1!==e?Object(r.a)(this.mockedKnowledgeItem[e]):Object(r.a)(new c.f)}const i=this.bufferedKnowledgeItems.findIndex(e=>e.ID===t);if(!e&&-1!==i)return Object(r.a)(this.bufferedKnowledgeItems[i]);let a=new n.c;a=a.append("Content-Type","application/json").append("Accept","application/json");let u=new n.d;return u=u.append("$select","ID,Category,Title,Content"),u=u.append("$expand","Tags"),this.http.get(`${this.apiUrl}KnowledgeItems(${t})`,{headers:a,params:u}).pipe(Object(o.a)(t=>{const e=t,n=new c.f;return n.parseData(e),-1===i?this.bufferedKnowledgeItems.push(n):this.bufferedKnowledgeItems[i]=n,n}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}createKnowledgeItem(t){if(h.a.mockdata)return Object(s.a)("Cannot create in mock mode");let e=new n.c;e=e.append("Content-Type","application/json").append("Accept","application/json");const i=t.generateString();return this.http.post(this.apiUrl+"KnowledgeItems",i,{headers:e}).pipe(Object(o.a)(t=>{const e=t,i=new c.f;return i.parseData(e),this.bufferedKnowledgeItems.push(i),i}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}changeKnowledgeItem(t){if(h.a.mockdata)return Object(s.a)("Cannot change in mock mode");let e=new n.c;e=e.append("Content-Type","application/json").append("Accept","application/json");const i=t.generateString(!0);return this.http.put(`${this.apiUrl}KnowledgeItems(${t.ID})`,i,{headers:e}).pipe(Object(o.a)(t=>{const e=t,i=new c.f;i.parseData(e);const n=this.bufferedKnowledgeItems.findIndex(t=>t.ID===i.ID);return-1===n?this.bufferedKnowledgeItems.push(i):this.bufferedKnowledgeItems[n]=i,i}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}getExerciseItems(t=30,e=0,i,a){if(h.a.mockdata&&this.mockedExerciseItem.length>0)return Object(r.a)({totalCount:this.mockedExerciseItem.length,items:this.mockedExerciseItem});let u=new n.c;u=u.append("Content-Type","application/json").append("Accept","application/json");let d=new n.d;d=d.append("$top",t.toString()),d=d.append("$skip",e.toString()),d=d.append("$count","true"),i&&"createdat"===i&&(d=d.append("$orderby","CreatedAt "+a)),d=d.append("$select","ID,KnowledgeItemID,ExerciseType,CreatedAt"),d=d.append("$expand","Tags");let p=this.apiUrl+"ExerciseItems";return h.a.mockdata&&(p=h.a.basehref+"assets/mockdata/exercise-items.json",d=new n.d),this.http.get(p,{headers:u,params:d}).pipe(Object(o.a)(t=>{const e=t,i=[];return e.value.forEach(t=>{const e=new c.d;e.parseData(t),i.push(e)}),h.a.mockdata&&(this.mockedExerciseItem=i.slice()),{totalCount:e["@odata.count"],items:i}}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}createExerciseItem(t){if(h.a.mockdata)return Object(s.a)("Cannot create in mock mode");let e=new n.c;e=e.append("Content-Type","application/json").append("Accept","application/json");const i=t.generateString();return this.http.post(this.apiUrl+"ExerciseItems",i,{headers:e}).pipe(Object(o.a)(t=>{const e=t,i=new c.d;return i.parseData(e),this.bufferedExerciseItems.push(i),i}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}changeExerciseItem(t){if(h.a.mockdata)return Object(s.a)("Cannot change in mock mode");let e=new n.c;e=e.append("Content-Type","application/json").append("Accept","application/json");const i=t.generateString(!0);return this.http.put(`${this.apiUrl}ExerciseItems(${t.ID})`,i,{headers:e}).pipe(Object(o.a)(t=>{const e=t,i=new c.d;i.parseData(e);const n=this.bufferedExerciseItems.findIndex(t=>t.ID===i.ID);return-1===n?this.bufferedExerciseItems.push(i):this.bufferedExerciseItems[n]=i,i}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}readExerciseItem(t,e=!1){if(h.a.mockdata){const e=this.mockedExerciseItem.findIndex(e=>e.ID===t);return-1!==e?Object(r.a)(this.mockedExerciseItem[e]):Object(r.a)(new c.d)}const i=this.bufferedExerciseItems.findIndex(e=>e.ID===t);if(!e&&-1!==i)return Object(r.a)(this.bufferedExerciseItems[i]);let a=new n.c;a=a.append("Content-Type","application/json").append("Accept","application/json");let u=new n.d;return u=u.append("$select","ID,KnowledgeItemID,ExerciseType,Content,CreatedAt,ModifiedAt"),u=u.append("$expand","Tags,Answer"),this.http.get(`${this.apiUrl}ExerciseItems(${t})`,{headers:a,params:u}).pipe(Object(o.a)(t=>{const e=new c.d;return e.parseData(t),-1===i?this.bufferedExerciseItems.push(e):this.bufferedExerciseItems[i]=e,e}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}uploadFiles(t){const e={};return t.forEach(t=>{const i=new FormData;i.append("file",t,t.name);const s=new n.e("POST",this.uploadUrl,i),r=new a.a;this.http.request(s).subscribe(t=>{if(t instanceof n.f){const e=t.body[0];r.next({delete_type:e.delete_type,delete_url:`${h.a.apiurl_root}${e.delete_url}`,name:e.name,progress:1,size:e.size,thumbnail_url:`${h.a.apiurl_root}${e.thumbnail_url}`,type:e.type,url:`${h.a.apiurl_root}${e.url}`}),r.complete()}}),e[t.name]={result:r.asObservable()}}),e}getTagCounts(){let t=new n.c;t=t.append("Content-Type","application/json").append("Accept","application/json");let e=new n.d;e=e.append("$top","100"),e=e.append("$count","true");let i=this.apiUrl+"TagCounts";return h.a.mockdata&&(i=h.a.basehref+"assets/mockdata/tag-counts.json",e=new n.d),this.http.get(i,{headers:t,params:e}).pipe(Object(o.a)(t=>{const e=t,i=[];return e.value.forEach(t=>{const e=new c.p;e.parseData(t),i.push(e)}),{totalCount:e["@odata.count"],items:i}}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}getTags(t,e){let i=new n.c;i=i.append("Content-Type","application/json").append("Accept","application/json");let r=new n.d;r=r.append("$top","100"),r=r.append("$count","true"),r=r.append("$filter",`TagTerm eq '${t}'`);let a=this.apiUrl+"Tags";return h.a.mockdata&&(a=h.a.basehref+"assets/mockdata/tags.json",r=new n.d),this.http.get(a,{headers:i,params:r}).pipe(Object(o.a)(t=>{const e=t,i=[];return e.value.forEach(t=>{const e=new c.o;e.parseData(t),i.push(e)}),{totalCount:e["@odata.count"],items:i}}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}getOverviewInfo(){let t=new n.c;t=t.append("Content-Type","application/json").append("Accept","application/json");let e=this.apiUrl+"OverviewInfos";return h.a.mockdata&&(e=h.a.basehref+"assets/mockdata/overview-infos.json"),this.http.get(e,{headers:t}).pipe(Object(o.a)(t=>{const e=[];return t.value.forEach(t=>{const i=new c.j;i.parseData(t),e.push(i)}),e}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}}return t.\u0275fac=function(e){return new(e||t)(u.Xb(n.a))},t.\u0275prov=u.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),p=(()=>{class t{constructor(){this.currentQuizID=0,this.elderQuizs=[],this.failedItems=[],this.currScore=0}get NextQuizID(){return this.currentQuizID+1}get ActiveQuiz(){return this.curQuiz}get ElderQuizs(){return this.elderQuizs}get FailedQuizItems(){return this.failedItems}set FailedQuizItems(t){this.failedItems=t}get CurrentScore(){return this.currScore}set CurrentScore(t){this.currScore=t}startNewQuiz(t){if(this.curQuiz)throw new Error("Active Quiz not yet completed");return this.curQuiz=new c.k(t),this.currentQuizID=t,this.curQuiz}completeActiveQuiz(){if(!this.curQuiz)throw new Error("Active Quiz not exist");if(this.curQuiz.ActiveSection)throw new Error("Active Quiz has active section");this.elderQuizs.push(this.curQuiz),this.curQuiz=void 0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=u.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m=(()=>{class t{canDeactivate(t){return!t.canDeactivate||t.canDeactivate()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=u.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},ofXK:function(t,e,i){"use strict";i.d(e,"a",function(){return v}),i.d(e,"b",function(){return It}),i.d(e,"c",function(){return jt}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return Tt}),i.d(e,"f",function(){return Rt}),i.d(e,"g",function(){return x}),i.d(e,"h",function(){return u}),i.d(e,"i",function(){return C}),i.d(e,"j",function(){return _}),i.d(e,"k",function(){return dt}),i.d(e,"l",function(){return mt}),i.d(e,"m",function(){return gt}),i.d(e,"n",function(){return Ct}),i.d(e,"o",function(){return vt}),i.d(e,"p",function(){return wt}),i.d(e,"q",function(){return xt}),i.d(e,"r",function(){return kt}),i.d(e,"s",function(){return w}),i.d(e,"t",function(){return c}),i.d(e,"u",function(){return Ft}),i.d(e,"v",function(){return Nt}),i.d(e,"w",function(){return Pt}),i.d(e,"x",function(){return o}),i.d(e,"y",function(){return Lt}),i.d(e,"z",function(){return r}),i.d(e,"A",function(){return ut}),i.d(e,"B",function(){return a});var n=i("fXoL");let s=null;function r(){return s}function a(t){s||(s=t)}class o{}const l=new n.s("DocumentToken");let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Jb)({factory:h,token:t,providedIn:"platform"}),t})();function h(){return Object(n.Xb)(d)}const u=new n.s("Location Initialized");let d=(()=>{class t extends c{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,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(l))},t.\u0275prov=Object(n.Jb)({factory:m,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function m(){return new d(Object(n.Xb)(l))}function f(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Jb)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(n.Xb)(l).location;return new w(Object(n.Xb)(c),e&&e.origin||"")}const v=new n.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 f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(c),n.Xb(v,8))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),x=(()=>{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=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));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)(n.Xb(c),n.Xb(v,8))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new n.o,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(S(i)),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,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}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(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(_),n.Xb(c))},t.normalizeQueryParams=b,t.joinWithSlash=f,t.stripTrailingSlash=g,t.\u0275prov=Object(n.Jb)({factory:k,token:t,providedIn:"root"}),t})();function k(){return new C(Object(n.Xb)(_),Object(n.Xb)(c))}function S(t){return t.replace(/\/index.html$/,"")}var O=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),E=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),A=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),D=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 R(t,e){return M(Object(n.mb)(t)[n.db.DateFormat],e)}function j(t,e){return M(Object(n.mb)(t)[n.db.TimeFormat],e)}function L(t,e){return M(Object(n.mb)(t)[n.db.DateTimeFormat],e)}function N(t,e){const i=Object(n.mb)(t),s=i[n.db.NumberSymbols][e];if(void 0===s){if(e===T.CurrencyDecimal)return i[n.db.NumberSymbols][T.Decimal];if(e===T.CurrencyGroup)return i[n.db.NumberSymbols][T.Group]}return s}const P=n.pb;function F(t){if(!t[n.db.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.db.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function M(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function V(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,B={},H=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|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 U=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),X=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 $(t,e,i,n){let s=function(t){if(st(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,i,n]=t.split("-").map(t=>+t);return new Date(e,i-1,n)}let i;if(i=t.match(z))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-i,o=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,a,o,l,c),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=W(i,e)||e;let r,a=[];for(;e;){if(r=H.exec(e),!r){a.push(e);break}{a=a.concat(r.slice(1));const t=a.pop();if(!t)break;e=t}}let o=s.getTimezoneOffset();n&&(o=nt(n,o),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(s,n));let l="";return a.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=Q(q.Eras,D.Abbreviated);break;case"GGGG":e=Q(q.Eras,D.Wide);break;case"GGGGG":e=Q(q.Eras,D.Narrow);break;case"y":e=Y(X.FullYear,1,0,!1,!0);break;case"yy":e=Y(X.FullYear,2,0,!0,!0);break;case"yyy":e=Y(X.FullYear,3,0,!1,!0);break;case"yyyy":e=Y(X.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=Y(X.Month,1,1);break;case"MM":case"LL":e=Y(X.Month,2,1);break;case"MMM":e=Q(q.Months,D.Abbreviated);break;case"MMMM":e=Q(q.Months,D.Wide);break;case"MMMMM":e=Q(q.Months,D.Narrow);break;case"LLL":e=Q(q.Months,D.Abbreviated,A.Standalone);break;case"LLLL":e=Q(q.Months,D.Wide,A.Standalone);break;case"LLLLL":e=Q(q.Months,D.Narrow,A.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=Y(X.Date,1);break;case"dd":e=Y(X.Date,2);break;case"E":case"EE":case"EEE":e=Q(q.Days,D.Abbreviated);break;case"EEEE":e=Q(q.Days,D.Wide);break;case"EEEEE":e=Q(q.Days,D.Narrow);break;case"EEEEEE":e=Q(q.Days,D.Short);break;case"a":case"aa":case"aaa":e=Q(q.DayPeriods,D.Abbreviated);break;case"aaaa":e=Q(q.DayPeriods,D.Wide);break;case"aaaaa":e=Q(q.DayPeriods,D.Narrow);break;case"b":case"bb":case"bbb":e=Q(q.DayPeriods,D.Abbreviated,A.Standalone,!0);break;case"bbbb":e=Q(q.DayPeriods,D.Wide,A.Standalone,!0);break;case"bbbbb":e=Q(q.DayPeriods,D.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":e=Q(q.DayPeriods,D.Abbreviated,A.Format,!0);break;case"BBBB":e=Q(q.DayPeriods,D.Wide,A.Format,!0);break;case"BBBBB":e=Q(q.DayPeriods,D.Narrow,A.Format,!0);break;case"h":e=Y(X.Hours,1,-12);break;case"hh":e=Y(X.Hours,2,-12);break;case"H":e=Y(X.Hours,1);break;case"HH":e=Y(X.Hours,2);break;case"m":e=Y(X.Minutes,1);break;case"mm":e=Y(X.Minutes,2);break;case"s":e=Y(X.Seconds,1);break;case"ss":e=Y(X.Seconds,2);break;case"S":e=Y(X.FractionalSeconds,1);break;case"SS":e=Y(X.FractionalSeconds,2);break;case"SSS":e=Y(X.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Z(U.Short);break;case"ZZZZZ":e=Z(U.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Z(U.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Z(U.Long);break;default:return null}return it[t]=e,e}(t);l+=e?e(s,i,o):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function W(t,e){const i=function(t){return Object(n.mb)(t)[n.db.LocaleId]}(t);if(B[i]=B[i]||{},B[i][e])return B[i][e];let s="";switch(e){case"shortDate":s=R(t,I.Short);break;case"mediumDate":s=R(t,I.Medium);break;case"longDate":s=R(t,I.Long);break;case"fullDate":s=R(t,I.Full);break;case"shortTime":s=j(t,I.Short);break;case"mediumTime":s=j(t,I.Medium);break;case"longTime":s=j(t,I.Long);break;case"fullTime":s=j(t,I.Full);break;case"short":const e=W(t,"shortTime"),i=W(t,"shortDate");s=K(L(t,I.Short),[e,i]);break;case"medium":const n=W(t,"mediumTime"),r=W(t,"mediumDate");s=K(L(t,I.Medium),[n,r]);break;case"long":const a=W(t,"longTime"),o=W(t,"longDate");s=K(L(t,I.Long),[a,o]);break;case"full":const l=W(t,"fullTime"),c=W(t,"fullDate");s=K(L(t,I.Full),[l,c])}return s&&(B[i][e]=s),s}function K(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function G(t,e,i="-",n,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=i));let a=String(t);for(;a.length0||o>-i)&&(o+=i),t===X.Hours)0===o&&-12===i&&(o=12);else if(t===X.FractionalSeconds)return l=e,G(o,3).substr(0,l);var l;const c=N(a,T.MinusSign);return G(o,e,c,n,s)}}function Q(t,e,i=A.Format,s=!1){return function(r,a){return function(t,e,i,s,r,a){switch(i){case q.Months:return function(t,e,i){const s=Object(n.mb)(t),r=M([s[n.db.MonthsFormat],s[n.db.MonthsStandalone]],e);return M(r,i)}(e,r,s)[t.getMonth()];case q.Days:return function(t,e,i){const s=Object(n.mb)(t),r=M([s[n.db.DaysFormat],s[n.db.DaysStandalone]],e);return M(r,i)}(e,r,s)[t.getDay()];case q.DayPeriods:const o=t.getHours(),l=t.getMinutes();if(a){const t=function(t){const e=Object(n.mb)(t);return F(e),(e[n.db.ExtraData][2]||[]).map(t=>"string"==typeof t?V(t):[V(t[0]),V(t[1])])}(e),i=function(t,e,i){const s=Object(n.mb)(t);F(s);const r=M([s[n.db.ExtraData][0],s[n.db.ExtraData][1]],e)||[];return M(r,i)||[]}(e,r,s),a=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=o>=e.hours&&l>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case U.Short:return(s>=0?"+":"")+G(a,2,r)+G(Math.abs(s%60),2,r);case U.ShortGMT:return"GMT"+(s>=0?"+":"")+G(a,1,r);case U.Long:return"GMT"+(s>=0?"+":"")+G(a,2,r)+":"+G(Math.abs(s%60),2,r);case U.Extended:return 0===n?"Z":(s>=0?"+":"")+G(a,2,r)+":"+G(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function J(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=J(i),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return G(s,t,N(n,T.MinusSign))}}function et(t,e=!1){return function(i,n){return G(J(i).getFullYear(),t,N(n,T.MinusSign),e)}}const it={};function nt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}const rt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,at=".",ot="0";function lt(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class ct{}let ht=(()=>{class t extends ct{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(P(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(n.w))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();function ut(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let dt=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,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(n.sb)(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(n.xb)(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)(n.Nb(n.u),n.Nb(n.v),n.Nb(n.l),n.Nb(n.G))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class pt{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 mt=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,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,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new pt(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new ft(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const r=new ft(t,s);e.push(r)}});for(let i=0;i{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)(n.Nb(n.R),n.Nb(n.N),n.Nb(n.u))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ft{constructor(t,e){this.record=t,this.view=e}}let gt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new bt,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){_t("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){_t("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)(n.Nb(n.R),n.Nb(n.N))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class bt{constructor(){this.$implicit=null,this.ngIf=null}}function _t(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(n.xb)(e)}'.`)}class yt{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 vt=(()=>{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,i){this.ngSwitch=i,i._addCase(),this._view=new yt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.R),n.Nb(n.N),n.Nb(vt,1))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),xt=(()=>{class t{constructor(t,e,i){i._addDefault(new yt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.R),n.Nb(n.N),n.Nb(vt,1))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Ct=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,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[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_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)(n.Nb(n.l),n.Nb(n.v),n.Nb(n.G))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),kt=(()=>{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||{}),i=Object.keys(t.currentValue||{});if(e.length===i.length){for(let t of i)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)(n.Nb(n.R))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.Ab]}),t})();function St(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(n.xb)(t)}'`)}class Ot{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Et{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const At=new Et,Dt=new Ot;let It=(()=>{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(n.ub)(e))return At;if(Object(n.tb)(e))return Dt;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)(n.Zb())},t.\u0275pipe=n.Mb({name:"async",type:t,pure:!1}),t})(),Tt=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return $(e,i,s||this.locale,n)}catch(r){throw St(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.w))},t.\u0275pipe=n.Mb({name:"date",type:t,pure:!0}),t})(),Rt=(()=>{class t{constructor(t){this._locale=t}transform(e,i,s){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;s=s||this._locale;try{return function(t,e,i){return function(t,e,i,n,s,r,a=!1){let o="",l=!1;if(isFinite(t)){let c=function(t){let e,i,n,s,r,a=Math.abs(t)+"",o=0;for((i=a.indexOf(at))>-1&&(a=a.replace(at,"")),(n=a.search(/e/i))>0?(i<0&&(i=n),i+=+a.slice(n+1),a=a.substring(0,n)):i<0&&(i=a.length),n=0;a.charAt(n)===ot;n++);if(n===(r=a.length))e=[0],i=1;else{for(r--;a.charAt(r)===ot;)r--;for(i-=n,e=[],s=0;n<=r;n++,s++)e[s]=Number(a.charAt(n))}return i>22&&(e=e.splice(0,21),o=i-1,i=1),{digits:e,exponent:o,integerLen:i}}(t);a&&(c=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}(c));let h=e.minInt,u=e.minFrac,d=e.maxFrac;if(r){const t=r.match(rt);if(null===t)throw new Error(r+" is not a valid digit info");const e=t[1],i=t[3],n=t[5];null!=e&&(h=lt(e)),null!=i&&(u=lt(i)),null!=n?d=lt(n):null!=i&&u>d&&(d=u)}!function(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let n=t.digits,s=n.length-t.integerLen;const r=Math.min(Math.max(e,s),i);let a=r+t.integerLen,o=n[a];if(a>0){n.splice(Math.max(t.integerLen,a));for(let t=a;t=5)if(a-1<0){for(let e=0;e>a;e--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[a-1]++;for(;s=c?n.pop():l=!1),e>=10?1:0},0);h&&(n.unshift(h),t.integerLen++)}(c,u,d);let p=c.digits,m=c.integerLen;const f=c.exponent;let g=[];for(l=p.every(t=>!t);m0?g=p.splice(m,p.length):(g=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("")),o=b.join(N(i,n)),g.length&&(o+=N(i,s)+g.join("")),f&&(o+=N(i,T.Exponential)+"+"+f)}else o=N(i,T.Infinity);return o=t<0&&!l?e.negPre+o+e.negSuf:e.posPre+o+e.posSuf,o}(t,function(t,e="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],a=-1!==s.indexOf(at)?s.split(at):[s.substring(0,s.lastIndexOf(ot)+1),s.substring(s.lastIndexOf(ot)+1)],o=a[0],l=a[1]||"";i.posPre=o.substr(0,o.indexOf("#"));for(let h=0;h{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[{provide:ct,useClass:ht}]}),t})();const Lt="browser";function Nt(t){return t===Lt}function Pt(t){return"server"===t}let Ft=(()=>{class t{}return t.\u0275prov=Object(n.Jb)({token:t,providedIn:"root",factory:()=>new Mt(Object(n.Xb)(l),window,Object(n.Xb)(n.n))}),t})();class Mt{constructor(t,e,i){this.document=t,this.window=e,this.errorHandler=i,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Vt(this.window.history)||Vt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Vt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},pD6V:function(t,e,i){"use strict";i.d(e,"c",function(){return p}),i.d(e,"d",function(){return g}),i.d(e,"e",function(){return b}),i.d(e,"g",function(){return _}),i.d(e,"a",function(){return y}),i.d(e,"b",function(){return k}),i.d(e,"i",function(){return W}),i.d(e,"h",function(){return K}),i.d(e,"j",function(){return G}),i.d(e,"f",function(){return Q});var n=i("fXoL"),s=i("ofXK"),r=i("XNiG"),a=i("2Vo4"),o=i("HDdC"),l=i("VRyK"),c=(i("7Hc7"),i("LRne"),i("xgIS"),i("pLZG")),h=(i("lJxs"),i("Kj3r"),i("eIep"),i("1G5W"),i("IzEk"),i("vkgz"));const u={provide:n.b,useFactory:function(t,e){return()=>{if(Object(s.v)(e)){const e=Array.from(t.querySelectorAll(`[class*=${d}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(d+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")})}}},deps:[s.d,n.D],multi:!0},d="flex-layout-";let p=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[u]}),t})();class m{constructor(t=!1,e="all",i="",n="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=n,this.priority=s,this.property=""}clone(){return new m(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let f=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,i){const n=this.stylesheet.get(t);n?n.set(e,i):this.stylesheet.set(t,new Map([[e,i]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const i=this.stylesheet.get(t);let n="";if(i){const t=i.get(e);"number"!=typeof t&&"string"!=typeof t||(n=t+"")}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const g={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},b=new n.s("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>g}),_=new n.s("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),y=new n.s("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function v(t,e){return t=t?t.clone():new m,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const w="inline",x=["row","column","row-reverse","column-reverse"];function C(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let k=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.styleBuilder=e,this.styler=i,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new r.a,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const i=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,i)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const i=this.styleBuilder,n=i.shouldCache;let s=this.styleCache.get(t);s&&n||(s=i.buildStyles(t,e),n&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),i.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[i,n]=this.styler.getFlowDirection(t);if(!n&&e){const e=function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return x.find(t=>t===e)||(e=x[0]),i===w&&(i=n!==w?n:"",n=w),[e,C(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(i);this.styler.applyStyleToElements(e,[t])}return i.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,i=this.nativeElement){this.styler.applyStyleToElement(i,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){n.ac()},t.\u0275dir=n.Ib({type:t,features:[n.Ab]}),t})();const S=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],O="(orientation: portrait) and (max-width: 599.98px)",E="(orientation: landscape) and (max-width: 959.98px)",A="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",D="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",I="(orientation: portrait) and (min-width: 840px)",T="(orientation: landscape) and (min-width: 1280px)",R={HANDSET:`${O}, ${E}`,TABLET:`${A} , ${D}`,WEB:`${I}, ${T} `,HANDSET_PORTRAIT:""+O,TABLET_PORTRAIT:A+" ",WEB_PORTRAIT:""+I,HANDSET_LANDSCAPE:""+E,TABLET_LANDSCAPE:""+D,WEB_LANDSCAPE:""+T},j=[{alias:"handset",priority:2e3,mediaQuery:R.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:R.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:R.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:R.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:R.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:R.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:R.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:R.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:R.WEB_PORTRAIT,overlapping:!0}],L=/(\.|-|_)/g;function N(t){let e=t.length>0?t.charAt(0):"",i=t.length>1?t.slice(1):"";return e.toUpperCase()+i}const P=new n.s("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Object(n.X)(y),e=Object(n.X)(b),i=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const i={};return t.forEach(t=>{i[t.alias]=t}),e.forEach(t=>{i[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}(i[t.alias],t):i[t.alias]=t}),(n=Object.keys(i).map(t=>i[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(L,"|").split("|").map(N).join(""),t.overlapping=!!t.overlapping)}),n;var n}((e.disableDefaultBps?[]:S).concat(e.addOrientationBps?j:[]),i)}});function F(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function M(t,e){return(t.priority||0)-(e.priority||0)}let V=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(M)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let i=this.findByMap.get(t);return i||(i=this.items.find(e)||null,this.findByMap.set(t,i)),i||null}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(P))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(P))},token:t,providedIn:"root"}),t})(),z=(()=>{class t{constructor(t,e,i){this._zone=t,this._platformId=e,this._document=i,this.source=new a.a(new m(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,i)=>{e.matches&&t.push(i)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const i=this._observable$.pipe(Object(c.a)(i=>!e||t.indexOf(i.mediaQuery)>-1)),n=new o.a(e=>{const i=this.registerQuery(t);if(i.length){const t=i.pop();i.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()});return Object(l.a)(n,i)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],i=[];return function(t,e){const i=t.filter(t=>!B[t]);if(i.length>0){const t=i.join(", ");try{const n=e.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(n),i.forEach(t=>B[t]=n)}catch(n){console.error(n)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new m(e.matches,t)))};let n=this.registry.get(t);n||(n=this.buildMQL(t),n.addListener(e),this.pendingRemoveListenerFns.push(()=>n.removeListener(e)),this.registry.set(t,n)),n.matches&&i.push(new m(!0,t))}),i}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Object(s.v)(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(n.B),n.Xb(n.D),n.Xb(s.d))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(n.B),Object(n.Xb)(n.D),Object(n.Xb)(s.d))},token:t,providedIn:"root"}),t})();const B={},H="print",U={alias:H,mediaQuery:H,priority:1e3};let X=(()=>{class t{constructor(t,e,i){this.breakpoints=t,this.layoutConfig=e,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new q,this.deactivations=[]}withPrintQuery(t){return[...t,H]}isPrintEvent(t){return t.mediaQuery.startsWith(H)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(F)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),v(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new m(!0,H))),t.updateStyles())},i=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(i)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(F))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(V),n.Xb(b),n.Xb(s.d))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(V),Object(n.Xb)(b),Object(n.Xb)(s.d))},token:t,providedIn:"root"}),t})();class q{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(U),t.sort(F),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(H)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function $(t){for(let e in t){let i=t[e]||"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=i;break;case"flex-direction":i=i||"row",t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}let W=(()=>{class t{constructor(t,e,i,n){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=i,this.layoutConfig=n}applyStyleToElement(t,e,i=null){let n={};"string"==typeof e&&(n[e]=i,e=n),n=this.layoutConfig.disableVendorPrefixes?e:$(e),this._applyMultiValueStyleToElement(n,t)}applyStyleToElements(t,e=[]){const i=this.layoutConfig.disableVendorPrefixes?t:$(t);e.forEach(t=>{this._applyMultiValueStyleToElement(i,t)})}getFlowDirection(t){const e="flex-direction";let i=this.lookupStyle(t,e);return[i||"row",this.lookupInlineStyle(t,e)||Object(s.w)(this._platformId)&&this._serverModuleLoaded?i:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Object(s.v)(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,i=!1){let n="";return t&&((n=this.lookupInlineStyle(t,e))||(Object(s.v)(this._platformId)?i||(n=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(t,e)))),n?n.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(i=>{const n=t[i],r=Array.isArray(n)?n:[n];r.sort();for(let t of r)t=t?t+"":"",Object(s.v)(this._platformId)||!this._serverModuleLoaded?Object(s.v)(this._platformId)?e.style.setProperty(i,t):this._setServerStyle(e,i,t):this._serverStylesheet.addStyleToElement(e,i,t)})}_setServerStyle(t,e,i){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(t);n[e]=i||"",this._writeStyleAttribute(t,n)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},i=t.getAttribute("style");if(i){const t=i.split(/;+/g);for(let i=0;i0){const t=n.indexOf(":");if(-1===t)throw new Error("Invalid CSS style: "+n);e[n.substr(0,t).trim()]=n.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let i="";for(const n in e)e[n]&&(i+=n+":"+e[n]+";");t.setAttribute("style",i)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(f),n.Xb(_),n.Xb(n.D),n.Xb(b))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(f),Object(n.Xb)(_),Object(n.Xb)(n.D),Object(n.Xb)(b))},token:t,providedIn:"root"}),t})();class K{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}function G(t,e="1",i="1"){let n=[e,i,t],s=t.indexOf("calc");if(s>0){n[2]=Y(t.substring(s).trim());let e=t.substr(0,s).trim().split(" ");2==e.length&&(n[0]=e[0],n[1]=e[1])}else if(0==s)n[2]=Y(t.trim());else{let s=t.split(" ");n=3===s.length?s:[e,i,t]}return n}function Y(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let Q=(()=>{class t{constructor(t,e,i){this.matchMedia=t,this.breakpoints=e,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new r.a,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=v(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(F),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(F),this.updateStyles()))}init(t,e,i,n,s=[]){Z(this.updateMap,t,e,i),Z(this.clearMap,t,e,n),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,i){const n=this.elementMap.get(t);if(n){const t=void 0!==i?n.get(i):this.getActivatedValues(n,e);if(t)return t.get(e)}}hasValue(t,e){const i=this.elementMap.get(t);if(i){const t=this.getActivatedValues(i,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,i,n){let s=this.elementMap.get(t);if(s){const r=(s.get(n)||new Map).set(e,i);s.set(n,r),this.elementMap.set(t,s)}else s=(new Map).set(n,(new Map).set(e,i)),this.elementMap.set(t,s);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(Object(c.a)(i=>i.element===t&&i.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const i=new Set(this.elementKeyMap.get(e));let n=this.getActivatedValues(t);n&&n.forEach((t,n)=>{this.updateElement(e,n,t),i.delete(n)}),i.forEach(i=>{if(n=this.getActivatedValues(t,i),n){const t=n.get(i);this.updateElement(e,i,t)}else this.clearElement(e,i)})})}clearElement(t,e){const i=this.clearMap.get(t);if(i){const n=i.get(e);n&&(n(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,i){const n=this.updateMap.get(t);if(n){const s=n.get(e);s&&(s(i),this.subject.next({element:t,key:e,value:i}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const i=this.elementMap.get(t);i&&(i.forEach((t,e)=>i.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const i=this.elementMap.get(t);if(i){const n=this.getActivatedValues(i,e);n&&(e?this.updateElement(t,e,n.get(e)):n.forEach((e,i)=>this.updateElement(t,i,e)))}}buildElementKeyMap(t,e){let i=this.elementKeyMap.get(t);i||(i=new Set,this.elementKeyMap.set(t,i)),i.add(e)}watchExtraTriggers(t,e,i){if(i&&i.length){let n=this.watcherMap.get(t);if(n||(n=new Map,this.watcherMap.set(t,n)),!n.get(e)){const s=Object(l.a)(...i).subscribe(()=>{const i=this.getValue(t,e);this.updateElement(t,e,i)});n.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let n=0;nt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(Object(h.a)(this.hook.interceptEvents(this)),Object(c.a)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(z),n.Xb(V),n.Xb(X))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(z),Object(n.Xb)(V),Object(n.Xb)(X))},token:t,providedIn:"root"}),t})();function Z(t,e,i,n){if(void 0!==n){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(i,n)}}},pLZG:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("7o/Q");function s(t,e){return function(i){return i.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))}}class a extends n.a{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},qFsG:function(t,e,i){"use strict";i.d(e,"a",function(){return m}),i.d(e,"b",function(){return y}),i.d(e,"c",function(){return v});var n=i("nLfN"),s=i("fXoL"),r=i("8LU1"),a=i("EY2u"),o=i("XNiG");i("xgIS"),i("3UWI"),i("1G5W"),i("ofXK");const l=Object(n.f)({passive:!0});let c=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return a.a;const e=Object(r.e)(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new o.a,s="cdk-text-field-autofilled",c=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(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,l),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",c,l)}}),n}stopMonitoring(t){const e=Object(r.e)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.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.Xb(n.a),s.Xb(s.B))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(n.a),Object(s.Xb)(s.B))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},imports:[[n.b]]}),t})();var u=i("FKr1"),d=i("kmnG"),p=i("3Pt+");const m=new s.s("MAT_INPUT_VALUE_ACCESSOR"),f=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;class b{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const _=Object(u.z)(b);let y=(()=>{class t extends _{constructor(t,e,i,s,r,a,l,c,h,u){super(a,s,r,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new o.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(n.e)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=l||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(n.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 i=(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(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){f.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.Nb(s.l),s.Nb(n.a),s.Nb(p.l,10),s.Nb(p.o,8),s.Nb(p.g,8),s.Nb(u.d),s.Nb(m,10),s.Nb(c),s.Nb(s.B),s.Nb(d.a,8))},t.\u0275dir=s.Ib({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.bc("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Wb("disabled",e.disabled)("required",e.required),s.Db("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),s.Fb("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.Bb([{provide:d.d,useExisting:t}]),s.zb,s.Ab]}),t})(),v=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[u.d],imports:[[h,d.e,u.i],h,d.e]}),t})()},quSY:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("DH7j"),s=i("XoHu"),r=i("n6bG");const a=(()=>{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 o=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_ctorUnsubscribe:o,_unsubscribe:c,_subscriptions:h}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof a?e.errors:e),[])}},rCpU:function(t,e,i){"use strict";var n,s,r;i.d(e,"a",function(){return a}),i.d(e,"b",function(){return l.a}),i.d(e,"c",function(){return o}),i.d(e,"e",function(){return c}),i.d(e,"d",function(){return h}),function(t){t[t.Link=0]="Link",t[t.Thread=1]="Thread"}(n||(n={}));class a{constructor(t,e){if(t<=0||e<=0)throw new Error("Row count and Column count must be positive!");this._maxrow=t,this._maxcol=e,this._inited=!1,this._cells=[]}get RowCount(){return this._maxrow}get ColumnCount(){return this._maxcol}get isInited(){return this._inited}init(){if(this._inited)throw new Error("already inited");this._cells=[];for(let t=0;t=0&&t.row=0&&t.columnt.row-e.row),i.length>0&&t.push(i)}return t}getBackSlashOutputPos(){if(this._maxrow!==this._maxcol||this._maxrow<=1)throw new Error("Wrong parameter");const t=[];for(let e=0;e<=this._maxrow-1;e++){const i=[];for(let t=0;t<=e;t++)i.push({row:e-t,column:this._maxrow-1-t});i.length>0&&(i.sort((t,e)=>t.row-e.row),t.push(i))}for(let e=1;e<=this._maxrow-1;e++){const i=[];for(let t=0;t<=this._maxrow-1-e;t++)i.push({row:e+t,column:t});i.length>0&&(i.sort((t,e)=>t.row-e.row),t.push(i))}return t}}!function(t){t[t.Add=0]="Add",t[t.Sub=1]="Sub",t[t.Multi=2]="Multi",t[t.Div=3]="Div"}(s||(s={})),function(t){t[t.Add=0]="Add",t[t.Sub=1]="Sub",t[t.Multi=2]="Multi",t[t.Div=3]="Div",t[t.Equal=4]="Equal",t[t.LessThan=5]="LessThan",t[t.GreatThean=6]="GreatThean",t[t.LessEqual=7]="LessEqual",t[t.GreatEqual=8]="GreatEqual",t[t.OpenParenthesis=9]="OpenParenthesis",t[t.CloseParenthesis=10]="CloseParenthesis",t[t.Variable=11]="Variable",t[t.Digit=12]="Digit",t[t.PI=21]="PI"}(r||(r={}));var o,l=i("e1Vu");function c(t,e){const i=e.clientX,n=e.clientY,s=t.getBoundingClientRect();return{x:t.width/s.width*(i-s.left),y:t.height/s.height*(n-s.top)}}function h(t,e,i){return{row:Math.floor(t.y/i),column:Math.floor(t.x/e)}}!function(t){t[t.ListView=0]="ListView",t[t.Create=1]="Create",t[t.Update=2]="Update",t[t.Display=3]="Display",t[t.Invalid=9]="Invalid"}(o||(o={}))},rDax:function(t,e,i){"use strict";i.d(e,"a",function(){return G}),i.d(e,"b",function(){return K}),i.d(e,"c",function(){return q}),i.d(e,"d",function(){return O}),i.d(e,"e",function(){return j}),i.d(e,"f",function(){return Q});var n=i("vxfF"),s=i("fXoL"),r=i("nLfN"),a=i("cH1L"),o=i("ofXK"),l=i("8LU1"),c=i("+rOU"),h=i("XNiG"),u=i("quSY"),d=i("VRyK"),p=i("IzEk"),m=i("1G5W"),f=i("7o/Q");class g{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 f.a{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}var _=i("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(l.d)(-this._previousScrollPosition.left),t.style.top=Object(l.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,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.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,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,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 x(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function C(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class k{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,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:i}=this._viewportRuler.getViewportSize();x(t,[{width:e,height:i,bottom:i,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 S=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,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 k(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.c),s.Xb(n.e),s.Xb(s.B),s.Xb(o.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(n.c),Object(s.Xb)(n.e),Object(s.Xb)(s.B),Object(s.Xb)(o.d))},token:t,providedIn:"root"}),t})();class O{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 i of e)void 0!==t[i]&&(this[i]=t[i])}}}class E{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class A{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let D=(()=>{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.Xb(o.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(o.d))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends D{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._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.Xb(o.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(o.d))},token:t,providedIn:"root"}),t})(),T=(()=>{class t extends D{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];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.Xb(o.d),s.Xb(r.a))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(o.d),Object(s.Xb)(r.a))},token:t,providedIn:"root"}),t})();const R=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let j=(()=>{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="cdk-overlay-container";if(this._platform.isBrowser||R){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new h.a,this._outsidePointerEvents=new h.a,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.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._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),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.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(l.d)(this._config.width),t.height=Object(l.d)(this._config.height),t.minWidth=Object(l.d)(this._config.minWidth),t.minHeight=Object(l.d)(this._config.minHeight),t.maxWidth=Object(l.d)(this._config.maxWidth),t.maxHeight=Object(l.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),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",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;Object(l.b)(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Object(m.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 N="cdk-overlay-connected-position-bounding-box",P=/([A-Za-z%]+)$/;class F{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,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(N),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,i=this._viewportRect,n=[];let s;for(let r of this._preferredPositions){let a=this._getOriginPoint(t,r),o=this._getOverlayPoint(a,e,r),l=this._getOverlayFit(o,e,i,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,a);this._canFitWithFlexibleDimensions(l,o,i)?n.push({position:r,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,r)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}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&&M(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),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 i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){let{x:s,y:r}=t,a=this._getOffset(n,"x"),o=this._getOffset(n,"y");a&&(s+=a),o&&(r+=o);let l=0-r,c=r+e.height-i.height,h=this._subtractOverflows(e.width,0-s,s+e.width-i.width),u=this._subtractOverflows(e.height,l,c),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,r=V(this._overlayRef.getConfig().minHeight),a=V(this._overlayRef.getConfig().minWidth),o=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=r&&r<=n)&&o}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=this._viewportRect,s=Math.max(t.x+e.width-n.width,0),r=Math.max(t.y+e.height-n.height,0),a=Math.max(n.top-i.top-t.y,0),o=Math.max(n.left-i.left-t.x,0);let l=0,c=0;return l=e.width<=n.width?o||-s:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,o=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;o=2*e,l=t.x-e,o>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:r,left:l,bottom:a,right:c,width:o,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=Object(l.d)(i.height),n.top=Object(l.d)(i.top),n.bottom=Object(l.d)(i.bottom),n.width=Object(l.d)(i.width),n.left=Object(l.d)(i.left),n.right=Object(l.d)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=Object(l.d)(t)),s&&(n.maxWidth=Object(l.d)(s))}this._lastBoundingBoxSize=i,M(this._boundingBox.style,n)}_resetBoundingBoxStyles(){M(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){M(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();M(i,this._getExactOverlayY(e,t,n)),M(i,this._getExactOverlayX(e,t,n))}else i.position="static";let a="",o=this._getOffset(e,"x"),c=this._getOffset(e,"y");o&&(a+=`translateX(${o}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),r.maxHeight&&(n?i.maxHeight=Object(l.d)(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=Object(l.d)(r.maxWidth):s&&(i.maxWidth="")),M(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=Object(l.d)(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=Object(l.d)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C(t,i),isOriginOutsideView:x(t,i),isOverlayClipped:C(e,i),isOverlayOutsideView:x(e,i)}}_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,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.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(l.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,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function M(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function V(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(P);return i&&"px"!==i?null:parseFloat(e)}return t||null}class z{constructor(t,e,i,n,s,r,a){this._preferredPositions=[],this._positionStrategy=new F(i,n,s,r,a).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,i,n){const s=new E(t,e,i,n);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}}const B="cdk-global-overlay-wrapper";class H{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(B),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,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:r,maxHeight:a}=i,o=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=o?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,o?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=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(B),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let U=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new H}connectedTo(t,e,i){return new z(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new F(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.e),s.Xb(o.d),s.Xb(r.a),s.Xb(j))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(n.e),Object(s.Xb)(o.d),Object(s.Xb)(r.a),Object(s.Xb)(j))},token:t,providedIn:"root"}),t})(),X=0,q=(()=>{class t{constructor(t,e,i,n,s,r,a,o,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=r,this._ngZone=a,this._document=o,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new O(t);return s.direction=s.direction||this._directionality.value,new L(n,e,i,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-"+X++,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 c.e(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(S),s.Xb(j),s.Xb(s.j),s.Xb(U),s.Xb(I),s.Xb(s.t),s.Xb(s.B),s.Xb(o.d),s.Xb(a.b),s.Xb(o.i),s.Xb(T))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const $=[{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 K=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),G=(()=>{class t{constructor(t,e,i,n,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.disableClose=!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 c.h(e,i),this._scrollStrategyFactory=n,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(l.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(l.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(l.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(l.c)(t)}get push(){return this._push}set push(t){this._push=Object(l.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=$);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||this.disableClose||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 O({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 i=>i.lift(new g(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.Nb(q),s.Nb(s.N),s.Nb(s.R),s.Nb(W),s.Nb(a.b,8))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.Ab]}),t})();const Y={provide:W,deps:[q],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Q=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[q,Y],imports:[[a.a,c.g,n.d],n.d]}),t})()},sVev:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},"tk/3":function(t,e,i){"use strict";i.d(e,"a",function(){return O}),i.d(e,"b",function(){return B}),i.d(e,"c",function(){return d}),i.d(e,"d",function(){return f}),i.d(e,"e",function(){return y}),i.d(e,"f",function(){return C});var n=i("fXoL"),s=i("LRne"),r=i("HDdC"),a=i("bOdf"),o=i("pLZG"),l=i("lJxs"),c=i("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 i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}: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 i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);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 m(t)}encodeValue(t){return m(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function m(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 f{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 i=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[s,r]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],a=i.get(s)||[];a.push(r),i.set(s,a)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):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 f({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 i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,i,n){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)||n?(this.body=void 0!==i?i:null,s=n):s=i,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 i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),o)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new y(e,i,s,{params:l,headers:o,reportProgress:a,responseType:n,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,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class x extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new x({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class k 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 S(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let O=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof y)n=t;else{let s=void 0;s=i.headers instanceof d?i.headers:new d(i.headers);let r=void 0;i.params&&(r=i.params instanceof f?i.params:new f({fromObject:i.params})),n=new y(t,e,void 0!==i.body?i.body:null,{headers:s,params:r,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const r=Object(s.a)(n).pipe(Object(a.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===i.observe)return r;const c=r.pipe(Object(o.a)(t=>t instanceof C));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return c.pipe(Object(l.a)(t=>t.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.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 f).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,S(i,e))}post(t,e,i={}){return this.request("POST",t,S(i,e))}put(t,e,i={}){return this.request("PUT",t,S(i,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(h))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();class E{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const A=new n.s("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();const I=/^\)\]\}',?\n/;class T{}let R=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.a(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new d(i.getAllResponseHeaders()),a=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new x({headers:r,status:e,statusText:n,url:a}),s},a=()=>{let{headers:n,status:s,statusText:a,url:o}=r(),l=null;204!==s&&(l=void 0===i.response?i.responseText:i.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(I,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new C({body:l,headers:n,status:s,statusText:a,url:o||void 0})),e.complete()):e.error(new k({error:l,headers:n,status:s,statusText:a,url:o||void 0}))},o=t=>{const{url:n}=r(),s=new k({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let l=!1;const c=n=>{l||(e.next(r()),l=!0);let s={type:v.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},h=t=>{let i={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",a),i.addEventListener("error",o),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:v.Sent}),()=>{i.removeEventListener("error",o),i.removeEventListener("load",a),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(T))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();const L=new n.s("XSRF_COOKIE_NAME"),N=new n.s("XSRF_HEADER_NAME");class P{}let F=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.A)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(c.d),n.Xb(n.D),n.Xb(L))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(P),n.Xb(N))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{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(A,[]);this.chain=t.reduceRight((t,e)=>new E(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(u),n.Xb(n.t))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),z=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:M,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:L,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[M,{provide:A,useExisting:M,multi:!0},{provide:P,useClass:F},{provide:L,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),B=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[O,{provide:h,useClass:V},j,{provide:u,useExisting:j},R,{provide:T,useExisting:R}],imports:[[z.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,i){"use strict";i.d(e,"a",function(){return Ut}),i.d(e,"b",function(){return oi}),i.d(e,"c",function(){return li}),i.d(e,"d",function(){return vi}),i.d(e,"e",function(){return hi});var n=i("ofXK"),s=i("fXoL"),r=i("LRne"),a=i("Cfvw"),o=i("2Vo4"),l=i("itXk"),c=i("HDdC"),h=i("sVev"),u=i("NXyV"),d=i("EY2u"),p=i("XNiG"),m=i("lJxs"),f=i("0EUg"),g=i("pLZG"),b=i("7o/Q"),_=i("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,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;st.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function ot(t){return Array.prototype.concat.apply([],t)}function lt(t){return t.length>0?t[t.length-1]:null}function ct(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function ht(t){return Object(s.tb)(t)?t:Object(s.ub)(t)?Object(a.a)(Promise.resolve(t)):Object(r.a)(t)}function ut(t,e,i){return i?function(t,e){return rt(t,e)}(t.queryParams,e.queryParams)&&dt(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>at(t[i],e[i]))}(t.queryParams,e.queryParams)&&pt(t.root,e.root)}function dt(t,e){if(!_t(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const i in e.children){if(!t.children[i])return!1;if(!dt(t.children[i],e.children[i]))return!1}return!0}function pt(t,e){return mt(t,e,e.segments)}function mt(t,e,i){if(t.segments.length>i.length)return!!_t(t.segments.slice(0,i.length),i)&&!e.hasChildren();if(t.segments.length===i.length){if(!_t(t.segments,i))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!pt(t.children[i],e.children[i]))return!1}return!0}{const n=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!_t(t.segments,n)&&!!t.children.primary&&mt(t.children.primary,e,s)}}class ft{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return xt.serialize(this)}}class gt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ct(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ct(this)}}class bt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=it(this.parameters)),this._parameterMap}toString(){return It(this)}}function _t(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function yt(t,e){let i=[];return ct(t.children,(t,n)=>{n===tt&&(i=i.concat(e(t,n)))}),ct(t.children,(t,n)=>{n!==tt&&(i=i.concat(e(t,n)))}),i}class vt{}class wt{parse(t){const e=new Nt(t);return new ft(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+kt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Ot(e)}=${Ot(t)}`).join("&"):`${Ot(e)}=${Ot(i)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const xt=new wt;function Ct(t){return t.segments.map(t=>It(t)).join("/")}function kt(t,e){if(!t.hasChildren())return Ct(t);if(e){const e=t.children.primary?kt(t.children.primary,!1):"",i=[];return ct(t.children,(t,e)=>{e!==tt&&i.push(`${e}:${kt(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=yt(t,(e,i)=>i===tt?[kt(t.children.primary,!1)]:[`${i}:${kt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Ct(t)}/${e[0]}`:`${Ct(t)}/(${e.join("//")})`}}function St(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ot(t){return St(t).replace(/%3B/gi,";")}function Et(t){return St(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function At(t){return decodeURIComponent(t)}function Dt(t){return At(t.replace(/\+/g,"%20"))}function It(t){return`${Et(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Et(t)}=${Et(e[t])}`).join("")}`;var e}const Tt=/^[^\/()?;=#]+/;function Rt(t){const e=t.match(Tt);return e?e[0]:""}const jt=/^[^=?&#]+/,Lt=/^[^?&#]+/;class Nt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],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 i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new gt(t,e)),i}parseSegment(){const t=Rt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new bt(At(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Rt(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Rt(this.remaining);t&&(i=t,this.capture(i))}t[At(e)]=At(i)}parseQueryParam(t){const e=function(t){const e=t.match(jt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Lt);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Dt(e),s=Dt(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Rt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=tt);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new gt([],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 Pt{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=Ft(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Ft(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Mt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Mt(t,this._root).map(t=>t.value)}}function Ft(t,e){if(t===e.value)return e;for(const i of e.children){const e=Ft(t,i);if(e)return e}return null}function Mt(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Mt(t,i);if(n.length)return n.unshift(e),n}return[]}class Vt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function zt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Bt extends Pt{constructor(t,e){super(t),this.snapshot=e,Wt(this,t)}toString(){return this.snapshot.toString()}}function Ht(t,e){const i=function(t,e){const i=new qt([],{},{},"",{},tt,e,null,t.root,-1,{});return new $t("",new Vt(i,[]))}(t,e),n=new o.a([new bt("",{})]),s=new o.a({}),r=new o.a({}),a=new o.a({}),l=new o.a(""),c=new Ut(n,s,a,l,r,tt,e,i.root);return c.snapshot=i.root,new Bt(new Vt(c,[]),i)}class Ut{constructor(t,e,i,n,s,r,a,o){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=a,this._futureSnapshot=o}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(m.a)(t=>it(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(m.a)(t=>it(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Xt(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}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:{}})}(i.slice(n))}class qt{constructor(t,e,i,n,s,r,a,o,l,c,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=a,this.routeConfig=o,this._urlSegment=l,this._lastPathIndex=c,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 $t extends Pt{constructor(t,e){super(e),this.url=t,Wt(this,e)}toString(){return Kt(this._root)}}function Wt(t,e){e.value._routerState=t,e.children.forEach(e=>Wt(t,e))}function Kt(t){const e=t.children.length>0?` { ${t.children.map(Kt).join(", ")} } `:"";return`${t.value}${e}`}function Gt(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,rt(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),rt(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;irt(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Yt(t.parent,e.parent))}function Qt(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return Qt(t,e,n);return Qt(t,e)})}(t,e,i);return new Vt(n,s)}{const i=t.retrieve(e.value);if(i){const t=i.route;return Zt(e,t),t}{const i=new Ut(new o.a((n=e.value).url),new o.a(n.params),new o.a(n.queryParams),new o.a(n.fragment),new o.a(n.data),n.outlet,n.component,n),s=e.children.map(e=>Qt(t,e));return new Vt(i,s)}}var n}function Zt(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new ft(i.root===t?e:ie(i.root,t,e),r,s)}function ie(t,e,i){const n={};return ct(t.children,(t,s)=>{n[s]=t===e?i:ie(t,e,i)}),new gt(t.segments,n)}class ne{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Jt(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(te);if(n&&n!==lt(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class se{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function re(t,e,i){if(t||(t=new gt([],{})),0===t.segments.length&&t.hasChildren())return ae(t,e,i);const n=function(t,e,i){let n=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return r;const e=t.segments[s],a=i[n];if(te(a))break;const o=""+a,l=n0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!he(o,l,e))return r;n+=2}else{if(!he(o,{},e))return r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=re(t.children[n],e,i))}),ct(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new gt(t.segments,s)}}function oe(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=oe(new gt([],{}),0,t))}),e}function ce(t){const e={};return ct(t,(t,i)=>e[i]=""+t),e}function he(t,e,i){return t==i.path&&rt(e,i.parameters)}class ue{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Gt(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=zt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),ct(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const n=zt(t),s=t.value.component?i.children:e;ct(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=zt(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new Z(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Y(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Gt(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.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),de(t.route)}else{const i=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}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function de(t){Gt(t.value),t.children.forEach(de)}class pe{constructor(t,e){this.routes=t,this.module=e}}function me(t){return"function"==typeof t}function fe(t){return t instanceof ft}const ge=Symbol("INITIAL_VALUE");function be(){return Object(S.a)(t=>Object(l.b)(...t.map(t=>t.pipe(Object(O.a)(1),Object(E.a)(ge)))).pipe(function(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new A(t,e,i))}}((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==ge)return t;if(n===ge&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||fe(n))return n}return t},t)},ge),Object(g.a)(t=>t!==ge),Object(m.a)(t=>fe(t)?t:!0===t),Object(O.a)(1)))}let _e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Hb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Ob(0,"router-outlet")},directives:function(){return[hi]},encapsulation:2}),t})();function ye(t,e=""){for(let i=0;ie.error(new ke(t)))}function Ee(t){return new c.a(e=>e.error(new Se(t)))}function Ae(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class De{constructor(t,e,i,n,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.z)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,tt).pipe(Object(m.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(I.a)(t=>{if(t instanceof Se)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ke)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,tt).pipe(Object(m.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(I.a)(t=>{if(t instanceof ke)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new gt([],{[tt]:t}):t;return new ft(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(m.a)(t=>new gt([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return Object(r.a)({});const i=[],n=[],s={};return ct(t,(t,r)=>{const a=e(r,t).pipe(Object(m.a)(t=>s[r]=t));r===tt?i.push(a):n.push(a)}),r.a.apply(null,i.concat(n)).pipe(Object(f.a)(),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Object(g.a)((e,i)=>t(e,i,n)):k.a,y(1),i?Object(C.a)(e):Object(x.a)(()=>new h.a))}(),Object(m.a)(()=>s))}(i.children,(i,n)=>this.expandSegmentGroup(t,e,n,i))}expandSegment(t,e,i,n,s,o){const c=function(t){return t.reduce((t,e)=>{const i=Ce(e);return t.has(i)?t.get(i).push(e):t.set(i,[e]),t},new Map)}(i);c.has(s)||c.set(s,[]);const u=i=>Object(a.a)(i).pipe(Object(T.a)(a=>this.expandSegmentAgainstRoute(t,e,i,a,n,s,o).pipe(Object(I.a)(t=>{if(t instanceof ke)return Object(r.a)(null);throw t}))),Object(R.a)(t=>null!==t),Object(I.a)(t=>{if(t instanceof h.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return Object(r.a)(new gt([],{}));throw new ke(e)}throw t})),d=Array.from(c.entries()).map(([t,e])=>{const i=u(e);return t===s?i:i.pipe(Object(m.a)(()=>null),Object(I.a)(()=>Object(r.a)(null)))});return Object(a.a)(d).pipe(t=>t.lift(new l.a(void 0)),Object(R.a)(),Object(m.a)(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,r,a){return Ce(n)!==r&&""!==n.path?Oe(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r):Oe(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Ee(s):this.lineralizeSegments(i,s).pipe(Object(j.a)(i=>{const s=new gt(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){const{matched:a,consumedSegments:o,lastChild:l,positionalParamSegments:c}=Ie(e,n,s);if(!a)return Oe(e);const h=this.applyRedirectCommands(o,n.redirectTo,c);return n.redirectTo.startsWith("/")?Ee(h):this.lineralizeSegments(n,h).pipe(Object(j.a)(n=>this.expandSegment(t,e,i,n.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,i,n){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(m.a)(t=>(i._loadedConfig=t,new gt(n,{})))):Object(r.a)(new gt(n,{}));const{matched:s,consumedSegments:a,lastChild:o}=Ie(e,i,n);if(!s)return Oe(e);const l=n.slice(o);return this.getChildConfig(t,i,n).pipe(Object(j.a)(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>Re(t,e,i)&&Ce(i)!==tt)}(t,i,n)?{segmentGroup:Te(new gt(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&Ce(n)!==tt&&(i[Ce(n)]=new gt([],{}));return i}(n,new gt(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>Re(t,e,i))}(t,i,n)?{segmentGroup:Te(new gt(t.segments,function(t,e,i,n){const s={};for(const r of i)Re(t,e,r)&&!n[Ce(r)]&&(s[Ce(r)]=new gt([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,a,l,n);return 0===o.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(Object(m.a)(t=>new gt(a,t))):0===n.length&&0===o.length?Object(r.a)(new gt(a,{})):this.expandSegment(i,s,n,o,tt,!0).pipe(Object(m.a)(t=>new gt(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Object(r.a)(new pe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(r.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(Object(j.a)(i=>i?this.configLoader.load(t.injector,e).pipe(Object(m.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(nt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(r.a)(new pe([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return Object(r.a)(!0);const s=n.map(n=>{const s=t.get(n);let r;if(function(t){return t&&me(t.canLoad)}(s))r=s.canLoad(e,i);else{if(!me(s))throw new Error("Invalid CanLoad guard");r=s(e,i)}return ht(r)});return Object(r.a)(s).pipe(be(),Object(L.a)(t=>{if(!fe(t))return;const e=nt(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(m.a)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Object(r.a)(i);if(n.numberOfChildren>1||!n.children.primary)return Ae(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new ft(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return ct(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let r={};return ct(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,i,n)}),new gt(s,r)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Ie(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||st)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Te(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new gt(t.segments.concat(e.segments),e.children)}return t}function Re(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}class je{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Le{constructor(t,e){this.component=t,this.route=e}}function Ne(t,e,i){const n=t._root;return Fe(n,e?e._root:null,i,[n.value])}function Pe(t,e,i){const n=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(n?n.module.injector:i).get(t)}function Fe(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=zt(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=e?e.value:null,o=i?i.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!_t(t.url,e.url);case"pathParamsOrQueryParamsChange":return!_t(t.url,e.url)||!rt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yt(t,e)||!rt(t.queryParams,e.queryParams);case"paramsChange":default:return!Yt(t,e)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new je(n)):(r.data=a.data,r._resolvedData=a._resolvedData),Fe(t,e,r.component?o?o.children:null:i,n,s),l&&o&&o.outlet&&o.outlet.isActivated&&s.canDeactivateChecks.push(new Le(o.outlet.component,a))}else a&&Me(e,o,s),s.canActivateChecks.push(new je(n)),Fe(t,null,r.component?o?o.children:null:i,n,s)}(t,r[t.value.outlet],i,n.concat([t.value]),s),delete r[t.value.outlet]}),ct(r,(t,e)=>Me(t,i.getContext(e),s)),s}function Me(t,e,i){const n=zt(t),s=t.value;ct(n,(t,n)=>{Me(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Le(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function Ve(t,e){return null!==t&&e&&e(new Q(t)),Object(r.a)(!0)}function ze(t,e){return null!==t&&e&&e(new G(t)),Object(r.a)(!0)}function Be(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return Object(r.a)(!0);const s=n.map(n=>Object(u.a)(()=>{const s=Pe(n,e,i);let r;if(function(t){return t&&me(t.canActivate)}(s))r=ht(s.canActivate(e,t));else{if(!me(s))throw new Error("Invalid CanActivate guard");r=ht(s(e,t))}return r.pipe(Object(R.a)())}));return Object(r.a)(s).pipe(be())}function He(t,e,i){const n=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=Pe(s,e.node,i);let a;if(function(t){return t&&me(t.canActivateChild)}(r))a=ht(r.canActivateChild(n,t));else{if(!me(r))throw new Error("Invalid CanActivateChild guard");a=ht(r(n,t))}return a.pipe(Object(R.a)())});return Object(r.a)(s).pipe(be())}));return Object(r.a)(s).pipe(be())}class Ue{}class Xe{constructor(t,e,i,n,s,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=We(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,tt),i=new qt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},tt,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Vt(i,e),s=new $t(this.url,n);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,i=Xt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=yt(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>t.value.outlet===tt?-1:e.value.outlet===tt?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,n){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,i,n)}catch(s){if(!(s instanceof Ue))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new Ue}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new Ue;if((t.outlet||tt)!==n)throw new Ue;let s,r=[],a=[];if("**"===t.path){const r=i.length>0?lt(i).parameters:{};s=new qt(i,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ge(t),n,t.component,t,qe(e),$e(e)+i.length,Ye(t))}else{const o=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new Ue;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||st)(i,t,e);if(!n)throw new Ue;const s={};ct(n.posParams,(t,e)=>{s[e]=t.path});const r=n.consumed.length>0?Object.assign(Object.assign({},s),n.consumed[n.consumed.length-1].parameters):s;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:r}}(e,t,i);r=o.consumedSegments,a=i.slice(o.lastChild),s=new qt(r,o.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ge(t),n,t.component,t,qe(e),$e(e)+r.length,Ye(t))}const o=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=We(e,r,a,o,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(o,l);return[new Vt(s,t)]}if(0===o.length&&0===c.length)return[new Vt(s,[])];const h=this.processSegment(o,l,c,tt);return[new Vt(s,h)]}}function qe(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function $e(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function We(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>Ke(t,e,i)&&Ce(i)!==tt)}(t,i,n)){const s=new gt(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const r of i)if(""===r.path&&Ce(r)!==tt){const i=new gt([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Ce(r)]=i}return s}(t,e,n,new gt(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Ke(t,e,i))}(t,i,n)){const r=new gt(t.segments,function(t,e,i,n,s,r){const a={};for(const o of n)if(Ke(t,i,o)&&!s[Ce(o)]){const i=new gt([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===r?t.segments.length:e.length,a[Ce(o)]=i}return Object.assign(Object.assign({},s),a)}(t,e,i,n,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}const r=new gt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}function Ke(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function Ge(t){return t.data||{}}function Ye(t){return t.resolve||{}}function Qe(t){return function(e){return e.pipe(Object(S.a)(e=>{const i=t(e);return i?Object(a.a)(i).pipe(Object(m.a)(()=>e)):Object(a.a)([e])}))}}class Ze extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Je=new s.s("ROUTES");class ti{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(m.a)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new pe(ot(n.injector.get(Je)).map(xe),n)}))}loadModuleFactory(t){return"string"==typeof t?Object(a.a)(this.loader.load(t)):ht(t()).pipe(Object(j.a)(t=>t instanceof s.x?Object(r.a)(t):Object(a.a)(this.compiler.compileModuleAsync(t))))}}class ei{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ii,this.attachRef=null}}class ii{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}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 ei,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class ni{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function si(t){throw t}function ri(t,e,i){return e.parse("/")}function ai(t,e){return Object(r.a)(null)}let oi=(()=>{class t{constructor(t,e,i,n,r,a,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new p.a,this.errorHandler=si,this.malformedUriErrorHandler=ri,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ai,afterPreactivation:ai},this.urlHandlingStrategy=new ni,this.routeReuseStrategy=new Ze,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(s.z),this.console=r.get(s.bb);const h=r.get(s.B);this.isNgZoneEnabled=h instanceof s.B,this.resetConfig(c),this.currentUrlTree=new ft(new gt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ti(a,l,t=>this.triggerEvent(new W(t)),t=>this.triggerEvent(new K(t))),this.routerState=Ht(this.currentUrlTree,this.rootComponentType),this.transitions=new o.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(g.a)(t=>0!==t.id),Object(m.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(S.a)(t=>{let i=!1,n=!1;return Object(r.a)(t).pipe(Object(L.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(S.a)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(r.a)(t).pipe(Object(S.a)(t=>{const i=this.transitions.getValue();return e.next(new M(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?d.a:[t]}),Object(S.a)(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,a=this.urlSerializer,o=this.config,function(t){return t.pipe(Object(S.a)(t=>function(t,e,i,n,s){return new De(t,e,i,n,s).apply()}(n,s,a,t.extractedUrl,o).pipe(Object(m.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(L.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return function(r){return r.pipe(Object(j.a)(r=>function(t,e,i,n,s="emptyOnly",r="legacy"){return new Xe(t,e,i,n,s,r).recognize()}(t,e,r.urlAfterRedirects,i(r.urlAfterRedirects),n,s).pipe(Object(m.a)(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(L.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(L.a)(t=>{const i=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,a,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:a,extras:o}=t,l=new M(i,this.serializeUrl(n),s,a);e.next(l);const c=Ht(n,this.rootComponentType).snapshot;return Object(r.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a}),Qe(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:a}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!a})}),Object(L.a)(t=>{const e=new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(m.a)(t=>Object.assign(Object.assign({},t),{guards:Ne(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(Object(j.a)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:l}}=i;return 0===l.length&&0===o.length?Object(r.a)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(a.a)(t).pipe(Object(j.a)(t=>function(t,e,i,n,s){const a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!a||0===a.length)return Object(r.a)(!0);const o=a.map(r=>{const a=Pe(r,e,s);let o;if(function(t){return t&&me(t.canDeactivate)}(a))o=ht(a.canDeactivate(t,e,i,n));else{if(!me(a))throw new Error("Invalid CanDeactivate guard");o=ht(a(t,e,i,n))}return o.pipe(Object(R.a)())});return Object(r.a)(o).pipe(be())}(t.component,t.route,i,e,n)),Object(R.a)(t=>!0!==t,!0))}(l,n,s,t).pipe(Object(j.a)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Object(a.a)(e).pipe(Object(T.a)(e=>Object(a.a)([ze(e.route.parent,n),Ve(e.route,n),He(t,e.path,i),Be(t,e.route,i)]).pipe(Object(f.a)(),Object(R.a)(t=>!0!==t,!0))),Object(R.a)(t=>!0!==t,!0))}(n,o,t,e):Object(r.a)(i)),Object(m.a)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(L.a)(t=>{if(fe(t.guardsResult)){const e=nt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(L.a)(t=>{const e=new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(g.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new z(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),Qe(t=>{if(t.guards.canActivateChecks.length)return Object(r.a)(t).pipe(Object(L.a)(t=>{const e=new q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(S.a)(t=>{let i=!1;return Object(r.a)(t).pipe((n=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(Object(j.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:i}}=t;if(!i.length)return Object(r.a)(t);let o=0;return Object(a.a)(i).pipe(Object(T.a)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Object(r.a)({});const o={};return Object(a.a)(s).pipe(Object(j.a)(s=>function(t,e,i,n){const s=Pe(t,e,n);return ht(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe(Object(L.a)(t=>{o[s]=t}))),y(1),Object(j.a)(()=>Object.keys(o).length===s.length?Object(r.a)(o):d.a))}(t._resolve,t,e,n).pipe(Object(m.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Xt(t,i).resolve),null)))}(t.route,e,n,s)),Object(L.a)(()=>o++),y(1),Object(j.a)(e=>o===i.length?Object(r.a)(t):d.a))}))}),Object(L.a)({next:()=>i=!0,complete:()=>{if(!i){const i=new z(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(i),t.resolve(!1)}}}));var n,s}),Object(L.a)(t=>{const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Qe(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:a}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!a})}),Object(m.a)(t=>{const e=function(t,e,i){const n=Qt(t,e._root,i?i._root:void 0);return new Bt(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(L.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,o=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(m.a)(t=>(new ue(o,t.targetRouterState,t.currentRouterState,l).activate(s),t))),Object(L.a)({next(){i=!0},complete(){i=!0}}),Object(N.a)(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new z(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null}),Object(I.a)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=fe(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new z(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.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 n=new B(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(r){t.reject(r)}}var s;return d.a}));var s,o,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){ye(t),this.config=t.map(xe),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:r,preserveFragment:a}=e,o=i||this.routerState.root,l=a?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=n||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,i,n,s){if(0===i.length)return ee(e.root,e.root,e,n,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ne(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return ct(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new ne(i,e,n)}(i);if(r.toRoot())return ee(e.root,new gt([],{}),e,n,s);const a=function(t,e,i){if(t.isAbsolute)return new se(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new se(t,t===e.root,0)}const n=Jt(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,r=i;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new se(n,!1,s-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),o=a.processChildren?ae(a.segmentGroup,a.index,r.commands):re(a.segmentGroup,a.index,r.commands);return ee(a.segmentGroup,o,e,n,s)}(o,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const i=fe(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),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,i,n,s){const r=this.getTransition(),a="imperative"!==e&&"imperative"===(null==r?void 0:r.source),o=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(a&&o)return Promise.resolve(!0);let l,c,h;s?(l=s.resolve,c=s.reject,h=s.promise):h=new Promise((t,e)=>{l=t,c=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const s=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(s,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.P),s.Xb(vt),s.Xb(ii),s.Xb(n.i),s.Xb(s.t),s.Xb(s.y),s.Xb(s.i),s.Xb(void 0))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),li=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new p.a,this.subscription=t.events.subscribe(t=>{t instanceof V&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:ci(this.skipLocationChange),replaceUrl:ci(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ci(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(oi),s.Nb(Ut),s.Nb(n.j))},t.\u0275dir=s.Ib({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.bc("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Wb("href",e.href,s.wc),s.Db("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.Ab]}),t})();function ci(t){return""===t||!!t}let hi=(()=>{class t{constructor(t,e,i,n,r){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.o,this.deactivateEvents=new s.o,this.name=n||tt,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 i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new ui(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(ii),s.Nb(s.R),s.Nb(s.j),s.Yb("name"),s.Nb(s.h))},t.\u0275dir=s.Ib({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class ui{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Ut?this.route:t===ii?this.childContexts:this.parent.get(t,e)}}class di{}class pi{preload(t,e){return Object(r.a)(null)}}let mi=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new ti(e,i,e=>t.triggerEvent(new W(e)),e=>t.triggerEvent(new K(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(g.a)(t=>t instanceof V),Object(T.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 i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return Object(a.a)(i).pipe(Object(P.a)(),Object(m.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(j.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(oi),s.Xb(s.y),s.Xb(s.i),s.Xb(s.t),s.Xb(di))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),fi=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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 M?(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 J&&(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 J(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.Xb(oi),s.Xb(n.u),s.Xb(void 0))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const gi=new s.s("ROUTER_CONFIGURATION"),bi=new s.s("ROUTER_FORROOT_GUARD"),_i=[n.i,{provide:vt,useClass:wt},{provide:oi,useFactory:function(t,e,i,s,r,a,o,l={},c,h){const u=new oi(null,t,e,i,s,r,a,ot(o));if(c&&(u.urlHandlingStrategy=c),h&&(u.routeReuseStrategy=h),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(l,u),l.enableTracing){const t=Object(n.z)();u.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[vt,ii,n.i,s.t,s.y,s.i,Je,gi,[class{},new s.C],[class{},new s.C]]},ii,{provide:Ut,useFactory:function(t){return t.routerState.root},deps:[oi]},{provide:s.y,useClass:s.M},mi,pi,class{preload(t,e){return e().pipe(Object(I.a)(()=>Object(r.a)(null)))}},{provide:gi,useValue:{enableTracing:!1}}];function yi(){return new s.A("Router",oi)}let vi=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[_i,ki(e),{provide:bi,useFactory:Ci,deps:[[oi,new s.C,new s.L]]},{provide:gi,useValue:i||{}},{provide:n.j,useFactory:xi,deps:[n.t,[new s.q(n.a),new s.C],gi]},{provide:fi,useFactory:wi,deps:[oi,n.u,gi]},{provide:di,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:pi},{provide:s.A,multi:!0,useFactory:yi},[Si,{provide:s.d,multi:!0,useFactory:Oi,deps:[Si]},{provide:Ai,useFactory:Ei,deps:[Si]},{provide:s.b,multi:!0,useExisting:Ai}]]}}static forChild(e){return{ngModule:t,providers:[ki(e)]}}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)(s.Xb(bi,8),s.Xb(oi,8))}}),t})();function wi(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new fi(t,e,i)}function xi(t,e,i={}){return i.useHash?new n.g(t,e):new n.s(t,e)}function Ci(t){return"guarded"}function ki(t){return[{provide:s.a,multi:!0,useValue:t},{provide:Je,multi:!0,useValue:t}]}let Si=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new p.a}appInitializer(){return this.injector.get(n.h,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(oi),n=this.injector.get(gi);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?Object(r.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(gi),i=this.injector.get(mi),n=this.injector.get(fi),r=this.injector.get(oi),a=this.injector.get(s.g);t===a.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),i.setUpPreloading(),n.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.t))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();function Oi(t){return t.appInitializer.bind(t)}function Ei(t){return t.bootstrapListener.bind(t)}const Ai=new s.s("Router Initializer")},u47x:function(t,e,i){"use strict";i.d(e,"a",function(){return W}),i.d(e,"b",function(){return S}),i.d(e,"c",function(){return C}),i.d(e,"d",function(){return P}),i.d(e,"e",function(){return H}),i.d(e,"f",function(){return R}),i.d(e,"g",function(){return O}),i.d(e,"h",function(){return z}),i.d(e,"i",function(){return T}),i.d(e,"j",function(){return $}),i.d(e,"k",function(){return N}),i.d(e,"l",function(){return F});var n=i("ofXK"),s=i("fXoL"),r=i("nLfN"),a=i("XNiG"),o=i("quSY"),l=i("LRne"),c=i("FtGj"),h=i("vkgz"),u=i("Kj3r"),d=i("pLZG"),p=i("lJxs"),m=i("IzEk"),f=i("8LU1"),g=i("GU7r");function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const _="cdk-describedby-message-container",y="cdk-describedby-host";let v=0;const w=new Map;let x=null,C=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),w.set(e,{messageElement:e,referenceCount:0})):w.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=w.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}x&&0===x.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 i=w.get(e);!function(t,e,i){const n=b(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute(y,""),i.referenceCount++}_removeMessageReference(t,e){const i=w.get(e);i.referenceCount--,function(t,e,i){const n=b(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute(y)}_isElementDescribedByMessage(t,e){const i=b(t,"aria-describedby"),n=w.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":(""+e).trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.d),s.Xb(r.a))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(n.d),Object(s.Xb)(r.a))},token:t,providedIn:"root"}),t})();class k{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new a.a,this._typeaheadSubscription=o.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new a.a,this.change=new a.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 i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.p:return void this.tabOut.next();case c.e:if(this._vertical&&i){this.setNextItemActive();break}return;case c.q:if(this._vertical&&i){this.setPreviousItemActive();break}return;case c.n:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.j:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.i:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case c.f:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Object(c.t)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.a&&e<=c.r||e>=c.s&&e<=c.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(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.F?this._items.toArray():this._items}}class S extends k{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class O extends k{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 E=(()=>{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}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===D(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=D(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-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")||A(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(r.a))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(r.a))},token:t,providedIn:"root"}),t})();function A(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(!A(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class I{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,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 i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):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(m.a)(1)).subscribe(t)}}let T=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new I(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(E),s.Xb(s.B),s.Xb(n.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(E),Object(s.Xb)(s.B),Object(s.Xb)(n.d))},token:t,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Object(f.c)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Object(f.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.Nb(s.l),s.Nb(T),s.Nb(n.d))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.Ab]}),t})();"undefined"!=typeof Element&∈const j=new s.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),L=new s.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let N=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),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="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),i=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,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.Nb(s.l),s.Nb(N),s.Nb(g.b),s.Nb(s.B))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function F(t){return 0===t.buttons}const M=new s.s("cdk-focus-monitor-default-options"),V=Object(r.f)({passive:!0,capture:!0});let z=(()=>{class t{constructor(t,e,i,n){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=F(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=B(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=B(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=Object(f.e)(t);if(!this._platform.isBrowser||1!==i.nodeType)return Object(l.a)(null);const n=Object(r.c)(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new a.a,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=Object(f.e)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=Object(f.e)(t);n===this._getDocument().activeElement&&this._elementInfo.has(n)?this._originChanged(n,e,this._elementInfo.get(n)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?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=B(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===B(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,V),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,V)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,V),t.addEventListener("mousedown",this._documentMousedownListener,V),t.addEventListener("touchstart",this._documentTouchstartListener,V),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,V),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,V),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,V),t.removeEventListener("mousedown",this._documentMousedownListener,V),t.removeEventListener("touchstart",this._documentTouchstartListener,V),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.B),s.Xb(r.a),s.Xb(n.d,8),s.Xb(M,8))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(s.B),Object(s.Xb)(r.a),Object(s.Xb)(n.d,8),Object(s.Xb)(M,8))},token:t,providedIn:"root"}),t})();function B(t){return t.composedPath?t.composedPath()[0]:t.target}let H=(()=>{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.Nb(s.l),s.Nb(z))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const U="cdk-high-contrast-black-on-white",X="cdk-high-contrast-white-on-black",q="cdk-high-contrast-active";let $=(()=>{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,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){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(q),t.remove(U),t.remove(X);const e=this.getHighContrastMode();1===e?(t.add(q),t.add(U)):2===e&&(t.add(q),t.add(X))}}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(r.a),s.Xb(n.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(r.a),Object(s.Xb)(n.d))},token:t,providedIn:"root"}),t})(),W=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)(s.Xb($))},imports:[[r.b,g.c]]}),t})()},vkgz:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("7o/Q");function s(){}var r=i("n6bG");function a(t,e,i){return function(n){return n.lift(new o(t,e,i))}}class o{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends n.a{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||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,i){"use strict";i.d(e,"a",function(){return f}),i.d(e,"b",function(){return b}),i.d(e,"c",function(){return m}),i.d(e,"d",function(){return _}),i.d(e,"e",function(){return g}),i("8LU1");var n=i("fXoL"),s=i("XNiG"),r=i("LRne"),a=i("HDdC"),o=i("xgIS"),l=(i("eNwd"),i("7Hc7"),i("quSY"),i("7+OI"),i("/uUt"),i("3UWI")),c=i("pLZG"),h=i("1G5W");i("JX91"),i("7o/Q"),i("eIep"),i("UXun");var u=i("nLfN"),d=i("ofXK"),p=i("cH1L");i("0EQZ");let m=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new s.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}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 a.a(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Object(l.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.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 i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(c.a)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(o.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)(n.Xb(n.B),n.Xb(u.a),n.Xb(d.d,8))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(n.B),Object(n.Xb)(u.a),Object(n.Xb)(d.d,8))},token:t,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new s.a,this._elementScrolled=new a.a(t=>this.ngZone.runOutsideAngular(()=>Object(o.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,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&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="left",i="right",n=this.elementRef.nativeElement;if("top"==t)return n.scrollTop;if("bottom"==t)return n.scrollHeight-n.clientHeight-n.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==t?t=s?i:e:"end"==t&&(t=s?e:i),s&&2==Object(u.d)()?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:s&&1==Object(u.d)()?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(m),n.Nb(n.B),n.Nb(p.b,8))},t.\u0275dir=n.Ib({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),g=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new s.a,this._changeListener=t=>{this._change.next(t)},this._document=i,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:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(l.a)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(u.a),n.Xb(n.B),n.Xb(d.d,8))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(u.a),Object(n.Xb)(n.B),Object(n.Xb)(d.d,8))},token:t,providedIn:"root"}),t})(),b=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})(),_=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[p.a,u.b,b],p.a,b]}),t})()},w1tV:function(t,e,i){"use strict";i.d(e,"a",function(){return m});var n=i("XNiG"),s=i("HDdC"),r=i("7o/Q"),a=i("quSY");function o(){return function(t){return t.lift(new l(t))}}class l{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new c(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class c 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:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.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 a.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=a.a.EMPTY)),t}refCount(){return o()(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 n.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 n.a}function m(){return t=>{return o()((e=p,function(t){let i;i="function"==typeof e?e:function(){return e};const n=Object.create(t,u);return n.source=t,n.subjectFactory=i,n})(t));var e}}},xHqg:function(t,e,i){"use strict";i.d(e,"a",function(){return z}),i.d(e,"b",function(){return F}),i.d(e,"c",function(){return A}),i.d(e,"d",function(){return $}),i.d(e,"e",function(){return H}),i.d(e,"f",function(){return X});var n=i("+rOU"),s=i("B/XX"),r=i("ofXK"),a=i("fXoL"),o=i("bTqV"),l=i("FKr1"),c=i("NFeN"),h=i("XNiG"),u=i("1G5W"),d=i("/uUt"),p=i("R0Ic"),m=i("u47x");function f(t,e){if(1&t&&a.Pb(0,8),2&t){const t=a.fc();a.lc("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function g(t,e){if(1&t&&(a.Tb(0,"span"),a.Ec(1),a.Sb()),2&t){const t=a.fc(2);a.Cb(1),a.Fc(t._getDefaultTextForState(t.state))}}function b(t,e){if(1&t&&(a.Tb(0,"mat-icon"),a.Ec(1),a.Sb()),2&t){const t=a.fc(2);a.Cb(1),a.Fc(t._getDefaultTextForState(t.state))}}function _(t,e){if(1&t&&(a.Rb(0,9),a.Dc(1,g,2,1,"span",10),a.Dc(2,b,2,1,"mat-icon",11),a.Qb()),2&t){const t=a.fc();a.lc("ngSwitch",t.state),a.Cb(1),a.lc("ngSwitchCase","number")}}function y(t,e){if(1&t&&(a.Tb(0,"div",12),a.Pb(1,13),a.Sb()),2&t){const t=a.fc();a.Cb(1),a.lc("ngTemplateOutlet",t._templateLabel().template)}}function v(t,e){if(1&t&&(a.Tb(0,"div",12),a.Ec(1),a.Sb()),2&t){const t=a.fc();a.Cb(1),a.Fc(t.label)}}function w(t,e){if(1&t&&(a.Tb(0,"div",14),a.Ec(1),a.Sb()),2&t){const t=a.fc();a.Cb(1),a.Fc(t._intl.optionalLabel)}}function x(t,e){if(1&t&&(a.Tb(0,"div",15),a.Ec(1),a.Sb()),2&t){const t=a.fc();a.Cb(1),a.Fc(t.errorMessage)}}function C(t,e){1&t&&a.jc(0)}i("cH1L");const k=["*"];function S(t,e){1&t&&a.Ob(0,"div",6)}function O(t,e){if(1&t){const t=a.Ub();a.Rb(0),a.Tb(1,"mat-step-header",4),a.bc("click",function(){return e.$implicit.select()})("keydown",function(e){return a.uc(t),a.fc()._onKeydown(e)}),a.Sb(),a.Dc(2,S,1,0,"div",5),a.Qb()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,s=a.fc();a.Cb(1),a.lc("tabIndex",s._getFocusIndex()===i?0:-1)("id",s._getStepLabelId(i))("index",i)("state",s._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",s.selectedIndex===i)("active",t.completed||s.selectedIndex===i||!s.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",s._iconOverrides)("disableRipple",s.disableRipple)("color",t.color||s.color),a.Db("aria-posinset",i+1)("aria-setsize",s.steps.length)("aria-controls",s._getStepContentId(i))("aria-selected",s.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.Cb(1),a.lc("ngIf",!n)}}function E(t,e){if(1&t){const t=a.Ub();a.Tb(0,"div",7),a.bc("@stepTransition.done",function(e){return a.uc(t),a.fc()._animationDone.next(e)}),a.Pb(1,8),a.Sb()}if(2&t){const t=e.$implicit,i=e.index,n=a.fc();a.lc("@stepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),a.Db("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),a.Cb(1),a.lc("ngTemplateOutlet",t.content)}}let A=(()=>{class t extends s.c{}return t.\u0275fac=function(e){return D(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matStepLabel",""]],features:[a.zb]}),t})();const D=a.Vb(A);let I=(()=>{class t{constructor(){this.changes=new h.a,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(a.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const T={provide:I,deps:[[new a.C,new a.L,I]],useFactory:function(t){return t||new I}};class R extends s.b{constructor(t){super(t)}}const j=Object(l.w)(R,"primary");let L=(()=>{class t extends j{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(){this._focusMonitor.focusVia(this._elementRef,"program")}_stringLabel(){return this.label instanceof A?null:this.label}_templateLabel(){return this.label instanceof A?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?""+(this.index+1):"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(I),a.Nb(m.h),a.Nb(a.l),a.Nb(a.h))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[a.zb],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(a.Ob(0,"div",0),a.Tb(1,"div"),a.Tb(2,"div",1),a.Dc(3,f,1,2,"ng-container",2),a.Dc(4,_,3,2,"ng-container",3),a.Sb(),a.Sb(),a.Tb(5,"div",4),a.Dc(6,y,2,1,"div",5),a.Dc(7,v,2,1,"div",5),a.Dc(8,w,2,1,"div",6),a.Dc(9,x,2,1,"div",7),a.Sb()),2&t&&(a.lc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),a.Cb(1),a.Eb("mat-step-icon-state-",e.state," mat-step-icon"),a.Fb("mat-step-icon-selected",e.selected),a.Cb(1),a.lc("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),a.Cb(1),a.lc("ngSwitchCase",!0),a.Cb(2),a.Fb("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),a.Cb(1),a.lc("ngIf",e._templateLabel()),a.Cb(1),a.lc("ngIf",e._stringLabel()),a.Cb(1),a.lc("ngIf",e.optional&&"error"!=e.state),a.Cb(1),a.lc("ngIf","error"==e.state))},directives:[l.r,r.o,r.p,r.q,r.m,r.r,c.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const N={horizontalStepTransition:Object(p.m)("stepTransition",[Object(p.j)("previous",Object(p.k)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(p.j)("current",Object(p.k)({transform:"none",visibility:"visible"})),Object(p.j)("next",Object(p.k)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(p.l)("* => *",Object(p.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(p.m)("stepTransition",[Object(p.j)("previous",Object(p.k)({height:"0px",visibility:"hidden"})),Object(p.j)("next",Object(p.k)({height:"0px",visibility:"hidden"})),Object(p.j)("current",Object(p.k)({height:"*",visibility:"visible"})),Object(p.l)("* <=> current",Object(p.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let P=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.N))},t.\u0275dir=a.Ib({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),F=(()=>{class t extends s.a{constructor(t,e,i){super(t,i),this._errorStateMatcher=e}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(Object(a.W)(()=>M)),a.Nb(l.d,4),a.Nb(s.h,8))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&a.Gb(i,A,!0),2&t){let t;a.rc(t=a.cc())&&(e.stepLabel=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[a.Bb([{provide:l.d,useExisting:t},{provide:s.a,useExisting:t}]),a.zb],ngContentSelectors:k,decls:1,vars:0,template:function(t,e){1&t&&(a.kc(),a.Dc(0,C,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),M=(()=>{class t extends s.d{constructor(){super(...arguments),this.steps=new a.F,this.animationDone=new a.o,this._iconOverrides={},this._animationDone=new h.a}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe(Object(u.a)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Object(d.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),Object(u.a)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return V(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(a.Gb(i,F,!0),a.Gb(i,P,!0)),2&t){let t;a.rc(t=a.cc())&&(e._steps=t),a.rc(t=a.cc())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&a.Ic(L,!0),2&t){let t;a.rc(t=a.cc())&&(e._stepHeader=t)}},inputs:{disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},features:[a.Bb([{provide:s.d,useExisting:t}]),a.zb]}),t})();const V=a.Vb(M);let z=(()=>{class t extends M{constructor(){super(...arguments),this.labelPosition="end"}}return t.\u0275fac=function(e){return B(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(t,e){2&t&&a.Fb("mat-stepper-label-position-end","end"==e.labelPosition)("mat-stepper-label-position-bottom","bottom"==e.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[a.Bb([{provide:M,useExisting:t},{provide:s.d,useExisting:t}]),a.zb],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(a.Tb(0,"div",0),a.Dc(1,O,3,19,"ng-container",1),a.Sb(),a.Tb(2,"div",2),a.Dc(3,E,2,5,"div",3),a.Sb()),2&t&&(a.Cb(1),a.lc("ngForOf",e.steps),a.Cb(2),a.lc("ngForOf",e.steps))},directives:[r.l,L,r.m,r.r],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[N.horizontalStepTransition]},changeDetection:0}),t})();const B=a.Vb(z);let H=(()=>{class t extends s.f{}return t.\u0275fac=function(e){return U(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&a.Wb("type",e.type)},inputs:{type:"type"},features:[a.zb]}),t})();const U=a.Vb(H);let X=(()=>{class t extends s.g{}return t.\u0275fac=function(e){return q(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&a.Wb("type",e.type)},inputs:{type:"type"},features:[a.zb]}),t})();const q=a.Vb(X);let $=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},providers:[T,l.d],imports:[[l.i,r.c,n.g,o.c,s.e,c.b,l.s],l.i]}),t})()},xbPD:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("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 a(t,this.defaultValue))}}class a extends n.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,i){"use strict";i.d(e,"a",function(){return o});var n=i("HDdC"),s=i("DH7j"),r=i("n6bG"),a=i("lJxs");function o(t,e,i,c){return Object(r.a)(i)&&(c=i,i=void 0),c?o(t,e,i).pipe(Object(a.a)(t=>Object(s.a)(t)?c(...t):c(t))):new n.a(n=>{l(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function l(t,e,i,n,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),r=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),r=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),r=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,a=t.length;re.schedule(r,0,{error:t,subscriber:i}):e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,i){"use strict";i.r(e);var n=i("fXoL"),s=i("AytR"),r=i("jhN1"),a=i("tk/3"),o=i("tyNb");const l=[{path:"",pathMatch:"full",redirectTo:"/welcome"},{path:"welcome",loadChildren:()=>i.e(15).then(i.bind(null,"TtBp")).then(t=>t.WelcomeModule)},{path:"knowledge-item",loadChildren:()=>Promise.all([i.e(1),i.e(10)]).then(i.bind(null,"U+IK")).then(t=>t.KnowledgeItemsModule)},{path:"exercise-item",loadChildren:()=>Promise.all([i.e(1),i.e(8)]).then(i.bind(null,"V7M2")).then(t=>t.ExerciseItemsModule)},{path:"tag",loadChildren:()=>i.e(14).then(i.bind(null,"Bbvb")).then(t=>t.TagModule)},{path:"help",loadChildren:()=>i.e(9).then(i.bind(null,"6RTz")).then(t=>t.HelpModule)},{path:"primary-school-math",loadChildren:()=>i.e(6).then(i.bind(null,"GtZ7")).then(t=>t.PrimarySchoolMathModule)},{path:"puzzle-games",loadChildren:()=>i.e(7).then(i.bind(null,"1Ans")).then(t=>t.PuzzleGameModule)},{path:"quiz-summary",loadChildren:()=>i.e(13).then(i.bind(null,"TYNk")).then(t=>t.QuizSummaryModule)},{path:"preview",loadChildren:()=>i.e(12).then(i.bind(null,"caho")).then(t=>t.PreviewModule)},{path:"**",loadChildren:()=>i.e(11).then(i.bind(null,"jSwP")).then(t=>t.NotFoundModule)}];let c=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[o.d.forRoot(l)],o.d]}),t})();var h=i("VHTt"),u=i("0MNC"),d=i("QPBi"),p=i("/t3+"),m=i("bTqV"),f=i("NFeN"),g=i("Qu3c"),b=i("STbY"),_=i("ofXK"),y=i("XhcP"),v=i("7EHt"),w=i("MutI");let x=(()=>{class t{transform(t,e){return t.filter(t=>void 0===e||t.group===e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Mb({name:"navItemFilter",type:t,pure:!0}),t})();function C(t,e){1&t&&(n.Tb(0,"mat-icon"),n.Ec(1,"check"),n.Sb())}function k(t,e){if(1&t){const t=n.Ub();n.Tb(0,"button",18),n.bc("click",function(){n.uc(t);const i=e.$implicit;return n.fc().switchLanguage(i.value)}),n.Dc(1,C,2,0,"mat-icon",19),n.Ec(2),n.gc(3,"transloco"),n.Sb()}if(2&t){const t=e.$implicit,i=n.fc();n.Cb(1),n.lc("ngIf",i.selectedLanguage===t.value),n.Cb(1),n.Gc(" ",n.hc(3,2,t.displayas)," ")}}const S=function(t){return[t]};function O(t,e){if(1&t&&(n.Tb(0,"a",20),n.Ec(1),n.gc(2,"transloco"),n.Sb()),2&t){const t=e.$implicit;n.lc("routerLink",n.pc(4,S,t.route)),n.Cb(1),n.Gc(" ",n.hc(2,2,t.name)," ")}}function E(t,e){if(1&t&&(n.Tb(0,"a",20),n.Ec(1),n.gc(2,"transloco"),n.Sb()),2&t){const t=e.$implicit;n.lc("routerLink",n.pc(4,S,t.route)),n.Cb(1),n.Gc(" ",n.hc(2,2,t.name)," ")}}function A(t,e){if(1&t&&(n.Tb(0,"a",20),n.Ec(1),n.gc(2,"transloco"),n.Sb()),2&t){const t=e.$implicit;n.lc("routerLink",n.pc(4,S,t.route)),n.Cb(1),n.Gc(" ",n.hc(2,2,t.name)," ")}}function D(t,e){if(1&t&&(n.Tb(0,"a",20),n.Ec(1),n.gc(2,"transloco"),n.Sb()),2&t){const t=e.$implicit;n.lc("routerLink",n.pc(4,S,t.route)),n.Cb(1),n.Gc(" ",n.hc(2,2,t.name)," ")}}function I(t,e){if(1&t&&(n.Tb(0,"a",20),n.Ec(1),n.gc(2,"transloco"),n.Sb()),2&t){const t=e.$implicit;n.lc("routerLink",n.pc(4,S,t.route)),n.Cb(1),n.Gc(" ",n.hc(2,2,t.name)," ")}}let T=(()=>{class t{constructor(t,e,i){this.translocoService=i,this.title="Knowledge Builder",this.navItems=[],this.availableLanguages=[{displayas:"Languages.en",value:"en"},{displayas:"Languages.zh",value:"zh"}],this.selectedLanguage="zh",this.mobileQuery=e.matchMedia("(max-width: 600px)"),this._mobileQueryListener=()=>t.detectChanges(),this.mobileQuery.addEventListener("change",this._mobileQueryListener),this.navItems=[{name:"WelcomePage",route:"/welcome",group:h.b.home},{name:"MathExercise.AdditionExercises",route:"/primary-school-math/add-ex",group:h.b.ps_basic},{name:"MathExercise.SubtractionExercises",route:"/primary-school-math/sub-ex",group:h.b.ps_basic},{name:"MathExercise.MultiplicationExercises",route:"/primary-school-math/multi-ex",group:h.b.ps_basic},{name:"MathExercise.DivisionExercises",route:"/primary-school-math/div-ex",group:h.b.ps_basic},{name:"MathExercise.MixedOperations",route:"/primary-school-math/mixed-op",group:h.b.ps_basic},{name:"Quiz.PrintableQuizGenerator",route:"/primary-school-math/printable-quiz",group:h.b.ps_basic},{name:"KnowledgeItem",route:"/knowledge-item",group:h.b.knowledge},{name:"ExerciseItem",route:"/exercise-item",group:h.b.knowledge},{name:"Tags",route:"/tag",group:h.b.knowledge},{name:"PuzzleGames.Calculate24",route:"/puzzle-games/cal24",group:h.b.games},{name:"PuzzleGames.Sudou",route:"/puzzle-games/sudou",group:h.b.games},{name:"PuzzleGames.TypingTutor",route:"puzzle-games/typegame",group:h.b.games},{name:"PuzzleGames.Gobang",route:"puzzle-games/gobang",group:h.b.games},{name:"Help.About",route:"/help/about",group:h.b.help},{name:"Help.Credits",route:"/help/credits",group:h.b.help}]}switchLanguage(t){this.selectedLanguage=t,this.translocoService.setActiveLang("en"===t?"en":"zh")}toggleFullscreen(){}ngOnDestroy(){this.mobileQuery.removeEventListener("change",this._mobileQueryListener)}openCodeRepo(){window.open("https://github.com/alvachien/knowledgebuilder","_blank")}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.h),n.Nb(u.c),n.Nb(d.e))},t.\u0275cmp=n.Hb({type:t,selectors:[["app-root"]],decls:84,vars:55,consts:[[1,"example-container"],["color","primary",1,"example-toolbar"],["mat-icon-button","",3,"click"],[1,"example-app-name"],[1,"toolbar-spacer"],["mat-icon-button","","mat-button","",3,"matTooltip","matMenuTriggerFor"],["overlapTrigger","false","xPosition","after","yPosition","below"],["matMenuLanguage","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-icon-button","","title","Toggle fullscreen",3,"matTooltip","click"],["aria-hidden","false","aria-label","Code Repo"],[1,"example-sidenav-container"],["fixedTopGap","56",3,"mode","fixedInViewport"],["snav",""],["hideToggle","false"],["color","primary"],["mat-list-item","",3,"routerLink",4,"ngFor","ngForOf"],["mat-list-item","",3,"click"],["mat-menu-item","",3,"click"],[4,"ngIf"],["mat-list-item","",3,"routerLink"]],template:function(t,e){if(1&t){const t=n.Ub();n.Tb(0,"div",0),n.Tb(1,"mat-toolbar",1),n.Tb(2,"button",2),n.bc("click",function(){return n.uc(t),n.sc(27).toggle()}),n.Tb(3,"mat-icon"),n.Ec(4,"menu"),n.Sb(),n.Sb(),n.Tb(5,"h1",3),n.Ec(6),n.gc(7,"transloco"),n.Sb(),n.Ob(8,"span",4),n.Tb(9,"button",5),n.gc(10,"transloco"),n.Tb(11,"mat-icon"),n.Ec(12,"language"),n.Sb(),n.Sb(),n.Tb(13,"mat-menu",6,7),n.Dc(15,k,4,4,"button",8),n.Sb(),n.Tb(16,"button",9),n.bc("click",function(){return e.toggleFullscreen()}),n.gc(17,"transloco"),n.Tb(18,"mat-icon"),n.Ec(19,"fullscreen"),n.Sb(),n.Sb(),n.Tb(20,"button",2),n.bc("click",function(){return e.openCodeRepo()}),n.Tb(21,"mat-icon",10),n.Ec(22,"code"),n.Sb(),n.Sb(),n.Tb(23,"span"),n.Ec(24,"V:0.1.30"),n.Sb(),n.Sb(),n.Tb(25,"mat-sidenav-container",11),n.Tb(26,"mat-sidenav",12,13),n.Tb(28,"mat-expansion-panel",14),n.Tb(29,"mat-expansion-panel-header"),n.Tb(30,"mat-panel-title"),n.Tb(31,"mat-icon",15),n.Ec(32,"home"),n.Sb(),n.Ec(33),n.gc(34,"transloco"),n.Sb(),n.Sb(),n.Tb(35,"mat-nav-list"),n.Dc(36,O,3,6,"a",16),n.gc(37,"navItemFilter"),n.Sb(),n.Sb(),n.Tb(38,"mat-expansion-panel",14),n.Tb(39,"mat-expansion-panel-header"),n.Tb(40,"mat-panel-title"),n.Tb(41,"mat-icon",15),n.Ec(42,"school"),n.Sb(),n.Ec(43),n.gc(44,"transloco"),n.Sb(),n.Sb(),n.Tb(45,"mat-nav-list"),n.Dc(46,E,3,6,"a",16),n.gc(47,"navItemFilter"),n.Sb(),n.Sb(),n.Tb(48,"mat-expansion-panel",14),n.Tb(49,"mat-expansion-panel-header"),n.Tb(50,"mat-panel-title"),n.Tb(51,"mat-icon",15),n.Ec(52,"library_books"),n.Sb(),n.Ec(53),n.gc(54,"transloco"),n.Sb(),n.Sb(),n.Tb(55,"mat-nav-list"),n.Dc(56,A,3,6,"a",16),n.gc(57,"navItemFilter"),n.Sb(),n.Sb(),n.Tb(58,"mat-expansion-panel",14),n.Tb(59,"mat-expansion-panel-header"),n.Tb(60,"mat-panel-title"),n.Tb(61,"mat-icon",15),n.Ec(62,"snooze"),n.Sb(),n.Ec(63),n.gc(64,"transloco"),n.Sb(),n.Sb(),n.Tb(65,"mat-nav-list"),n.Dc(66,D,3,6,"a",16),n.gc(67,"navItemFilter"),n.Sb(),n.Sb(),n.Tb(68,"mat-expansion-panel",14),n.Tb(69,"mat-expansion-panel-header"),n.Tb(70,"mat-panel-title"),n.Tb(71,"mat-icon",15),n.Ec(72,"help_outline"),n.Sb(),n.Ec(73),n.gc(74,"transloco"),n.Sb(),n.Sb(),n.Tb(75,"mat-nav-list"),n.Dc(76,I,3,6,"a",16),n.gc(77,"navItemFilter"),n.Sb(),n.Sb(),n.Tb(78,"mat-nav-list"),n.Tb(79,"a",17),n.bc("click",function(){return n.uc(t),n.sc(27).close()}),n.Ec(80),n.gc(81,"transloco"),n.Sb(),n.Sb(),n.Sb(),n.Tb(82,"mat-sidenav-content"),n.Ob(83,"router-outlet"),n.Sb(),n.Sb(),n.Sb()}if(2&t){const t=n.sc(14);n.Fb("example-is-mobile",e.mobileQuery.matches),n.Cb(6),n.Fc(n.hc(7,22,"KnowledgeBuilder")),n.Cb(3),n.mc("matTooltip",n.hc(10,24,"Language")),n.lc("matMenuTriggerFor",t),n.Cb(6),n.lc("ngForOf",e.availableLanguages),n.Cb(1),n.mc("matTooltip",n.hc(17,26,"FullScreen")),n.Cb(9),n.Ac("margin-top",e.mobileQuery.matches?56:0,"px"),n.Cb(1),n.lc("mode",e.mobileQuery.matches?"over":"side")("fixedInViewport",e.mobileQuery.matches),n.Cb(7),n.Gc(" ",n.hc(34,28,"WelcomePage")," "),n.Cb(3),n.lc("ngForOf",n.ic(37,30,e.navItems,0)),n.Cb(7),n.Gc("",n.hc(44,33,"MathExercise.PrimarySchoolBasicMath")," "),n.Cb(3),n.lc("ngForOf",n.ic(47,35,e.navItems,1)),n.Cb(7),n.Gc("",n.hc(54,38,"KnowledgeBuilder")," "),n.Cb(3),n.lc("ngForOf",n.ic(57,40,e.navItems,7)),n.Cb(7),n.Gc("",n.hc(64,43,"PuzzleGames.PuzzleGames")," "),n.Cb(3),n.lc("ngForOf",n.ic(67,45,e.navItems,3)),n.Cb(7),n.Gc("",n.hc(74,48,"Help.About")," "),n.Cb(3),n.lc("ngForOf",n.ic(77,50,e.navItems,6)),n.Cb(4),n.Fc(n.hc(81,53,"Common.Close"))}},directives:[p.a,m.b,f.a,g.a,b.d,b.a,_.l,y.b,y.a,v.b,v.c,v.d,w.e,w.b,y.c,o.e,b.b,_.m,o.c],pipes:[d.d,x],styles:[".example-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:absolute;top:0;bottom:0;left:0;right:0}.mat-sidenav[_ngcontent-%COMP%]{min-width:200px}.example-is-mobile[_ngcontent-%COMP%] .example-toolbar[_ngcontent-%COMP%]{position:fixed;z-index:2}h1.example-app-name[_ngcontent-%COMP%]{margin-left:8px}.example-sidenav-container[_ngcontent-%COMP%]{flex:1}.example-is-mobile[_ngcontent-%COMP%] .example-sidenav-container[_ngcontent-%COMP%]{flex:1 0 auto}"]}),t})();var R=i("R1ws"),j=i("jIBr"),L=i("0LvA"),N=i("lR5k");const P={provide:d.b,useClass:(()=>{class t{constructor(t){this.http=t}getTranslation(t){return this.http.get(`${s.a.basehref}assets/i18n/${t}.json`)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(a.a))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()};var F=i("o0su");let M=(()=>{class t{}return t.\u0275mod=n.Lb({type:t,bootstrap:[T]}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[F.b,F.c,{provide:d.a,useValue:Object(d.f)({availableLangs:["en","zh"],defaultLang:"zh",reRenderOnLangChange:!0,prodMode:s.a.production})},P],imports:[[r.a,c,R.b,a.b,d.c,L.b,N.b.forRoot({loader:a.a,markedOptions:{provide:N.c,useValue:{gfm:!0,breaks:!1,pedantic:!1,smartLists:!0,smartypants:!1}}}),j.a]]}),t})();s.a.production&&Object(n.V)(),r.c().bootstrapModule(M).catch(t=>console.error(t))},zn8P:function(t,e){function i(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id="zn8P"},zx2A:function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return l});var n=i("7o/Q"),s=i("HDdC"),r=i("SeVD");class a extends n.a{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class o extends n.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(!e.closed)return t instanceof s.a?t.subscribe(e):Object(r.a)(t)(e)}}},[[0,0]]]); \ No newline at end of file diff --git a/dist/main.f8c74ed882037ce2316a.js b/dist/main.f8c74ed882037ce2316a.js new file mode 100644 index 00000000..bd2732aa --- /dev/null +++ b/dist/main.f8c74ed882037ce2316a.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{"+0xr":function(t,e,i){"use strict";i.d(e,"a",function(){return y}),i.d(e,"b",function(){return u}),i.d(e,"c",function(){return f}),i.d(e,"d",function(){return b}),i.d(e,"e",function(){return p}),i.d(e,"f",function(){return S}),i.d(e,"g",function(){return w}),i.d(e,"h",function(){return E}),i.d(e,"i",function(){return C}),i.d(e,"j",function(){return c}),i.d(e,"k",function(){return D});var n=i("f6nW"),s=i("0EQZ"),r=i("FKr1"),a=(i("8LU1"),i("2Vo4"),i("XNiG"),i("quSY"),i("VRyK"),i("LRne"),i("itXk"),i("lJxs"),i("fXoL"));const o=[[["caption"]],[["colgroup"],["col"]]],l=["caption","colgroup, col"];let c=(()=>{class t extends n.q{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return t.\u0275fac=function(e){return h(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(t,e){2&t&&a.Fb("mat-table-fixed-layout",e.fixedLayout)},exportAs:["matTable"],features:[a.Bb([{provide:s.g,useClass:s.e},{provide:n.q,useExisting:t},{provide:n.a,useExisting:t},{provide:n.x,useClass:n.y}]),a.zb],ngContentSelectors:l,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(a.kc(o),a.jc(0),a.jc(1,1),a.Pb(2,0),a.Pb(3,1),a.Pb(4,2),a.Pb(5,3))},directives:[n.v,n.t,n.w,n.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}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),t})();const h=a.Vb(c);let u=(()=>{class t extends n.c{}return t.\u0275fac=function(e){return d(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matCellDef",""]],features:[a.Bb([{provide:n.c,useExisting:t}]),a.zb]}),t})();const d=a.Vb(u);let p=(()=>{class t extends n.k{}return t.\u0275fac=function(e){return m(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matHeaderCellDef",""]],features:[a.Bb([{provide:n.k,useExisting:t}]),a.zb]}),t})();const m=a.Vb(p);let f=(()=>{class t extends n.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 g(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[a.Bb([{provide:n.e,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),a.zb]}),t})();const g=a.Vb(f);let b=(()=>{class t extends n.j{}return t.\u0275fac=function(e){return _(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[a.zb]}),t})();const _=a.Vb(b);let y=(()=>{class t extends n.b{}return t.\u0275fac=function(e){return v(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[a.zb]}),t})();const v=a.Vb(y);let w=(()=>{class t extends n.m{}return t.\u0275fac=function(e){return x(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[a.Bb([{provide:n.m,useExisting:t}]),a.zb]}),t})();const x=a.Vb(w);let C=(()=>{class t extends n.p{}return t.\u0275fac=function(e){return k(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[a.Bb([{provide:n.p,useExisting:t}]),a.zb]}),t})();const k=a.Vb(C);let S=(()=>{class t extends n.l{}return t.\u0275fac=function(e){return O(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[a.Bb([{provide:n.l,useExisting:t}]),a.zb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&a.Pb(0,0)},directives:[n.d],encapsulation:2}),t})();const O=a.Vb(S);let E=(()=>{class t extends n.o{}return t.\u0275fac=function(e){return A(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[a.Bb([{provide:n.o,useExisting:t}]),a.zb],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,e){1&t&&a.Pb(0,0)},directives:[n.d],encapsulation:2}),t})();const A=a.Vb(E);let D=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},imports:[[n.r,r.i],r.i]}),t})()},"+rOU":function(t,e,i){"use strict";i.d(e,"a",function(){return c}),i.d(e,"b",function(){return u}),i.d(e,"c",function(){return d}),i.d(e,"d",function(){return a}),i.d(e,"e",function(){return h}),i.d(e,"f",function(){return p}),i.d(e,"g",function(){return f}),i.d(e,"h",function(){return o});var n=i("fXoL"),s=i("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 a extends r{constructor(t,e,i,n){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=n}}class o extends r{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}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 l extends r{constructor(t){super(),this.element=t instanceof n.l?t.nativeElement:t}}class c{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof a?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof o?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof l?(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 c{constructor(t,e,i,n,s){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=n,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=s}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}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 o{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.N),n.Nb(n.R))},t.\u0275dir=n.Ib({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.zb]}),t})(),d=(()=>{class t extends c{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new n.o,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}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,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),n=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(n.hostView.rootNodes[0]),super.setDisposeFn(()=>n.destroy()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}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)(n.Nb(n.j),n.Nb(n.R),n.Nb(s.d))},t.\u0275dir=n.Ib({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.zb]}),t})(),p=(()=>{class t extends d{}return t.\u0275fac=function(e){return m(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[n.Bb([{provide:d,useExisting:t}]),n.zb]}),t})();const m=n.Vb(p);let f=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})()},"/t3+":function(t,e,i){"use strict";i.d(e,"a",function(){return d}),i.d(e,"b",function(){return p}),i.d(e,"c",function(){return u});var n=i("FKr1"),s=i("ofXK"),r=i("fXoL"),a=i("nLfN");const o=["*",[["mat-toolbar-row"]]],l=["*","mat-toolbar-row"];class c{constructor(t){this._elementRef=t}}const h=Object(n.w)(c);let u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t})(),d=(()=>{class t extends h{constructor(t,e,i){super(t),this._platform=e,this._document=i}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.l),r.Nb(a.a),r.Nb(s.d))},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,i){if(1&t&&r.Gb(i,u,!0),2&t){let t;r.rc(t=r.cc())&&(e._toolbarRows=t)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&r.Fb("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[r.zb],ngContentSelectors:l,decls:2,vars:0,template:function(t,e){1&t&&(r.kc(o),r.jc(0),r.jc(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t})(),p=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[n.i],n.i]}),t})()},"/uUt":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("7o/Q");function s(t,e){return i=>i.lift(new r(t,e))}class r{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new a(t,this.compare,this.keySelector))}}class a extends n.a{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(n){return this.destination.error(n)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(n){return this.destination.error(n)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}},0:function(t,e,i){t.exports=i("zUnb")},"0EQZ":function(t,e,i){"use strict";i.d(e,"a",function(){return c}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return d}),i.d(e,"d",function(){return p}),i.d(e,"e",function(){return h}),i.d(e,"f",function(){return u}),i.d(e,"g",function(){return m}),i.d(e,"h",function(){return l});var n=i("7+OI"),s=i("LRne"),r=i("XNiG"),a=i("fXoL");class o{}function l(t){return t&&"function"==typeof t.connect}class c extends o{constructor(t){super(),this._data=t}connect(){return Object(n.a)(this._data)?this._data:Object(s.a)(this._data)}disconnect(){}}class h{applyChanges(t,e,i,n,s){t.forEachOperation((t,n,r)=>{let a,o;if(null==t.previousIndex){const s=i(t,n,r);a=e.createEmbeddedView(s.templateRef,s.context,s.index),o=1}else null==r?(e.remove(n),o=3):(a=e.get(n),e.move(a,r),o=2);s&&s({context:null==a?void 0:a.context,operation:o,record:t})})}detach(){}}class u{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(t,e,i,n,s){t.forEachOperation((t,r,a)=>{let o,l;null==t.previousIndex?(o=this._insertView(()=>i(t,r,a),a,e,n(t)),l=o?1:0):null==a?(this._detachAndCacheView(r,e),l=3):(o=this._moveView(r,a,e,n(t)),l=2),s&&s({context:null==o?void 0:o.context,operation:l,record:t})})}detach(){for(const t of this._viewCache)t.destroy()}_insertView(t,e,i,n){let s=this._insertViewFromCache(e,i);if(s)return void(s.context.$implicit=n);const r=t();return i.createEmbeddedView(r.templateRef,r.context,r.index)}_detachAndCacheView(t,e){const i=this._detachView(t,e);this._maybeCacheView(i,e)}_moveView(t,e,i,n){const s=i.get(t);return i.move(s,e),s.context.$implicit=n,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 i of this._listeners)i(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(a.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const m=new a.s("_ViewRepeater")},"0EUg":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("bHdf");function s(){return Object(n.a)(1)}},"0IaG":function(t,e,i){"use strict";i.d(e,"a",function(){return R}),i.d(e,"b",function(){return F}),i.d(e,"c",function(){return L}),i.d(e,"d",function(){return P}),i.d(e,"e",function(){return V}),i.d(e,"f",function(){return S}),i.d(e,"g",function(){return N});var n=i("rDax"),s=i("+rOU"),r=i("fXoL"),a=i("FKr1"),o=i("cH1L"),l=i("ofXK"),c=i("XNiG"),h=i("NXyV"),u=i("LRne"),d=i("pLZG"),p=i("IzEk"),m=i("JX91"),f=i("R0Ic"),g=i("FtGj"),b=i("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(f.m)("dialogContainer",[Object(f.j)("void, exit",Object(f.k)({opacity:0,transform:"scale(0.7)"})),Object(f.j)("enter",Object(f.k)({transform:"none"})),Object(f.l)("* => enter",Object(f.e)("150ms cubic-bezier(0, 0, 0.2, 1)",Object(f.k)({transform:"none",opacity:1}))),Object(f.l)("* => void, * => exit",Object(f.e)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Object(f.k)({opacity:0})))])};let w=(()=>{class t extends s.a{constructor(t,e,i,n,s,a){super(),this._elementRef=t,this._focusTrapFactory=e,this._changeDetectorRef=i,this._config=s,this._focusMonitor=a,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=n}_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,i=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==i&&!i.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.Nb(r.l),r.Nb(b.i),r.Nb(r.h),r.Nb(l.d,8),r.Nb(y),r.Nb(b.h))},t.\u0275dir=r.Ib({type:t,viewQuery:function(t,e){if(1&t&&r.zc(s.c,!0),2&t){let t;r.rc(t=r.cc())&&(e._portalOutlet=t.first)}},features:[r.zb]}),t})(),x=(()=>{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 C(e||t)},t.\u0275cmp=r.Hb({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.Bc("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(r.Wb("id",e._id),r.Db("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),r.Cc("@dialogContainer",e._state))},features:[r.zb],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&r.Dc(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;box-sizing:content-box;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 C=r.Vb(x);let k=0;class S{constructor(t,e,i="mat-dialog-"+k++){this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new c.a,this._afterClosed=new c.a,this._beforeClosed=new c.a,this._state=0,e._id=i,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===g.h&&!this.disableClose&&!Object(g.t)(t))).subscribe(t=>{t.preventDefault(),O(this,"keyboard")}),t.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():O(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 O(t,e,i){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(i)}const E=new r.s("MatDialogData"),A=new r.s("mat-dialog-default-options"),D=new r.s("mat-dialog-scroll-strategy"),I={provide:D,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.block()}};let T=(()=>{class t{constructor(t,e,i,n,s,r,a,o,l){this._overlay=t,this._injector=e,this._defaultOptions=i,this._parentDialog=n,this._overlayContainer=s,this._dialogRefConstructor=a,this._dialogContainerType=o,this._dialogDataToken=l,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new c.a,this._afterOpenedAtThisLevel=new c.a,this._ariaHiddenElements=new Map,this.afterAllClosed=Object(h.a)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Object(m.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 i=this._createOverlay(e),n=this._attachDialogContainer(i,e),s=this._attachDialogContent(t,n,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(s),s.afterClosed().subscribe(()=>this._removeOpenDialog(s)),this.afterOpened.next(s),n._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 n.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 i=r.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),n=new s.d(this._dialogContainerType,e.viewContainerRef,i,e.componentFactoryResolver);return t.attach(n).instance}_attachDialogContent(t,e,i,n){const a=new this._dialogRefConstructor(i,e,n.id);if(t instanceof r.N)e.attachTemplatePortal(new s.h(t,null,{$implicit:n.data,dialogRef:a}));else{const i=this._createInjector(n,a,e),r=e.attachComponentPortal(new s.d(t,n.viewContainerRef,i));a.componentInstance=r.instance}return a.updateSize(n.width,n.height).updatePosition(n.position),a}_createInjector(t,e,i){const n=t&&t.viewContainerRef&&t.viewContainerRef.injector,s=[{provide:this._dialogContainerType,useValue:i},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||n&&n.get(o.b,null)||s.push({provide:o.b,useValue:{value:t.direction,change:Object(u.a)()}}),r.t.create({parent:n||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 i=e.length-1;i>-1;i--){let n=e[i];n===t||"SCRIPT"===n.nodeName||"STYLE"===n.nodeName||n.hasAttribute("aria-live")||(this._ariaHiddenElements.set(n,n.getAttribute("aria-hidden")),n.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.Nb(n.c),r.Nb(r.t),r.Nb(void 0),r.Nb(void 0),r.Nb(n.e),r.Nb(void 0),r.Nb(r.P),r.Nb(r.P),r.Nb(r.s))},t.\u0275dir=r.Ib({type:t}),t})(),R=(()=>{class t extends T{constructor(t,e,i,n,s,r,a){super(t,e,n,r,a,s,S,x,E)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(n.c),r.Xb(r.t),r.Xb(l.i,8),r.Xb(A,8),r.Xb(D),r.Xb(t,12),r.Xb(n.e))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),j=0,L=(()=>{class t{constructor(t,e,i){this.dialogRef=t,this._elementRef=e,this._dialog=i,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=M(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){const e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}_onButtonClick(t){O(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(S,8),r.Nb(r.l),r.Nb(R))},t.\u0275dir=r.Ib({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&r.bc("click",function(t){return e._onButtonClick(t)}),2&t&&r.Db("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[r.Ab]}),t})(),N=(()=>{class t{constructor(t,e,i){this._dialogRef=t,this._elementRef=e,this._dialog=i,this.id="mat-dialog-title-"+j++}ngOnInit(){this._dialogRef||(this._dialogRef=M(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const t=this._dialogRef._containerInstance;t&&!t._ariaLabelledBy&&(t._ariaLabelledBy=this.id)})}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(S,8),r.Nb(r.l),r.Nb(R))},t.\u0275dir=r.Ib({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&r.Wb("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t})(),P=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t})(),F=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t})();function M(t,e){let i=t.nativeElement.parentElement;for(;i&&!i.classList.contains("mat-dialog-container");)i=i.parentElement;return i?e.find(t=>t.id===i.id):null}let V=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},providers:[R,I],imports:[[n.f,s.g,a.i],a.i]}),t})()},"0LvA":function(t,e,i){"use strict";function n(t,e,i,n){var s,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(a=(r<3?s(a):r>3?s(e,i,a):s(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a}function s(t,e){return function(i,n){e(i,n,t)}}function r(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}i.d(e,"a",function(){return f}),i.d(e,"b",function(){return g});var a=i("fXoL"),o=i("2Vo4"),l=(i("XNiG"),i("1G5W"),i("pLZG")),c=i("IzEk"),h=i("3Pt+");const u=["editor"],d="MONACO_PATH";let p=(()=>{let t=class{constructor(t,e){this.ngZone=t,this.monacoPathConfig=e,this.isMonacoLoaded$=new o.a(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?t.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(t){t&&(this._monacoPath=t)}loadMonaco(){const t=()=>{let t=this._monacoPath;window.amdRequire=window.require,this.nodeRequire&&(window.require=this.nodeRequire,t=window.require("path").resolve(window.__dirname,this._monacoPath)),window.amdRequire.config({paths:{vs:t}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))})};if(window.amdRequire)return t();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const e=document.createElement("script");e.type="text/javascript",e.src=this._monacoPath+"/loader.js",e.addEventListener("load",t),document.body.appendChild(e)}addElectronFixScripts(){const t=document.createElement("script"),e=document.createTextNode("self.module = undefined;"),i=document.createTextNode("self.process.browser = true;");t.appendChild(e),t.appendChild(i),document.body.appendChild(t)}};return t.\u0275fac=function(e){return new(e||t)(a.Xb(a.B),a.Xb(d,8))},t.\u0275prov=Object(a.Jb)({factory:function(){return new t(Object(a.Xb)(a.B),Object(a.Xb)("MONACO_PATH",8))},token:t,providedIn:"root"}),t=n([s(1,Object(a.C)()),s(1,Object(a.q)(d)),r("design:paramtypes",[a.B,String])],t),t})();var m;let f=(()=>{let t=m=class{constructor(t){this.monacoLoader=t,this.init=new a.o,this.propagateChange=t=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe(Object(l.a)(t=>t),Object(c.a)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(t){if(this.editor&&t.options&&!t.options.firstChange){const e=t.options.currentValue,{language:i,theme:n}=e,s=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);st.uri.path===e.path)),this.modelUriInstance=i||monaco.editor.createModel(t,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(t){this.value=t,this.editor&&t?this.editor.setValue(t):this.editor&&this.editor.setValue("")}registerOnChange(t){this.propagateChange=t}registerOnTouched(t){this.onTouched=t}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(t){this.onErrorStatusChange=t}initEditor(){const t={value:[this.value].join("\n"),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?Object.assign(Object.assign({},t),this.options):t),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const t=this.modelMarkers.map(({message:t})=>t).join("|");this.parsedError!==t&&(this.parsedError=t,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}};return t.\u0275fac=function(e){return new(e||t)(a.Nb(p))},t.\u0275cmp=a.Hb({type:t,selectors:[["ngx-monaco-editor"]],viewQuery:function(t,e){if(1&t&&a.zc(u,!0),2&t){let t;a.rc(t=a.cc())&&(e.editorContent=t.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[a.Bb([{provide:h.k,useExisting:Object(a.W)(()=>m),multi:!0},{provide:h.j,useExisting:Object(a.W)(()=>m),multi:!0}]),a.Ab],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(t,e){1&t&&(a.Tb(0,"div",0,1),a.Ob(2,"div",2,3),a.Sb())},styles:[".monaco-editor[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n\n}\n.editor-container[_ngcontent-%COMP%] {\n\toverflow: hidden;\n\tposition: relative;\n\tdisplay: table;\n\twidth: 100%;\n height: 100%;\n min-width: 0;\n}"],changeDetection:0}),t=m=n([r("design:paramtypes",[p])],t),t})(),g=(()=>{let t=class{};return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},imports:[[]]}),t})()},"0MNC":function(t,e,i){"use strict";i.d(e,"a",function(){return x}),i.d(e,"b",function(){return k}),i.d(e,"c",function(){return v});var n=i("fXoL"),s=i("8LU1"),r=i("XNiG"),a=i("itXk"),o=i("GyhO"),l=i("HDdC"),c=i("IzEk"),h=i("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=i("Kj3r"),m=i("lJxs"),f=i("JX91"),g=i("1G5W"),b=i("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)(n.Xb(b.a))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(b.a))},token:t,providedIn:"root"}),t})();function w(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let x=(()=>{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 C(Object(s.b)(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){const e=C(Object(s.b)(t)).map(t=>this._registerQuery(t).observable);let i=Object(a.b)(e);return i=Object(o.a)(i.pipe(Object(c.a)(1)),i.pipe(t=>t.lift(new u(1)),Object(p.a)(0))),i.pipe(Object(m.a)(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:i})=>{e.matches=e.matches||t,e.breakpoints[i]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),i={observable:new l.a(t=>{const i=e=>this._zone.run(()=>t.next(e));return e.addListener(i),()=>{e.removeListener(i)}}).pipe(Object(f.a)(e),Object(m.a)(({matches:e})=>({query:t,matches:e})),Object(g.a)(this._destroySubject)),mql:e};return this._queries.set(t,i),i}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(v),n.Xb(n.B))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(v),Object(n.Xb)(n.B))},token:t,providedIn:"root"}),t})();function C(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const k={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},"1G5W":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("zx2A");function s(t){return e=>e.lift(new r(t))}class r{constructor(t){this.notifier=t}call(t,e){const i=new a(t),s=Object(n.c)(this.notifier,new n.a(i));return s&&!i.seenValue?(i.add(s),e.subscribe(i)):i}}class a extends n.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1jcm":function(t,e,i){"use strict";i.d(e,"a",function(){return w}),i.d(e,"b",function(){return C});var n=i("GU7r"),s=i("fXoL"),r=i("FKr1"),a=i("8LU1"),o=i("3Pt+"),l=i("R1ws"),c=i("u47x");const h=["thumbContainer"],u=["toggleBar"],d=["input"],p=function(){return{enterDuration:150}},m=["*"],f=new s.s("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let g=0;const b={provide:o.k,useExisting:Object(s.W)(()=>w),multi:!0};class _{constructor(t,e){this.source=t,this.checked=e}}class y{constructor(t){this._elementRef=t}}const v=Object(r.B)(Object(r.w)(Object(r.x)(Object(r.y)(y)),"accent"));let w=(()=>{class t extends v{constructor(t,e,i,n,r,a){super(t),this._focusMonitor=e,this._changeDetectorRef=i,this.defaults=r,this._animationMode=a,this._onChange=t=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++g,this._required=!1,this._checked=!1,this.name=null,this.id=this._uniqueId,this.labelPosition="after",this.ariaLabel=null,this.ariaLabelledby=null,this.change=new s.o,this.toggleChange=new s.o,this.tabIndex=parseInt(n)||0}get required(){return this._required}set required(t){this._required=Object(a.c)(t)}get checked(){return this._checked}set checked(t){this._checked=Object(a.c)(t),this._changeDetectorRef.markForCheck()}get inputId(){return(this.id||this._uniqueId)+"-input"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{"keyboard"===t||"program"===t?this._inputElement.nativeElement.focus():t||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(t){t.stopPropagation()}writeValue(t){this.checked=!!t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this._changeDetectorRef.markForCheck()}focus(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(new _(this,this.checked))}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(c.h),s.Nb(s.h),s.Yb("tabindex"),s.Nb(f),s.Nb(l.a,8))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){if(1&t&&(s.Ic(h,!0),s.Ic(u,!0),s.Ic(d,!0)),2&t){let t;s.rc(t=s.cc())&&(e._thumbEl=t.first),s.rc(t=s.cc())&&(e._thumbBarEl=t.first),s.rc(t=s.cc())&&(e._inputElement=t.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Wb("id",e.id),s.Db("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),s.Fb("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[s.Bb([b]),s.zb],ngContentSelectors:m,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.kc(),s.Tb(0,"label",0,1),s.Tb(2,"div",2,3),s.Tb(4,"input",4,5),s.bc("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),s.Sb(),s.Tb(6,"div",6,7),s.Ob(8,"div",8),s.Tb(9,"div",9),s.Ob(10,"div",10),s.Sb(),s.Sb(),s.Sb(),s.Tb(11,"span",11,12),s.bc("cdkObserveContent",function(){return e._onLabelTextChange()}),s.Tb(13,"span",13),s.Ec(14,"\xa0"),s.Sb(),s.jc(15),s.Sb(),s.Sb()),2&t){const t=s.sc(1),i=s.sc(12);s.Db("for",e.inputId),s.Cb(2),s.Fb("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),s.Cb(2),s.lc("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),s.Db("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),s.Cb(5),s.lc("matRippleTrigger",t)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",s.oc(17,p))}},directives:[r.r,n.a],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)}}),t})(),C=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},imports:[[x,r.s,r.i,n.c],x,r.i]}),t})()},"2QA8":function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("XNiG"),s=i("9ppp");class r extends n.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,i){"use strict";i.d(e,"a",function(){return s});let n=!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 n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},"3E0/":function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("D0XW"),s=i("7o/Q"),r=i("WMd4");function a(t,e=n.a){var i;const s=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new o(s,e))}class o{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 s.a{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,n=t.scheduler,s=t.destination;for(;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const e=Math.max(0,i[0].time-n.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,i=new c(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(r.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(r.a.createComplete()),this.unsubscribe()}}class c{constructor(t,e){this.time=t,this.notification=e}}},"3N8a":function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("quSY");class s extends n.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 i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i=!1,n=void 0;try{this.work(t)}catch(s){i=!0,n=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),n}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,i){"use strict";i.d(e,"a",function(){return Lt}),i.d(e,"b",function(){return T}),i.d(e,"c",function(){return p}),i.d(e,"d",function(){return gt}),i.d(e,"e",function(){return It}),i.d(e,"f",function(){return bt}),i.d(e,"g",function(){return At}),i.d(e,"h",function(){return zt}),i.d(e,"i",function(){return Ft}),i.d(e,"j",function(){return g}),i.d(e,"k",function(){return l}),i.d(e,"l",function(){return j}),i.d(e,"m",function(){return N}),i.d(e,"n",function(){return P}),i.d(e,"o",function(){return wt}),i.d(e,"p",function(){return kt}),i.d(e,"q",function(){return M}),i.d(e,"r",function(){return Bt}),i.d(e,"s",function(){return jt}),i.d(e,"t",function(){return y}),i.d(e,"u",function(){return St});var n=i("fXoL"),s=i("ofXK"),r=i("cp0P"),a=i("Cfvw"),o=i("lJxs");const l=new n.s("NgValueAccessor"),c={provide:l,useExisting:Object(n.W)(()=>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)(n.Nb(n.G),n.Nb(n.l))},t.\u0275dir=n.Ib({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[n.Bb([c])]}),t})();const u={provide:l,useExisting:Object(n.W)(()=>p),multi:!0},d=new n.s("CompositionEventMode");let p=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,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)(n.Nb(n.G),n.Nb(n.l),n.Nb(d,8))},t.\u0275dir=n.Ib({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&n.bc("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:[n.Bb([u])]}),t})();function m(t){return null==t||0===t.length}function f(t){return null!=t&&"number"==typeof t.length}const g=new n.s("NgValidators"),b=new n.s("NgAsyncValidators"),_=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class y{static min(t){return e=>{if(m(e.value)||m(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(m(e.value)||m(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return m(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return m(t.value)||_.test(t.value)?null:{email:!0}}static minLength(t){return e=>m(e.value)||!f(e.value)?null:e.value.lengthf(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return y.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(m(t.value))return null;const n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(v);return 0==e.length?null:function(t){return x(C(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(v);return 0==e.length?null:function(t){const i=C(t,e).map(w);return Object(r.a)(i).pipe(Object(o.a)(x))}}}function v(t){return null!=t}function w(t){const e=Object(n.ub)(t)?Object(a.a)(t):t;return Object(n.tb)(e),e}function x(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function C(t,e){return e.map(e=>e(t))}function k(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}function S(t){return null!=t?y.compose(k(t)):null}function O(t){return null!=t?y.composeAsync(k(t)):null}function E(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function A(t){return t._rawValidators}function D(t){return t._rawAsyncValidators}let I=(()=>{class t{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=S(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=O(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t}),t})(),T=(()=>{class t extends I{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return R(e||t)},t.\u0275dir=n.Ib({type:t,features:[n.zb]}),t})();const R=n.Vb(T);class j extends I{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class L{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let N=(()=>{class t extends L{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(j,2))},t.\u0275dir=n.Ib({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Fb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.zb]}),t})(),P=(()=>{class t extends L{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(T,2))},t.\u0275dir=n.Ib({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&n.Fb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[n.zb]}),t})();const F={provide:l,useExisting:Object(n.W)(()=>M),multi:!0};let M=(()=>{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)(n.Nb(n.G),n.Nb(n.l))},t.\u0275dir=n.Ib({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n.Bb([F])]}),t})();const V={provide:l,useExisting:Object(n.W)(()=>B),multi:!0};let z=(()=>{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=n.Jb({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{constructor(t,e,i,n){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=n,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(j),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.G),n.Nb(n.l),n.Nb(z),n.Nb(n.t))},t.\u0275dir=n.Ib({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.Bb([V])]}),t})();const H={provide:l,useExisting:Object(n.W)(()=>U),multi:!0};let U=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"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)(n.Nb(n.G),n.Nb(n.l))},t.\u0275dir=n.Ib({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[n.Bb([H])]}),t})();const X={provide:l,useExisting:Object(n.W)(()=>q),multi:!0};let q=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=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",i)}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)(n.Nb(n.G),n.Nb(n.l))},t.\u0275dir=n.Ib({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&n.bc("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.Bb([X])]}),t})();const $={provide:l,useExisting:Object(n.W)(()=>W),multi:!0};let W=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&J(t,e)})}(t,e),function(t,e){const i=(t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)};t.registerOnChange(i),e._registerOnDestroy(()=>{t._unregisterOnChange(i)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&J(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){const i=t=>{e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(i),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(i)})}}(t,e)}function Y(t,e){t.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Q(t,e,i){const n=A(t);null!==e.validator?t.setValidators(E(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const s=D(t);if(null!==e.asyncValidator?t.setAsyncValidators(E(s,e.asyncValidator)):"function"==typeof s&&t.setAsyncValidators([s]),i){const i=()=>t.updateValueAndValidity();Y(e._rawValidators,i),Y(e._rawAsyncValidators,i)}}function Z(t,e,i){if(null!==t){if(null!==e.validator){const i=A(t);Array.isArray(i)&&i.length>0&&t.setValidators(i.filter(t=>t!==e.validator))}if(null!==e.asyncValidator){const i=D(t);Array.isArray(i)&&i.length>0&&t.setAsyncValidators(i.filter(t=>t!==e.asyncValidator))}}if(i){const t=()=>{};Y(e._rawValidators,t),Y(e._rawAsyncValidators,t)}}function J(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function tt(t,e){Q(t,e,!1)}function et(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}const it=[h,U,M,q,W,B];function nt(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function st(t,e){if(!e)return null;Array.isArray(e);let i=void 0,n=void 0,s=void 0;return e.forEach(t=>{var e;t.constructor===p?i=t:(e=t,it.some(t=>e.constructor===t)?n=t:s=t)}),s||n||i||null}function rt(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const at="VALID",ot="INVALID",lt="PENDING",ct="DISABLED";function ht(t){return(mt(t)?t.validators:t)||null}function ut(t){return Array.isArray(t)?S(t):t||null}function dt(t,e){return(mt(e)?e.asyncValidators:t)||null}function pt(t){return Array.isArray(t)?O(t):t||null}function mt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ft{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=ut(this._rawValidators),this._composedAsyncValidatorFn=pt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===at}get invalid(){return this.status===ot}get pending(){return this.status==lt}get disabled(){return this.status===ct}get enabled(){return this.status!==ct}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=ut(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=pt(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=lt,!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=ct,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=at,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(),this.status!==at&&this.status!==lt||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()?ct:at}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=lt,this._hasOwnPendingAsyncValidator=!0;const e=w(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let n=t;return e.forEach(t=>{n=n instanceof bt?n.controls.hasOwnProperty(t)?n.controls[t]:null:n instanceof _t&&n.at(t)||null}),n}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.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 n.o,this.statusChanges=new n.o}_calculateStatus(){return this._allControlsDisabled()?ct:this.errors?ot:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(lt)?lt:this._anyControlsHaveStatus(ot)?ot:at}_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){mt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class gt extends ft{constructor(t=null,e,i){super(ht(e),dt(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){rt(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){rt(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class bt extends ft{constructor(t,e,i){super(ht(e),dt(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}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(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof gt?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 i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,n)=>{i=e(i,t,n)}),i}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class _t extends ft{constructor(t,e,i){super(ht(e),dt(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!i})}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,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,n)=>{i.reset(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof gt?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,i)=>{t(e,i)})}_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,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_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 yt={provide:T,useExisting:Object(n.W)(()=>wt)},vt=(()=>Promise.resolve(null))();let wt=(()=>{class t extends T{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new n.o,this.form=new bt({},S(t),O(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){vt.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),G(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){vt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),rt(this._directives,t)})}addFormGroup(t){vt.then(()=>{const e=this._findContainer(t.path),i=new bt({});tt(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){vt.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){vt.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,nt(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)(n.Nb(g,10),n.Nb(b,10))},t.\u0275dir=n.Ib({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&n.bc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Bb([yt]),n.zb]}),t})();const xt={provide:j,useExisting:Object(n.W)(()=>kt)},Ct=(()=>Promise.resolve(null))();let kt=(()=>{class t extends j{constructor(t,e,i,s){super(),this.control=new gt,this._registered=!1,this.update=new n.o,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=st(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),et(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?K(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){G(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){Ct.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Ct.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(T,9),n.Nb(g,10),n.Nb(b,10),n.Nb(l,10))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.Bb([xt]),n.zb,n.Ab]}),t})(),St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const Ot=new n.s("NgModelWithFormControlWarning"),Et={provide:T,useExisting:Object(n.W)(()=>At)};let At=(()=>{class t extends T{constructor(t,e){super(),this.validators=t,this.asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new n.o,this._setValidators(t),this._setAsyncValidators(e)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return G(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){rt(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);tt(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,nt(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const i=()=>{};e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i),Z(t,e,!0),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}(t.control||null,t),e&&G(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Q(this.form,this,!1),this._oldForm&&Z(this._oldForm,this,!1)}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(g,10),n.Nb(b,10))},t.\u0275dir=n.Ib({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&n.bc("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.Bb([Et]),n.zb,n.Ab]}),t})();const Dt={provide:j,useExisting:Object(n.W)(()=>It)};let It=(()=>{class t extends j{constructor(t,e,i,s,r){super(),this._ngModelWarningConfig=r,this._added=!1,this.update=new n.o,this._ngModelWarningSent=!1,this._parent=t,this._setValidators(e),this._setAsyncValidators(i),this.valueAccessor=st(0,s)}set isDisabled(t){}ngOnChanges(t){this._added||this._setUpControl(),et(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return K(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(T,13),n.Nb(g,10),n.Nb(b,10),n.Nb(l,10),n.Nb(Ot,8))},t.\u0275dir=n.Ib({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.Bb([Dt]),n.zb,n.Ab]}),t._ngModelWarningSentOnce=!1,t})();const Tt={provide:g,useExisting:Object(n.W)(()=>jt),multi:!0},Rt={provide:g,useExisting:Object(n.W)(()=>Lt),multi:!0};let jt=(()=>{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?y.required(t):null}registerOnValidatorChange(t){this._onChange=t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&n.Db("required",e.required?"":null)},inputs:{required:"required"},features:[n.Bb([Tt])]}),t})(),Lt=(()=>{class t extends jt{validate(t){return this.required?y.requiredTrue(t):null}}return t.\u0275fac=function(e){return Nt(e||t)},t.\u0275dir=n.Ib({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&&n.Db("required",e.required?"":null)},features:[n.Bb([Rt]),n.zb]}),t})();const Nt=n.Vb(Lt),Pt={provide:g,useExisting:Object(n.W)(()=>Ft),multi:!0};let Ft=(()=>{class t{constructor(){this._validator=y.nullValidator}ngOnChanges(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}validate(t){return null!=this.maxlength?this._validator(t):null}registerOnValidatorChange(t){this._onChange=t}_createValidator(){this._validator=y.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.Db("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.Bb([Pt]),n.Ab]}),t})(),Mt=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})(),Vt=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let n=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)?(n=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(n=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new bt(i,{asyncValidators:s,updateOn:r,validators:n})}control(t,e,i){return new gt(t,e,i)}array(t,e,i){const n=t.map(t=>this._createControl(t));return new _t(n,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof gt||t instanceof bt||t instanceof _t?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=n.Jb({token:t,factory:t.\u0275fac}),t})(),zt=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[z],imports:[Mt]}),t})(),Bt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:Ot,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[Vt,z],imports:[Mt]}),t})()},"3UWI":function(t,e,i){"use strict";i.d(e,"a",function(){return l});var n=i("D0XW"),s=i("zx2A");class r{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new a(t,this.durationSelector))}}class a extends s.b{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const n=Object(s.c)(i,new s.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var o=i("PqYM");function l(t,e=n.a){return i=()=>Object(o.a)(t,e),function(t){return t.lift(new r(i))};var i}},"4I5i":function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>{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,i){"use strict";i.d(e,"a",function(){return a});var n=i("lJxs"),s=i("Cfvw"),r=i("zx2A");function a(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(a((i,r)=>Object(s.a)(t(i,r)).pipe(Object(n.a)((t,n)=>e(i,t,r,n))),i)):("number"==typeof e&&(i=e),e=>e.lift(new o(t,i)))}class o{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new l(t,this.project,this.concurrent))}}class l extends r.b{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"7+OI":function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("HDdC");function s(t){return!!t&&(t instanceof n.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}},"7EHt":function(t,e,i){"use strict";i.d(e,"a",function(){return B}),i.d(e,"b",function(){return M}),i.d(e,"c",function(){return V}),i.d(e,"d",function(){return z});var n=i("fXoL"),s=i("8LU1"),r=i("XNiG"),a=i("quSY"),o=i("0EQZ");const l=new n.s("CdkAccordion");let c=0,h=(()=>{class t{constructor(t,e,i){this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=i,this._openCloseAllSubscription=a.a.EMPTY,this.closed=new n.o,this.opened=new n.o,this.destroyed=new n.o,this.expandedChange=new n.o,this.id="cdk-accordion-child-"+c++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=i.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)(n.Nb(l,12),n.Nb(n.h),n.Nb(o.d))},t.\u0275dir=n.Ib({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[n.Bb([{provide:l,useValue:void 0}])]}),t})(),u=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})();var d=i("+rOU"),p=i("ofXK"),m=i("FKr1"),f=i("u47x"),g=i("/uUt"),b=i("JX91"),_=i("pLZG"),y=i("IzEk"),v=i("FtGj"),w=i("R1ws"),x=i("EY2u"),C=i("VRyK"),k=i("R0Ic");const S=["body"];function O(t,e){}const E=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],A=["mat-expansion-panel-header","*","mat-action-row"];function D(t,e){if(1&t&&n.Ob(0,"span",2),2&t){const t=n.fc();n.lc("@indicatorRotate",t._getExpandedState())}}const I=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],T=["mat-panel-title","mat-panel-description","*"],R=new n.s("MAT_ACCORDION"),j="225ms cubic-bezier(0.4,0.0,0.2,1)",L={indicatorRotate:Object(k.m)("indicatorRotate",[Object(k.j)("collapsed, void",Object(k.k)({transform:"rotate(0deg)"})),Object(k.j)("expanded",Object(k.k)({transform:"rotate(180deg)"})),Object(k.l)("expanded <=> collapsed, void => collapsed",Object(k.e)(j))]),bodyExpansion:Object(k.m)("bodyExpansion",[Object(k.j)("collapsed, void",Object(k.k)({height:"0px",visibility:"hidden"})),Object(k.j)("expanded",Object(k.k)({height:"*",visibility:"visible"})),Object(k.l)("expanded <=> collapsed, void => collapsed",Object(k.e)(j))])};let N=(()=>{class t{constructor(t){this._template=t}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.N))},t.\u0275dir=n.Ib({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t})(),P=0;const F=new n.s("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let M=(()=>{class t extends h{constructor(t,e,i,s,a,o,l){super(t,e,i),this._viewContainerRef=s,this._animationMode=o,this._hideToggle=!1,this.afterExpand=new n.o,this.afterCollapse=new n.o,this._inputChanges=new r.a,this._headerId="mat-expansion-panel-header-"+P++,this._bodyAnimationDone=new r.a,this.accordion=t,this._document=a,this._bodyAnimationDone.pipe(Object(g.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())}),l&&(this.hideToggle=l.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(b.a)(null),Object(_.a)(()=>this.expanded&&!this._portal),Object(y.a)(1)).subscribe(()=>{this._portal=new d.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)(n.Nb(R,12),n.Nb(n.h),n.Nb(o.d),n.Nb(n.R),n.Nb(p.d),n.Nb(w.a,8),n.Nb(F,8))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,i){if(1&t&&n.Gb(i,N,!0),2&t){let t;n.rc(t=n.cc())&&(e._lazyContent=t.first)}},viewQuery:function(t,e){if(1&t&&n.Ic(S,!0),2&t){let t;n.rc(t=n.cc())&&(e._body=t.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&n.Fb("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:[n.Bb([{provide:R,useValue:void 0}]),n.zb,n.Ab],ngContentSelectors:A,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&&(n.kc(E),n.jc(0),n.Tb(1,"div",0,1),n.bc("@bodyExpansion.done",function(t){return e._bodyAnimationDone.next(t)}),n.Tb(3,"div",2),n.jc(4,1),n.Dc(5,O,0,0,"ng-template",3),n.Sb(),n.jc(6,2),n.Sb()),2&t&&(n.Cb(1),n.lc("@bodyExpansion",e._getExpandedState())("id",e.id),n.Db("aria-labelledby",e._headerId),n.Cb(4),n.lc("cdkPortalOutlet",e._portal))},directives:[d.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:[L.bodyExpansion]},changeDetection:0}),t})(),V=(()=>{class t{constructor(t,e,i,n,s,r){this.panel=t,this._element=e,this._focusMonitor=i,this._changeDetectorRef=n,this._animationMode=r,this._parentChangeSubscription=a.a.EMPTY;const o=t.accordion?t.accordion._stateChanges.pipe(Object(_.a)(t=>!(!t.hideToggle&&!t.togglePosition))):x.a;this._parentChangeSubscription=Object(C.a)(t.opened,t.closed,o,t._inputChanges.pipe(Object(_.a)(t=>!!(t.hideToggle||t.disabled||t.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),t.closed.pipe(Object(_.a)(()=>t._containsFocus())).subscribe(()=>i.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 v.o:case v.g:Object(v.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)(n.Nb(M,1),n.Nb(n.l),n.Nb(f.h),n.Nb(n.h),n.Nb(F,8),n.Nb(w.a,8))},t.\u0275cmp=n.Hb({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&&n.bc("click",function(){return e._toggle()})("keydown",function(t){return e._keydown(t)}),2&t&&(n.Db("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),n.Ac("height",e._getHeaderHeight()),n.Fb("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&&(n.kc(I),n.Tb(0,"span",0),n.jc(1),n.jc(2,1),n.jc(3,2),n.Sb(),n.Dc(4,D,1,1,"span",1)),2&t&&(n.Cb(4),n.lc("ngIf",e._showToggle()))},directives:[p.m],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:[L.indicatorRotate]},changeDetection:0}),t})(),z=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t})(),B=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[p.c,m.i,u,d.g]]}),t})()},"7Hc7":function(t,e,i){"use strict";i.d(e,"a",function(){return d});let n=1;const s=(()=>Promise.resolve())(),r={};function a(t){return t in r&&(delete r[t],!0)}const o={setImmediate(t){const e=n++;return r[e]=!0,s.then(()=>a(e)&&t()),e},clearImmediate(t){a(t)}};var l=i("3N8a");class c extends l.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=o.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(o.clearImmediate(e),t.scheduled=void 0)}}var h=i("IjjT");class u extends h.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++nthis._complete.call(this._context);o.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(i){if(this.unsubscribe(),o.a.useDeprecatedSynchronousErrorHandling)throw i;Object(l.a)(i)}}__tryOrSetError(t,e,i){if(!o.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(n){return o.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=n,t.syncErrorThrown=!0,!0):(Object(l.a)(n),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"8LU1":function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return c}),i.d(e,"f",function(){return r}),i.d(e,"g",function(){return h});var n=i("fXoL");function s(t){return null!=t&&""+t!="false"}function r(t,e=0){return a(t)?Number(t):e}function a(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function o(t){return Array.isArray(t)?t:[t]}function l(t){return null==t?"":"string"==typeof t?t:t+"px"}function c(t){return t instanceof n.l?t.nativeElement:t}function h(t,e=/\s+/){const i=[];if(null!=t){const n=Array.isArray(t)?t:(""+t).split(e);for(const t of n){const e=(""+t).trim();e&&i.push(e)}}return i}},"9ppp":function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},A5z7:function(t,e,i){"use strict";i.d(e,"a",function(){return O}),i.d(e,"b",function(){return N}),i.d(e,"c",function(){return j}),i.d(e,"d",function(){return E}),i.d(e,"e",function(){return F});var n=i("FtGj"),s=i("fXoL"),r=i("FKr1"),a=i("8LU1"),o=i("ofXK"),l=i("R1ws"),c=i("XNiG"),h=i("VRyK"),u=i("IzEk"),d=i("1G5W"),p=i("JX91"),m=i("u47x"),f=i("0EQZ"),g=i("kmnG"),b=i("nLfN"),_=i("cH1L"),y=i("3Pt+");const v=["*"],w=new s.s("MatChipRemove"),x=new s.s("MatChipAvatar"),C=new s.s("MatChipTrailingIcon");class k{constructor(t){this._elementRef=t}}const S=Object(r.B)(Object(r.w)(Object(r.x)(k),"primary"),-1);let O=(()=>{class t extends S{constructor(t,e,i,n,a,o,l,h){super(t),this._elementRef=t,this._ngZone=e,this._changeDetectorRef=a,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new c.a,this._onBlur=new c.a,this.selectionChange=new s.o,this.destroyed=new s.o,this.removed=new s.o,this._addHostClassName(),this._chipRippleTarget=o.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new r.t(this,e,this._chipRippleTarget,i),this._chipRipple.setupTriggerEvents(t),this.rippleConfig=n||{},this._animationsDisabled="NoopAnimations"===l,this.tabIndex=null!=h&&parseInt(h)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(t){const e=Object(a.c)(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(t){this._value=t}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(t){this._selectable=Object(a.c)(t)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(t){this._disabled=Object(a.c)(t)}get removable(){return this._removable}set removable(t){this._removable=Object(a.c)(t)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const t="mat-basic-chip",e=this._elementRef.nativeElement;e.hasAttribute(t)||e.tagName.toLowerCase()===t?e.classList.add(t):e.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(t=!1){return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(t){this.disabled?t.preventDefault():t.stopPropagation()}_handleKeydown(t){if(!this.disabled)switch(t.keyCode){case n.d:case n.b:this.remove(),t.preventDefault();break;case n.o:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}_blur(){this._ngZone.onStable.pipe(Object(u.a)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(t=!1){this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.B),s.Nb(b.a),s.Nb(r.h,8),s.Nb(s.h),s.Nb(o.d),s.Nb(l.a,8),s.Yb("tabindex"))},t.\u0275dir=s.Ib({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,i){if(1&t&&(s.Gb(i,x,!0),s.Gb(i,C,!0),s.Gb(i,w,!0)),2&t){let t;s.rc(t=s.cc())&&(e.avatar=t.first),s.rc(t=s.cc())&&(e.trailingIcon=t.first),s.rc(t=s.cc())&&(e.removeIcon=t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&s.bc("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(s.Db("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),s.Fb("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[s.zb]}),t})(),E=(()=>{class t{constructor(t,e){this._parentChip=t,"BUTTON"===e.nativeElement.nodeName&&e.nativeElement.setAttribute("type","button")}_handleClick(t){const e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(O),s.Nb(s.l))},t.\u0275dir=s.Ib({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&s.bc("click",function(t){return e._handleClick(t)})},features:[s.Bb([{provide:w,useExisting:t}])]}),t})();const A=new s.s("mat-chips-default-options");class D{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const I=Object(r.z)(D);let T=0;class R{constructor(t,e){this.source=t,this.value=e}}let j=(()=>{class t extends I{constructor(t,e,i,n,r,a,o){super(a,n,r,o),this._elementRef=t,this._changeDetectorRef=e,this._dir=i,this.ngControl=o,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new c.a,this._uid="mat-chip-list-"+T++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(t,e)=>t===e,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new s.o,this.valueChange=new s.o,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(t){this._multiple=Object(a.c)(t),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(t){this.writeValue(t),this._value=t}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(t){this._required=Object(a.c)(t),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(t){this._placeholder=t,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Object(a.c)(t),this._syncChipsState()}get selectable(){return this._selectable}set selectable(t){this._selectable=Object(a.c)(t),this.chips&&this.chips.forEach(t=>t.chipListSelectable=this._selectable)}set tabIndex(t){this._userTabIndex=t,this._tabIndex=t}get chipSelectionChanges(){return Object(h.a)(...this.chips.map(t=>t.selectionChange))}get chipFocusChanges(){return Object(h.a)(...this.chips.map(t=>t._onFocus))}get chipBlurChanges(){return Object(h.a)(...this.chips.map(t=>t._onBlur))}get chipRemoveChanges(){return Object(h.a)(...this.chips.map(t=>t.destroyed))}ngAfterContentInit(){this._keyManager=new m.g(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Object(d.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.tabOut.pipe(Object(d.a)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe(Object(p.a)(null),Object(d.a)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new f.c(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}setDescribedByIds(t){this._ariaDescribedby=t.join(" ")}writeValue(t){this.chips&&this._setSelectionByValue(t,!1)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t,this.stateChanges.next()}onContainerClick(t){this._originatesFromChip(t)||this.focus()}focus(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}_focusInput(t){this._chipInput&&this._chipInput.focus(t)}_keydown(t){const e=t.target;t.keyCode===n.b&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(t){return t>=0&&tt.deselect()),Array.isArray(t))t.forEach(t=>this._selectValue(t,e)),this._sortValues();else{const i=this._selectValue(t,e);i&&e&&this._keyManager.setActiveItem(i)}}_selectValue(t,e=!0){const i=this.chips.find(e=>null!=e.value&&this._compareWith(e.value,t));return i&&(e?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(t){this._selectionModel.clear(),this.chips.forEach(e=>{e!==t&&e.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(t=>{t.selected&&this._selectionModel.select(t)}),this.stateChanges.next())}_propagateChanges(t){let e=null;e=Array.isArray(this.selected)?this.selected.map(t=>t.value):this.selected?this.selected.value:t,this._value=e,this.change.emit(new R(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(t=>{t.source.selected?this._selectionModel.select(t.source):this._selectionModel.deselect(t.source),this.multiple||this.chips.forEach(t=>{!this._selectionModel.isSelected(t)&&t.selected&&t.deselect()}),t.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(t=>{let e=this.chips.toArray().indexOf(t.chip);this._isValidIndex(e)&&this._keyManager.updateActiveItem(e),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(t=>{const e=t.chip,i=this.chips.toArray().indexOf(t.chip);this._isValidIndex(i)&&e._hasFocus&&(this._lastDestroyedChipIndex=i)})}_originatesFromChip(t){let e=t.target;for(;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(t=>t._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(t=>{t._chipListDisabled=this._disabled,t._chipListMultiple=this.multiple})}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.h),s.Nb(_.b,8),s.Nb(y.o,8),s.Nb(y.g,8),s.Nb(r.d),s.Nb(y.l,10))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,i){if(1&t&&s.Gb(i,O,!0),2&t){let t;s.rc(t=s.cc())&&(e.chips=t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&s.bc("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(s.Wb("id",e._uid),s.Db("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),s.Fb("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[s.Bb([{provide:g.d,useExisting:t}]),s.zb],ngContentSelectors:v,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(s.kc(),s.Tb(0,"div",0),s.jc(1),s.Sb())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t})(),L=0,N=(()=>{class t{constructor(t,e){this._elementRef=t,this._defaultOptions=e,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new s.o,this.placeholder="",this.id="mat-chip-list-input-"+L++,this._disabled=!1,this._inputElement=this._elementRef.nativeElement}set chipList(t){t&&(this._chipList=t,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(t){this._addOnBlur=Object(a.c)(t)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(t){this._disabled=Object(a.c)(t)}get empty(){return!this._inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}_keydown(t){t&&t.keyCode===n.p&&!Object(n.t)(t,"shiftKey")&&this._chipList._allowFocusEscape(),this._emitChipEnd(t)}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._chipList.stateChanges.next()}_emitChipEnd(t){!this._inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this._inputElement,value:this._inputElement.value}),t&&t.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(t){this._inputElement.focus(t)}_isSeparatorKey(t){return!Object(n.t)(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(A))},t.\u0275dir=s.Ib({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&s.bc("keydown",function(t){return e._keydown(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(s.Wb("id",e.id),s.Db("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[s.Ab]}),t})();const P={separatorKeyCodes:[n.g]};let F=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[r.d,{provide:A,useValue:P}],imports:[[r.i]]}),t})()},AytR:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n={production:!0,mockdata:!0,basehref:"/knowledgebuilder/",apiurl_root:""}},"B/XX":function(t,e,i){"use strict";i.d(e,"a",function(){return x}),i.d(e,"b",function(){return f}),i.d(e,"c",function(){return g}),i.d(e,"d",function(){return C}),i.d(e,"e",function(){return O}),i.d(e,"f",function(){return k}),i.d(e,"g",function(){return S}),i.d(e,"h",function(){return w});var n=i("u47x"),s=i("cH1L"),r=i("8LU1"),a=i("FtGj"),o=i("ofXK"),l=i("fXoL"),c=i("XNiG"),h=i("LRne"),u=i("JX91"),d=i("1G5W");function p(t,e){1&t&&l.jc(0)}const m=["*"];let f=(()=>{class t{constructor(t){this._elementRef=t}focus(){this._elementRef.nativeElement.focus()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(l.l))},t.\u0275dir=l.Ib({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),t})(),g=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(l.N))},t.\u0275dir=l.Ib({type:t,selectors:[["","cdkStepLabel",""]]}),t})(),b=0;const _="edit",y="done",v="error",w=new l.s("STEPPER_GLOBAL_OPTIONS");let x=(()=>{class t{constructor(t,e){this._stepper=t,this.interacted=!1,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=e||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType,this._showError=!!this._stepperOptions.showError}get editable(){return this._editable}set editable(t){this._editable=Object(r.c)(t)}get optional(){return this._optional}set optional(t){this._optional=Object(r.c)(t)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(t){this._completedOverride=Object(r.c)(t)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(t){this._customError=Object(r.c)(t)}_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}select(){this._stepper.selected=this}reset(){this.interacted=!1,null!=this._completedOverride&&(this._completedOverride=!1),null!=this._customError&&(this._customError=!1),this.stepControl&&this.stepControl.reset()}ngOnChanges(){this._stepper._stateChanged()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(Object(l.W)(()=>C)),l.Nb(w,8))},t.\u0275cmp=l.Hb({type:t,selectors:[["cdk-step"]],contentQueries:function(t,e,i){if(1&t&&l.Gb(i,g,!0),2&t){let t;l.rc(t=l.cc())&&(e.stepLabel=t.first)}},viewQuery:function(t,e){if(1&t&&l.zc(l.N,!0),2&t){let t;l.rc(t=l.cc())&&(e.content=t.first)}},inputs:{editable:"editable",optional:"optional",completed:"completed",hasError:"hasError",stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state"},exportAs:["cdkStep"],features:[l.Ab],ngContentSelectors:m,decls:1,vars:0,template:function(t,e){1&t&&(l.kc(),l.Dc(0,p,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),C=(()=>{class t{constructor(t,e,i,n){this._dir=t,this._changeDetectorRef=e,this._elementRef=i,this._destroyed=new c.a,this.steps=new l.F,this._linear=!1,this._selectedIndex=0,this.selectionChange=new l.o,this._orientation="horizontal",this._groupId=b++,this._document=n}get linear(){return this._linear}set linear(t){this._linear=Object(r.c)(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){const e=Object(r.f)(t);this.steps&&this._steps?(this._isValidIndex(t),this._selectedIndex!==e&&!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(t)):this._selectedIndex=e}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(t){this.selectedIndex=this.steps?this.steps.toArray().indexOf(t):-1}ngAfterContentInit(){this._steps.changes.pipe(Object(u.a)(this._steps),Object(d.a)(this._destroyed)).subscribe(t=>{this.steps.reset(t.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._keyManager=new n.g(this._stepHeader).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:Object(h.a)()).pipe(Object(u.a)(this._layoutDirection()),Object(d.a)(this._destroyed)).subscribe(t=>this._keyManager.withHorizontalOrientation(t)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0)}ngOnDestroy(){this.steps.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(t=>t.reset()),this._stateChanged()}_getStepLabelId(t){return`cdk-step-label-${this._groupId}-${t}`}_getStepContentId(t){return`cdk-step-content-${this._groupId}-${t}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(t){const e=t-this._selectedIndex;return e<0?"rtl"===this._layoutDirection()?"next":"previous":e>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(t,e="number"){const i=this.steps.toArray()[t],n=this._isCurrentStep(t);return i._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(i,n):this._getGuidelineLogic(i,n,e)}_getDefaultIndicatorLogic(t,e){return t._showError&&t.hasError&&!e?v:!t.completed||e?"number":t.editable?_:y}_getGuidelineLogic(t,e,i="number"){return t._showError&&t.hasError&&!e?v:t.completed&&!e?y:t.completed&&e?i:t.editable&&e?_:i}_isCurrentStep(t){return this._selectedIndex===t}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(t){const e=this.steps.toArray();this.selectionChange.emit({selectedIndex:t,previouslySelectedIndex:this._selectedIndex,selectedStep:e[t],previouslySelectedStep:e[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(t):this._keyManager.updateActiveItem(t),this._selectedIndex=t,this._stateChanged()}_onKeydown(t){const e=Object(a.t)(t),i=t.keyCode,n=this._keyManager;null==n.activeItemIndex||e||i!==a.o&&i!==a.g?n.onKeydown(t):(this.selectedIndex=n.activeItemIndex,t.preventDefault())}_anyControlsInvalidOrPending(t){const e=this.steps.toArray();return e[this._selectedIndex].interacted=!0,!!(this._linear&&t>=0)&&e.slice(0,t).some(t=>{const e=t.stepControl;return(e?e.invalid||e.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){if(!this._document||!this._elementRef)return!1;const t=this._elementRef.nativeElement,e=this._document.activeElement;return t===e||t.contains(e)}_isValidIndex(t){return t>-1&&(!this.steps||t{class t{constructor(t){this._stepper=t,this.type="submit"}_handleClick(){this._stepper.next()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(C))},t.\u0275dir=l.Ib({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.bc("click",function(){return e._handleClick()}),2&t&&l.Wb("type",e.type)},inputs:{type:"type"}}),t})(),S=(()=>{class t{constructor(t){this._stepper=t,this.type="button"}_handleClick(){this._stepper.previous()}}return t.\u0275fac=function(e){return new(e||t)(l.Nb(C))},t.\u0275dir=l.Ib({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(t,e){1&t&&l.bc("click",function(){return e._handleClick()}),2&t&&l.Wb("type",e.type)},inputs:{type:"type"}}),t})(),O=(()=>{class t{}return t.\u0275mod=l.Lb({type:t}),t.\u0275inj=l.Kb({factory:function(e){return new(e||t)},imports:[[s.a]]}),t})()},BETK:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"f",function(){return QuizSection}),__webpack_require__.d(__webpack_exports__,"e",function(){return Quiz}),__webpack_require__.d(__webpack_exports__,"a",function(){return AdditionQuizItem}),__webpack_require__.d(__webpack_exports__,"g",function(){return SubtractionQuizItem}),__webpack_require__.d(__webpack_exports__,"d",function(){return MultiplicationQuizItem}),__webpack_require__.d(__webpack_exports__,"b",function(){return DivisionQuizItem}),__webpack_require__.d(__webpack_exports__,"c",function(){return MixedOperationQuizItem});class StorableObject{storeToString(){const t=this.storeToJsonObject();return JSON&&JSON.stringify(t)}restoreFromString(t){const e=JSON.parse(t);this.restoreFromJsonObject(e),this.canCalcResult()&&this.calcResult()}storeToJsonObject(){return{}}restoreFromJsonObject(t){}canCalcResult(){return!0}calcResult(){}}class QuizSection{constructor(t,e){this.itemCount=0,this.failedItemCount=0,this.timeSpent=0,this.isStarted=!1,this.sectionID=t,this.itemCount=e,this.isStarted=!1}get SectionID(){return this.sectionID}get ItemsCount(){return this.itemCount}get FailedItemsCount(){return this.failedItemCount}get IsStarted(){return this.isStarted}get TimeSpent(){return this.timeSpent}set TimeSpent(t){this.timeSpent=t}Start(){this.timeStarted=new Date}Complete(t){this.timeSpent=((new Date).getTime()-this.timeStarted.getTime())/1e3,this.isStarted=!1,this.failedItemCount=t||0}}class Quiz{constructor(t){this.elderSections=[],this.curSectionID=0,this.quizID=t,this.curSection=null}get QuizID(){return this.quizID}get ElderSections(){return this.elderSections}get ActiveSection(){return this.curSection}get NextSectionID(){return this.curSectionID+1}startNewSection(t){if(null!=this.curSection)throw"An active section not yet completed";if(t.SectionID<=this.curSectionID)throw"Invalid Section ID";this.curSectionID=t.SectionID,this.curSection=t,this.curSection.Start()}completeActionSection(t){if(!this.curSection)throw"Active section not available";this.curSection.Complete(t),this.elderSections.push(this.curSection),this.curSection=null}}class QuizItem extends StorableObject{constructor(){super(),this._index=0}get QuizIndex(){return this._index}set QuizIndex(t){this._index=t}IsCorrect(){return!!this.canCalcResult()}getQuizFormat(){return""}getCorrectFormula(){return""}getInputtedForumla(){return""}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}canCalcResult(){return!0}calcResult(){}}class PrimarySchoolMathQuizItem extends QuizItem{IsCorrect(){return!!super.IsCorrect()}getQuizFormat(){return super.getQuizFormat()}getCorrectFormula(){return super.getCorrectFormula()}getInputtedForumla(){return super.getInputtedForumla()}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}canCalcResult(){return!!super.canCalcResult()}calcResult(){}}class PrimarySchoolMathFAOQuizItem extends PrimarySchoolMathQuizItem{constructor(t,e,i){super(),this._leftNumber=0,this._rightNumber=0,this._decimalPlaces=i||0,t&&(this._leftNumber=this._decimalPlaces>0?parseFloat(t.toFixed(this._decimalPlaces)):Math.round(t)),e&&(this._rightNumber=this._decimalPlaces>0?parseFloat(e.toFixed(this._decimalPlaces)):Math.round(e)),this.canCalcResult()&&this.calcResult()}get LeftNumber(){return this._leftNumber}get RightNumber(){return this._rightNumber}get decimalPlaces(){return this._decimalPlaces}IsCorrect(){return!!super.IsCorrect()}getQuizFormat(){return super.getQuizFormat()}getCorrectFormula(){return super.getCorrectFormula()}getInputtedForumla(){return super.getInputtedForumla()}storeToJsonObject(){const t=super.storeToJsonObject();return t.leftNumber=this._leftNumber,t.rightNumber=this._rightNumber,t.decimalPlaces=this.decimalPlaces,t}restoreFromJsonObject(t){t&&t.leftNumber&&(this._leftNumber=+t.leftNumber),t&&t.rightNumber&&(this._rightNumber=+t.rightNumber),this._decimalPlaces=t&&t.decimalPlaces?+t.decimalPlaces:0}canCalcResult(){return!!super.canCalcResult()&&void 0!==this._leftNumber&&void 0!==this._rightNumber}calcResult(){super.calcResult()}}class PrimarySchoolMathQuizSection{constructor(t,e){this._itemCount=0,this._itemFailed=0,this._startPoint=0,this._timeSpent=0,this._sectionNumber=t,this.ItemsCount=e}get SectionNumber(){return this._sectionNumber}get ItemsCount(){return this._itemCount}set ItemsCount(t){this._itemCount=t}get ItemsFailed(){return this._itemFailed}set ItemsFailed(t){this._itemFailed=t}get TimeSpent(){return this._timeSpent}SectionStart(){this._startPoint=(new Date).getTime()}SectionComplete(){const t=(new Date).getTime();this._timeSpent=Math.round((t-this._startPoint)/1e3)}getSummaryInfo(){let t="BATCH#"+this.SectionNumber.toString()+";";return t=t+" total items: "+this.ItemsCount.toString()+"; "+(this.ItemsFailed>0?" Failed : "+this.ItemsFailed.toString():""),t=t+=" Time spent: "+this.TimeSpent.toString()+" s",t}}class AdditionQuizItem extends PrimarySchoolMathFAOQuizItem{constructor(t,e,i){super(t,e,i)}get Result(){return this._result}get InputtedResult(){return this._inputtedResult}set InputtedResult(t){this._inputtedResult=t}IsCorrect(){return!!super.IsCorrect()&&null!=this._inputtedResult&&this._inputtedResult===this._result}getCorrectFormula(){return this.LeftNumber.toString()+" + "+this.RightNumber.toString()+" = "+this.Result.toString()}getInputtedForumla(){return this.LeftNumber.toString()+" + "+this.RightNumber.toString()+" = "+(null!=this.InputtedResult?this.InputtedResult.toString():"")}getQuizFormat(){return super.getQuizFormat()+this.LeftNumber.toString()+" + "+this.RightNumber.toString()+" = "}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}calcResult(){super.calcResult(),this._result=this.LeftNumber+this.RightNumber,this._result=0===this._decimalPlaces?Math.round(this._result):parseFloat(this._result.toFixed(this._decimalPlaces))}}class SubtractionQuizItem extends PrimarySchoolMathFAOQuizItem{constructor(t,e,i){super(t,e,i)}get Result(){return this._result}get InputtedResult(){return this._inputtedResult}set InputtedResult(t){this._inputtedResult=t}IsCorrect(){return!!super.IsCorrect()&&null!=this._inputtedResult&&this._inputtedResult===this._result}getCorrectFormula(){return this.LeftNumber.toString()+" - "+this.RightNumber.toString()+" = "+this.Result.toString()}getInputtedForumla(){return this.LeftNumber.toString()+" - "+this.RightNumber.toString()+" = "+(null!=this.InputtedResult?this.InputtedResult.toString():"")}getQuizFormat(){return super.getQuizFormat()+this.LeftNumber.toString()+" - "+this.RightNumber.toString()+" = "}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}calcResult(){super.calcResult(),this._result=this.LeftNumber-this.RightNumber,this._result=0===this._decimalPlaces?Math.round(this._result):parseFloat(this._result.toFixed(this._decimalPlaces))}}class MultiplicationQuizItem extends PrimarySchoolMathFAOQuizItem{constructor(t,e,i){super(t,e,i)}get Result(){return this._result}get InputtedResult(){return this._inputtedResult}set InputtedResult(t){this._inputtedResult=t}IsCorrect(){return!!super.IsCorrect()&&null!=this._inputtedResult&&this._inputtedResult===this._result}getCorrectFormula(){return this.LeftNumber.toString()+" \xd7 "+this.RightNumber.toString()+" = "+this.Result.toString()}getInputtedForumla(){return this.LeftNumber.toString()+" \xd7 "+this.RightNumber.toString()+" = "+(null!=this.InputtedResult?this.InputtedResult.toString():"")}getQuizFormat(){return super.getQuizFormat()+this.LeftNumber.toString()+" \xd7 "+this.RightNumber.toString()+" = "}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}calcResult(){super.calcResult(),this._result=this.LeftNumber*this.RightNumber,this._result=0===this._decimalPlaces?Math.round(this._result):parseFloat(this._result.toFixed(this._decimalPlaces))}}class DivisionQuizItem extends PrimarySchoolMathFAOQuizItem{constructor(t,e,i){super(t,e,i)}get Dividend(){return this.LeftNumber}get Divisor(){return this.RightNumber}get Quotient(){return this._quotient}get Remainder(){return this._remainder}get InputtedQuotient(){return this._inputtedQuotient}set InputtedQuotient(t){this._inputtedQuotient=t}get InputtedRemainder(){return this._inputtedRemainder}set InputtedRemainder(t){this._inputtedRemainder=t}IsCorrect(){const t=super.IsCorrect();return t?null!=this._inputtedQuotient&&null!==this._inputtedRemainder&&null!==this._inputtedRemainder&&this._inputtedQuotient===this._quotient&&this._inputtedRemainder===this._remainder:t}getCorrectFormula(){return this.LeftNumber.toString()+" \xf7 "+this.RightNumber.toString()+" = "+this.Quotient.toString()+(0===this.Remainder?"":"... "+this.Remainder.toString())}getInputtedForumla(){return this.LeftNumber.toString()+" \xf7 "+this.RightNumber.toString()+" = "+(null!=this.InputtedQuotient?this.InputtedQuotient.toString():"")+(null!=this.InputtedRemainder?" ... "+this.InputtedRemainder.toString():"")}getQuizFormat(){return super.getQuizFormat()+this.LeftNumber.toString()+" \xf7 "+this.RightNumber.toString()+" = "}storeToJsonObject(){return super.storeToJsonObject()}restoreFromJsonObject(t){super.restoreFromJsonObject(t)}canCalcResult(){return!!super.canCalcResult()&&0!==this._rightNumber}calcResult(){super.calcResult(),this._quotient=this.LeftNumber/this.RightNumber,this._remainder=this.LeftNumber%this.RightNumber,this._quotient=this._decimalPlaces>0?parseFloat(this._quotient.toFixed(this._decimalPlaces)):Math.floor(this._quotient)}}class MixedOperationQuizItem extends PrimarySchoolMathQuizItem{constructor(t){super(),t&&(this._formula=t),this.canCalcResult()&&this.calcResult()}get Formula(){return this._formula}get Result(){return this._result}get decimalPlace(){return this._decimalPlace}get InputtedResult(){return this._inputtedResult}set InputtedResult(t){this._inputtedResult=t}set decimalPlace(t){this._decimalPlace=t}IsCorrect(){return!!super.IsCorrect()&&this._result===this._inputtedResult}getCorrectFormula(){return this.getQuizFormat()+this.Result.toString()}getInputtedForumla(){return this.getQuizFormat()+this.InputtedResult.toString()}getQuizFormat(){return super.getQuizFormat()+this._formula.replace("*","\xd7").replace("/","\xf7")+" = "}storeToJsonObject(){const t=super.storeToJsonObject();return t.forumla=this._formula,t}restoreFromJsonObject(t){super.restoreFromJsonObject(t),t&&t.forumla&&(this._formula=t.formula)}canCalcResult(){return!!super.canCalcResult()&&!(void 0===this._formula||this._formula.length<=0)}calcResult(){super.calcResult(),this._result=eval(this._formula),this._result=this._decimalPlace>0?parseFloat(this._result.toFixed(this._decimalPlace)):Math.floor(this._result)}}},Cfvw:function(t,e,i){"use strict";i.d(e,"a",function(){return u});var n=i("HDdC"),s=i("SeVD"),r=i("quSY"),a=i("kJWO"),o=i("jZKg"),l=i("Lhse"),c=i("c2HN"),h=i("I55L");function u(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[a.a]}(t))return function(t,e){return new n.a(i=>{const n=new r.a;return n.add(e.schedule(()=>{const s=t[a.a]();n.add(s.subscribe({next(t){n.add(e.schedule(()=>i.next(t)))},error(t){n.add(e.schedule(()=>i.error(t)))},complete(){n.add(e.schedule(()=>i.complete()))}}))})),n})}(t,e);if(Object(c.a)(t))return function(t,e){return new n.a(i=>{const n=new r.a;return n.add(e.schedule(()=>t.then(t=>{n.add(e.schedule(()=>{i.next(t),n.add(e.schedule(()=>i.complete()))}))},t=>{n.add(e.schedule(()=>i.error(t)))}))),n})}(t,e);if(Object(h.a)(t))return Object(o.a)(t,e);if(function(t){return t&&"function"==typeof t[l.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new n.a(i=>{const n=new r.a;let s;return n.add(()=>{s&&"function"==typeof s.return&&s.return()}),n.add(e.schedule(()=>{s=t[l.a](),n.add(e.schedule(function(){if(i.closed)return;let t,e;try{const i=s.next();t=i.value,e=i.done}catch(n){return void i.error(n)}e?i.complete():(i.next(t),this.schedule())}))})),n})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof n.a?t:new n.a(Object(s.a)(t))}},D0XW:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("3N8a");const s=new(i("IjjT").a)(n.a)},DH7j:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},Dh3D:function(t,e,i){"use strict";i.d(e,"a",function(){return h}),i.d(e,"b",function(){return m});var n=i("fXoL"),s=i("8LU1"),r=i("FKr1"),a=(i("FtGj"),i("XNiG")),o=(i("VRyK"),i("R0Ic"),i("ofXK"));i("u47x");class l{}const c=Object(r.A)(Object(r.y)(l));let h=(()=>{class t extends c{constructor(){super(...arguments),this.sortables=new Map,this._stateChanges=new a.a,this.start="asc",this._direction="",this.sortChange=new n.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 i=["asc","desc"];return"desc"==t&&i.reverse(),e||i.push(""),i}(t.start||this.start,null!=t.disableClear?t.disableClear:this.disableClear),i=e.indexOf(this.direction)+1;return i>=e.length&&(i=0),e[i]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return u(e||t)},t.\u0275dir=n.Ib({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:[n.zb,n.Ab]}),t})();const u=n.Vb(h);let d=(()=>{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(n.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const p={provide:d,deps:[[new n.C,new n.L,d]],useFactory:function(t){return t||new d}};let m=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[p],imports:[[o.c,r.i]]}),t})()},EUkQ:function(t,e){function i(t){return t&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function n(t){return t}function s(t,e){const s=(e=e||{}).delimiter||".",r=e.maxDepth,a=e.transformKey||n,o={};return function t(n,l,c){c=c||1,Object.keys(n).forEach(function(h){const u=n[h],d=e.safe&&Array.isArray(u),p=Object.prototype.toString.call(u),m=i(u),f="[object Object]"===p||"[object Array]"===p,g=l?l+s+a(h):a(h);if(!d&&!m&&f&&Object.keys(u).length&&(!e.maxDepth||c0&&(s=h(n.shift()),u=h(n[0]))}d[s]=t(e[i],r)}),c}},EY2u:function(t,e,i){"use strict";i.d(e,"a",function(){return s}),i.d(e,"b",function(){return r});var n=i("HDdC");const s=new n.a(t=>t.complete());function r(t){return t?function(t){return new n.a(e=>t.schedule(()=>e.complete()))}(t):s}},FKr1:function(t,e,i){"use strict";i.d(e,"a",function(){return b}),i.d(e,"b",function(){return _}),i.d(e,"c",function(){return D}),i.d(e,"d",function(){return B}),i.d(e,"e",function(){return I}),i.d(e,"f",function(){return lt}),i.d(e,"g",function(){return ut}),i.d(e,"h",function(){return Z}),i.d(e,"i",function(){return w}),i.d(e,"j",function(){return H}),i.d(e,"k",function(){return q}),i.d(e,"l",function(){return z}),i.d(e,"m",function(){return pt}),i.d(e,"n",function(){return gt}),i.d(e,"o",function(){return ht}),i.d(e,"p",function(){return et}),i.d(e,"q",function(){return it}),i.d(e,"r",function(){return J}),i.d(e,"s",function(){return tt}),i.d(e,"t",function(){return Q}),i.d(e,"u",function(){return mt}),i.d(e,"v",function(){return ft}),i.d(e,"w",function(){return C}),i.d(e,"x",function(){return k}),i.d(e,"y",function(){return x}),i.d(e,"z",function(){return O}),i.d(e,"A",function(){return E}),i.d(e,"B",function(){return S}),i.d(e,"C",function(){return U});var n=i("fXoL"),s=i("u47x"),r=i("cH1L");const a=new n.Q("11.0.3");var o=i("ofXK"),l=i("8LU1"),c=i("XNiG"),h=i("HDdC"),u=i("nLfN"),d=i("JX91"),p=i("R1ws"),m=i("FtGj");function f(t,e){if(1&t&&n.Ob(0,"mat-pseudo-checkbox",3),2&t){const t=n.fc();n.lc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const g=["*"];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 n.Q("11.0.3"),v=new n.s("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let w=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return Object(n.Y)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);const e=getComputedStyle(t);e&&"none"!==e.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&y.full!==a.full&&console.warn("The Angular Material version ("+y.full+") does not match the Angular CDK version ("+a.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)(n.Xb(s.j),n.Xb(v,8),n.Xb(o.d))},imports:[[r.a],r.a]}),t})();function x(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(l.c)(t)}}}function C(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 k(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Object(l.c)(t)}}}function S(t,e=0){return class extends t{constructor(...t){super(...t),this._tabIndex=e,this.defaultTabIndex=e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(t){this._tabIndex=null!=t?Object(l.f)(t):this.defaultTabIndex}}}function O(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new c.a}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}function E(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 A=new n.s("MAT_DATE_LOCALE",{providedIn:"root",factory:function(){return Object(n.X)(n.w)}});class D{constructor(){this._localeChanges=new c.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 i=this.isValid(t),n=this.isValid(e);return i&&n?!this.compareDate(t,e):i==n}return t==e}clampDate(t,e,i){return e&&this.compareDate(t,e)<0?e:i&&this.compareDate(t,i)>0?i:t}}const I=new n.s("mat-date-formats");let T;try{T="undefined"!=typeof Intl}catch(bt){T=!1}const R={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"]},j=P(31,t=>String(t+1)),L={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},N=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function P(t,e){const i=Array(t);for(let n=0;n{class t extends D{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(T){const e=new Intl.DateTimeFormat(this.locale,{month:t,timeZone:"utc"});return P(12,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,t,1))))}return R[t]}getDateNames(){if(T){const t=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return P(31,e=>this._stripDirectionalityCharacters(this._format(t,new Date(2017,0,e+1))))}return j}getDayOfWeekNames(t){if(T){const e=new Intl.DateTimeFormat(this.locale,{weekday:t,timeZone:"utc"});return P(7,t=>this._stripDirectionalityCharacters(this._format(e,new Date(2017,0,t+1))))}return L[t]}getYearName(t){if(T){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,i){let n=this._createDateWithOverflow(t,e,i);return n.getMonth(),n}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(T){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 i=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(i,t))}return this._stripDirectionalityCharacters(t.toDateString())}addCalendarYears(t,e){return this.addCalendarMonths(t,12*e)}addCalendarMonths(t,e){let i=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(i)!=((this.getMonth(t)+e)%12+12)%12&&(i=this._createDateWithOverflow(this.getYear(i),this.getMonth(i),0)),i}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(N.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,i){const n=new Date;return n.setFullYear(t,e,i),n.setHours(0,0,0,0),n}_2digit(t){return("00"+t).slice(-2)}_stripDirectionalityCharacters(t){return t.replace(/[\u200e\u200f]/g,"")}_format(t,e){const i=new Date;return i.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),i.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(i)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(A,8),n.Xb(u.a))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[{provide:D,useClass:F}],imports:[[u.b]]}),t})();const V={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 z=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[{provide:I,useValue:V}],imports:[[M]]}),t})(),B=(()=>{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(n.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),H=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),t})();function U(t,e,i="mat"){t.changes.pipe(Object(d.a)(t)).subscribe(({length:t})=>{X(e,i+"-2-line",!1),X(e,i+"-3-line",!1),X(e,i+"-multi-line",!1),2===t||3===t?X(e,`${i}-${t}-line`,!0):t>3&&X(e,i+"-multi-line",!0)})}function X(t,e,i){const n=t.nativeElement.classList;i?n.add(e):n.remove(e)}let q=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[w],w]}),t})();class ${constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const W={enterDuration:450,exitDuration:400},K=Object(u.f)({passive:!0}),G=["mousedown","touchstart"],Y=["mouseup","mouseleave","touchend","touchcancel"];class Q{constructor(t,e,i,n){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,n.isBrowser&&(this._containerElement=Object(l.e)(i))}fadeInRipple(t,e,i={}){const n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},W),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);const r=i.radius||function(t,e,i){const n=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),s=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(n*n+s*s)}(t,e,n),a=t-n.left,o=e-n.top,l=s.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=a-r+"px",c.style.top=o-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new $(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,i.persistent||t&&this._isPointerDown||h.fadeOut()},l),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 i=t.element,n=Object.assign(Object.assign({},W),t.config.animation);i.style.transitionDuration=n.exitDuration+"ms",i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},n.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Object(l.e)(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(G))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Y),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Object(s.l)(t),i=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,K)})})}_removeTriggerEvents(){this._triggerElement&&(G.forEach(t=>{this._triggerElement.removeEventListener(t,this,K)}),this._pointerUpEventsRegistered&&Y.forEach(t=>{this._triggerElement.removeEventListener(t,this,K)}))}}const Z=new n.s("mat-ripple-global-options");let J=(()=>{class t{constructor(t,e,i,n,s){this._elementRef=t,this._animationMode=s,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=n||{},this._rippleRenderer=new Q(this,e,t,i)}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,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(n.B),n.Nb(u.a),n.Nb(Z,8),n.Nb(p.a,8))},t.\u0275dir=n.Ib({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&n.Fb("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=n.Lb({type:t}),t.\u0275inj=n.Kb({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)(n.Nb(p.a,8))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&n.Fb("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})(),it=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[w]]}),t})();class nt{}const st=x(nt);let rt=0,at=(()=>{class t extends st{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+rt++}}return t.\u0275fac=function(e){return ot(e||t)},t.\u0275dir=n.Ib({type:t,inputs:{label:"label"},features:[n.zb]}),t})();const ot=n.Vb(at),lt=new n.s("MatOptgroup");let ct=0;class ht{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const ut=new n.s("MAT_OPTION_PARENT_COMPONENT");let dt=(()=>{class t{constructor(t,e,i,s){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+ct++,this.onSelectionChange=new n.o,this._stateChanges=new c.a}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Object(l.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 i=this._getHostElement();"function"==typeof i.focus&&i.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!==m.g&&t.keyCode!==m.o||Object(m.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)(n.Nb(n.l),n.Nb(n.h),n.Nb(void 0),n.Nb(at))},t.\u0275dir=n.Ib({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),pt=(()=>{class t extends dt{constructor(t,e,i,n){super(t,e,i,n)}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(n.h),n.Nb(ut,8),n.Nb(lt,8))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&n.bc("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(n.Wb("id",e.id),n.Db("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),n.Fb("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[n.zb],ngContentSelectors:g,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&&(n.kc(),n.Dc(0,f,1,2,"mat-pseudo-checkbox",0),n.Tb(1,"span",1),n.jc(2),n.Sb(),n.Ob(3,"div",2)),2&t&&(n.lc("ngIf",e.multiple),n.Cb(3),n.lc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[o.m,J,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 mt(t,e,i){if(i.length){let n=e.toArray(),s=i.toArray(),r=0;for(let e=0;ei+n?Math.max(0,t-n+e):i}let gt=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[tt,o.c,w,it]]}),t})()},FtGj:function(t,e,i){"use strict";i.d(e,"a",function(){return y}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return w}),i.d(e,"d",function(){return g}),i.d(e,"e",function(){return f}),i.d(e,"f",function(){return h}),i.d(e,"g",function(){return r}),i.d(e,"h",function(){return a}),i.d(e,"i",function(){return u}),i.d(e,"j",function(){return d}),i.d(e,"k",function(){return _}),i.d(e,"l",function(){return c}),i.d(e,"m",function(){return l}),i.d(e,"n",function(){return m}),i.d(e,"o",function(){return o}),i.d(e,"p",function(){return s}),i.d(e,"q",function(){return p}),i.d(e,"r",function(){return v}),i.d(e,"s",function(){return b}),i.d(e,"t",function(){return x});const n=8,s=9,r=13,a=27,o=32,l=33,c=34,h=35,u=36,d=37,p=38,m=39,f=40,g=46,b=48,_=57,y=65,v=90,w=188;function x(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}},GU7r:function(t,e,i){"use strict";i.d(e,"a",function(){return h}),i.d(e,"b",function(){return c}),i.d(e,"c",function(){return u});var n=i("8LU1"),s=i("fXoL"),r=i("HDdC"),a=i("XNiG"),o=i("Kj3r");let l=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Object(n.e)(t);return new r.a(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new a.a,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,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:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(l))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(l))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new s.o,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(n.c)(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Object(n.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(o.a)(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(c),s.Nb(s.l),s.Nb(s.B))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),u=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[l]}),t})()},GyhO:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("LRne"),s=i("0EUg");function r(...t){return Object(s.a)()(Object(n.a)(...t))}},HDdC:function(t,e,i){"use strict";i.d(e,"a",function(){return c});var n=i("7o/Q"),s=i("2QA8"),r=i("gRHU"),a=i("kJWO"),o=i("SpAZ"),l=i("2fFW");let c=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:a}=this,o=function(t,e,i){if(t){if(t instanceof n.a)return t;if(t[s.a])return t[s.a]()}return t||e||i?new n.a(t,e,i):new n.a(r.a)}(t,e,i);if(o.add(a?a.call(o,this.source):this.source||l.a.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),l.a.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof n.a?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=h(e))((e,i)=>{let n;n=this.subscribe(e=>{try{t(e)}catch(s){i(s),n&&n.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[a.a](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?o.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 i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function h(t){if(t||(t=l.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IjjT:function(t,e,i){"use strict";i.d(e,"a",function(){return s});let n=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class s extends n{constructor(t,e=n.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,i){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}},IzEk:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("7o/Q"),s=i("4I5i"),r=i("EY2u");function a(t){return e=>0===t?Object(r.b)():e.lift(new o(t))}class o{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new l(t,this.total))}}class l extends n.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("zx2A");function s(t){return function(e){const i=new r(t),n=e.lift(i);return i.caught=n}}class r{constructor(t){this.selector=t}call(t,e){return e.subscribe(new a(t,this.selector,this.caught))}}class a extends n.b{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new n.a(this);this.add(s);const r=Object(n.c)(i,s);r!==s&&this.add(r)}}}},JX91:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("GyhO"),s=i("z+Ro");function r(...t){const e=t[t.length-1];return Object(s.a)(e)?(t.pop(),i=>Object(n.a)(t,i,e)):e=>Object(n.a)(t,e)}},Kj3r:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("7o/Q"),s=i("D0XW");function r(t,e=s.a){return i=>i.lift(new a(t,e))}class a{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new o(t,this.dueTime,this.scheduler))}}class o extends n.a{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function l(t){t.debouncedNext()}},LRne:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("z+Ro"),s=i("yCtX"),r=i("jZKg");function a(...t){let e=t[t.length-1];return Object(n.a)(e)?(t.pop(),Object(r.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,i){"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}i.d(e,"a",function(){return s});const s=n()},M9IT:function(t,e,i){"use strict";i.d(e,"a",function(){return k}),i.d(e,"b",function(){return S});var n=i("ofXK"),s=i("fXoL"),r=i("FKr1"),a=i("bTqV"),o=i("d3UM"),l=i("Qu3c"),c=i("8LU1"),h=i("XNiG"),u=i("kmnG");function d(t,e){if(1&t&&(s.Tb(0,"mat-option",19),s.Ec(1),s.Sb()),2&t){const t=e.$implicit;s.lc("value",t),s.Cb(1),s.Gc(" ",t," ")}}function p(t,e){if(1&t){const t=s.Ub();s.Tb(0,"mat-form-field",16),s.Tb(1,"mat-select",17),s.bc("selectionChange",function(e){return s.uc(t),s.fc(2)._changePageSize(e.value)}),s.Dc(2,d,2,2,"mat-option",18),s.Sb(),s.Sb()}if(2&t){const t=s.fc(2);s.lc("appearance",t._formFieldAppearance)("color",t.color),s.Cb(1),s.lc("value",t.pageSize)("disabled",t.disabled)("aria-label",t._intl.itemsPerPageLabel),s.Cb(1),s.lc("ngForOf",t._displayedPageSizeOptions)}}function m(t,e){if(1&t&&(s.Tb(0,"div",20),s.Ec(1),s.Sb()),2&t){const t=s.fc(2);s.Cb(1),s.Fc(t.pageSize)}}function f(t,e){if(1&t&&(s.Tb(0,"div",12),s.Tb(1,"div",13),s.Ec(2),s.Sb(),s.Dc(3,p,3,6,"mat-form-field",14),s.Dc(4,m,2,1,"div",15),s.Sb()),2&t){const t=s.fc();s.Cb(2),s.Gc(" ",t._intl.itemsPerPageLabel," "),s.Cb(1),s.lc("ngIf",t._displayedPageSizeOptions.length>1),s.Cb(1),s.lc("ngIf",t._displayedPageSizeOptions.length<=1)}}function g(t,e){if(1&t){const t=s.Ub();s.Tb(0,"button",21),s.bc("click",function(){return s.uc(t),s.fc().firstPage()}),s.ec(),s.Tb(1,"svg",7),s.Ob(2,"path",22),s.Sb(),s.Sb()}if(2&t){const t=s.fc();s.lc("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("matTooltipPosition","above")("disabled",t._previousButtonsDisabled()),s.Db("aria-label",t._intl.firstPageLabel)}}function b(t,e){if(1&t){const t=s.Ub();s.ec(),s.dc(),s.Tb(0,"button",23),s.bc("click",function(){return s.uc(t),s.fc().lastPage()}),s.ec(),s.Tb(1,"svg",7),s.Ob(2,"path",24),s.Sb(),s.Sb()}if(2&t){const t=s.fc();s.lc("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("matTooltipPosition","above")("disabled",t._nextButtonsDisabled()),s.Db("aria-label",t._intl.lastPageLabel)}}let _=(()=>{class t{constructor(){this.changes=new h.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,i)=>{if(0==i||0==e)return"0 of "+i;const n=t*e;return`${n+1} \u2013 ${n<(i=Math.max(i,0))?Math.min(n+e,i):n+e} of ${i}`}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Jb)({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 x=Object(r.y)(Object(r.A)(w));let C=(()=>{class t extends x{constructor(t,e,i){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()),i){const{pageSize:t,pageSizeOptions:e,hidePageSize:n,showFirstLastButtons:s}=i;null!=t&&(this._pageSize=t),null!=e&&(this._pageSizeOptions=e),null!=n&&(this._hidePageSize=n),null!=s&&(this._showFirstLastButtons=s)}}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.Nb(_),s.Nb(s.h),s.Nb(void 0))},t.\u0275dir=s.Ib({type:t,inputs:{pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons",color:"color"},outputs:{page:"page"},features:[s.zb]}),t})(),k=(()=>{class t extends C{constructor(t,e,i){super(t,e,i),i&&null!=i.formFieldAppearance&&(this._formFieldAppearance=i.formFieldAppearance)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(_),s.Nb(s.h),s.Nb(v,8))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-paginator"]],hostAttrs:[1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[s.zb],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.Tb(0,"div",0),s.Tb(1,"div",1),s.Dc(2,f,5,3,"div",2),s.Tb(3,"div",3),s.Tb(4,"div",4),s.Ec(5),s.Sb(),s.Dc(6,g,3,5,"button",5),s.Tb(7,"button",6),s.bc("click",function(){return e.previousPage()}),s.ec(),s.Tb(8,"svg",7),s.Ob(9,"path",8),s.Sb(),s.Sb(),s.dc(),s.Tb(10,"button",9),s.bc("click",function(){return e.nextPage()}),s.ec(),s.Tb(11,"svg",7),s.Ob(12,"path",10),s.Sb(),s.Sb(),s.Dc(13,b,3,5,"button",11),s.Sb(),s.Sb(),s.Sb()),2&t&&(s.Cb(2),s.lc("ngIf",!e.hidePageSize),s.Cb(3),s.Gc(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),s.Cb(1),s.lc("ngIf",e.showFirstLastButtons),s.Cb(1),s.lc("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("matTooltipPosition","above")("disabled",e._previousButtonsDisabled()),s.Db("aria-label",e._intl.previousPageLabel),s.Cb(3),s.lc("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("matTooltipPosition","above")("disabled",e._nextButtonsDisabled()),s.Db("aria-label",e._intl.nextPageLabel),s.Cb(3),s.lc("ngIf",e.showFirstLastButtons))},directives:[n.m,a.b,l.a,u.c,o.a,n.l,r.m],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})(),S=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[y],imports:[[n.c,a.c,o.b,l.b,r.i]]}),t})()},MutI:function(t,e,i){"use strict";i.d(e,"a",function(){return T}),i.d(e,"b",function(){return L}),i.d(e,"c",function(){return U}),i.d(e,"d",function(){return B}),i.d(e,"e",function(){return D}),i.d(e,"f",function(){return H});var n=i("ofXK"),s=i("fXoL"),r=i("FKr1"),a=i("8LU1"),o=i("XNiG"),l=i("1G5W"),c=i("JX91"),h=i("u47x"),u=i("0EQZ"),d=i("FtGj"),p=i("3Pt+"),m=i("f0Cb");const f=["*"],g='.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}.mat-list-base{padding-top:8px;display:block;-webkit-tap-highlight-color:transparent}.mat-list-base .mat-subheader{height:48px;line-height:16px}.mat-list-base .mat-subheader:first-child{margin-top:-8px}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{display:block;height:48px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base .mat-list-item .mat-list-item-content,.mat-list-base .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base .mat-list-item .mat-list-item-content-reverse,.mat-list-base .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base .mat-list-item .mat-list-item-ripple,.mat-list-base .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar,.mat-list-base .mat-list-option.mat-list-item-with-avatar{height:56px}.mat-list-base .mat-list-item.mat-2-line,.mat-list-base .mat-list-option.mat-2-line{height:72px}.mat-list-base .mat-list-item.mat-3-line,.mat-list-base .mat-list-option.mat-3-line{height:88px}.mat-list-base .mat-list-item.mat-multi-line,.mat-list-base .mat-list-option.mat-multi-line{height:auto}.mat-list-base .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base .mat-list-item .mat-list-text,.mat-list-base .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base .mat-list-item .mat-list-text>*,.mat-list-base .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base .mat-list-item .mat-list-text:empty,.mat-list-base .mat-list-option .mat-list-text:empty{display:none}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base .mat-list-item .mat-list-avatar,.mat-list-base .mat-list-option .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%;object-fit:cover}.mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:72px;width:calc(100% - 72px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:72px}.mat-list-base .mat-list-item .mat-list-icon,.mat-list-base .mat-list-option .mat-list-icon{flex-shrink:0;width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:64px;width:calc(100% - 64px)}[dir=rtl] .mat-list-base .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:64px}.mat-list-base .mat-list-item .mat-divider,.mat-list-base .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base .mat-list-item .mat-divider,[dir=rtl] .mat-list-base .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-list-base[dense]{padding-top:4px;display:block}.mat-list-base[dense] .mat-subheader{height:40px;line-height:8px}.mat-list-base[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list-base[dense] .mat-list-item,.mat-list-base[dense] .mat-list-option{display:block;height:40px;-webkit-tap-highlight-color:transparent;width:100%;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-item-content,.mat-list-base[dense] .mat-list-option .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;padding:0 16px;position:relative;height:inherit}.mat-list-base[dense] .mat-list-item .mat-list-item-content-reverse,.mat-list-base[dense] .mat-list-option .mat-list-item-content-reverse{display:flex;align-items:center;padding:0 16px;flex-direction:row-reverse;justify-content:space-around}.mat-list-base[dense] .mat-list-item .mat-list-item-ripple,.mat-list-base[dense] .mat-list-option .mat-list-item-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar{height:48px}.mat-list-base[dense] .mat-list-item.mat-2-line,.mat-list-base[dense] .mat-list-option.mat-2-line{height:60px}.mat-list-base[dense] .mat-list-item.mat-3-line,.mat-list-base[dense] .mat-list-option.mat-3-line{height:76px}.mat-list-base[dense] .mat-list-item.mat-multi-line,.mat-list-base[dense] .mat-list-option.mat-multi-line{height:auto}.mat-list-base[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-list-base[dense] .mat-list-option.mat-multi-line .mat-list-item-content{padding-top:16px;padding-bottom:16px}.mat-list-base[dense] .mat-list-item .mat-list-text,.mat-list-base[dense] .mat-list-option .mat-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden;padding:0}.mat-list-base[dense] .mat-list-item .mat-list-text>*,.mat-list-base[dense] .mat-list-option .mat-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-list-base[dense] .mat-list-item .mat-list-text:empty,.mat-list-base[dense] .mat-list-option .mat-list-text:empty{display:none}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:0;padding-left:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:0}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-left:0;padding-right:16px}[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-item.mat-list-option .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar .mat-list-item-content-reverse .mat-list-text,[dir=rtl] .mat-list-base[dense] .mat-list-option.mat-list-option .mat-list-item-content-reverse .mat-list-text{padding-right:0;padding-left:16px}.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-item.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content-reverse .mat-list-text,.mat-list-base[dense] .mat-list-option.mat-list-item-with-avatar.mat-list-option .mat-list-item-content .mat-list-text{padding-right:16px;padding-left:16px}.mat-list-base[dense] .mat-list-item .mat-list-avatar,.mat-list-base[dense] .mat-list-option .mat-list-avatar{flex-shrink:0;width:36px;height:36px;border-radius:50%;object-fit:cover}.mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:68px;width:calc(100% - 68px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-avatar~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-avatar~.mat-divider-inset{margin-left:auto;margin-right:68px}.mat-list-base[dense] .mat-list-item .mat-list-icon,.mat-list-base[dense] .mat-list-option .mat-list-icon{flex-shrink:0;width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:60px;width:calc(100% - 60px)}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-list-icon~.mat-divider-inset,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-list-icon~.mat-divider-inset{margin-left:auto;margin-right:60px}.mat-list-base[dense] .mat-list-item .mat-divider,.mat-list-base[dense] .mat-list-option .mat-divider{position:absolute;bottom:0;left:0;width:100%;margin:0}[dir=rtl] .mat-list-base[dense] .mat-list-item .mat-divider,[dir=rtl] .mat-list-base[dense] .mat-list-option .mat-divider{margin-left:auto;margin-right:0}.mat-list-base[dense] .mat-list-item .mat-divider.mat-divider-inset,.mat-list-base[dense] .mat-list-option .mat-divider.mat-divider-inset{position:absolute}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item{cursor:pointer;outline:none}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] mat-action-list button{text-align:right}mat-action-list button::-moz-focus-inner{border:0}mat-action-list .mat-list-item{cursor:pointer;outline:inherit}.mat-list-option:not(.mat-list-item-disabled){cursor:pointer;outline:none}.mat-list-item-disabled{pointer-events:none}.cdk-high-contrast-active .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active :host .mat-list-item-disabled{opacity:.5}.cdk-high-contrast-active .mat-selection-list:focus{outline-style:dotted}.cdk-high-contrast-active .mat-list-option:hover,.cdk-high-contrast-active .mat-list-option:focus,.cdk-high-contrast-active .mat-nav-list .mat-list-item:hover,.cdk-high-contrast-active .mat-nav-list .mat-list-item:focus,.cdk-high-contrast-active mat-action-list .mat-list-item:hover,.cdk-high-contrast-active mat-action-list .mat-list-item:focus{outline:dotted 1px}.cdk-high-contrast-active .mat-list-single-selected-option::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}.cdk-high-contrast-active [dir=rtl] .mat-list-single-selected-option::after{right:auto;left:16px}@media(hover: none){.mat-list-option:not(.mat-list-single-selected-option):not(.mat-list-item-disabled):hover,.mat-nav-list .mat-list-item:not(.mat-list-item-disabled):hover,.mat-action-list .mat-list-item:not(.mat-list-item-disabled):hover{background:none}}\n',b=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],_=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],y=["text"];function v(t,e){if(1&t&&s.Ob(0,"mat-pseudo-checkbox",5),2&t){const t=s.fc();s.lc("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const w=["*",[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]]],x=["*","[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]"];class C{}const k=Object(r.y)(Object(r.x)(C));class S{}const O=Object(r.x)(S),E=new s.s("MatList"),A=new s.s("MatNavList");let D=(()=>{class t extends k{constructor(){super(...arguments),this._stateChanges=new o.a}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return I(e||t)},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-nav-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matNavList"],features:[s.Bb([{provide:A,useExisting:t}]),s.zb,s.Ab],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(s.kc(),s.jc(0))},styles:[g],encapsulation:2,changeDetection:0}),t})();const I=s.Vb(D);let T=(()=>{class t extends k{constructor(t){super(),this._elementRef=t,this._stateChanges=new o.a,"action-list"===this._getListType()&&t.nativeElement.classList.add("mat-action-list")}_getListType(){const t=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===t?"list":"mat-action-list"===t?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[s.Bb([{provide:E,useExisting:t}]),s.zb,s.Ab],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(s.kc(),s.jc(0))},styles:[g],encapsulation:2,changeDetection:0}),t})(),R=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),t})(),j=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=s.Ib({type:t,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),t})(),L=(()=>{class t extends O{constructor(t,e,i,n){super(),this._element=t,this._isInteractiveList=!1,this._destroyed=new o.a,this._disabled=!1,this._isInteractiveList=!!(i||n&&"action-list"===n._getListType()),this._list=i||n;const s=this._getHostElement();"button"!==s.nodeName.toLowerCase()||s.hasAttribute("type")||s.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe(Object(l.a)(this._destroyed)).subscribe(()=>{e.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(t){this._disabled=Object(a.c)(t)}ngAfterContentInit(){Object(r.C)(this._lines,this._element)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_isRippleDisabled(){return!this._isInteractiveList||this.disableRipple||!(!this._list||!this._list.disableRipple)}_getHostElement(){return this._element.nativeElement}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.h),s.Nb(A,8),s.Nb(E,8))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,e,i){if(1&t&&(s.Gb(i,R,!0),s.Gb(i,j,!0),s.Gb(i,r.j,!0)),2&t){let t;s.rc(t=s.cc())&&(e._avatar=t.first),s.rc(t=s.cc())&&(e._icon=t.first),s.rc(t=s.cc())&&(e._lines=t)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(t,e){2&t&&s.Fb("mat-list-item-disabled",e.disabled)("mat-list-item-avatar",e._avatar||e._icon)("mat-list-item-with-avatar",e._avatar||e._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[s.zb],ngContentSelectors:_,decls:6,vars:2,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-list-text"]],template:function(t,e){1&t&&(s.kc(b),s.Tb(0,"div",0),s.Ob(1,"div",1),s.jc(2),s.Tb(3,"div",2),s.jc(4,1),s.Sb(),s.jc(5,2),s.Sb()),2&t&&(s.Cb(1),s.lc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()))},directives:[r.r],encapsulation:2,changeDetection:0}),t})();class N{}const P=Object(r.x)(N);class F{}const M=Object(r.x)(F),V={provide:p.k,useExisting:Object(s.W)(()=>H),multi:!0};class z{constructor(t,e,i){this.source=t,this.option=e,this.options=i}}let B=(()=>{class t extends M{constructor(t,e,i){super(),this._element=t,this._changeDetector=e,this.selectionList=i,this._selected=!1,this._disabled=!1,this._hasFocus=!1,this.checkboxPosition="after",this._inputsInitialized=!1}get color(){return this._color||this.selectionList.color}set color(t){this._color=t}get value(){return this._value}set value(t){this.selected&&!this.selectionList.compareWith(t,this.value)&&this._inputsInitialized&&(this.selected=!1),this._value=t}get disabled(){return this._disabled||this.selectionList&&this.selectionList.disabled}set disabled(t){const e=Object(a.c)(t);e!==this._disabled&&(this._disabled=e,this._changeDetector.markForCheck())}get selected(){return this.selectionList.selectedOptions.isSelected(this)}set selected(t){const e=Object(a.c)(t);e!==this._selected&&(this._setSelected(e),this.selectionList._reportValueChange())}ngOnInit(){const t=this.selectionList;t._value&&t._value.some(e=>t.compareWith(e,this._value))&&this._setSelected(!0);const e=this._selected;Promise.resolve().then(()=>{(this._selected||e)&&(this.selected=!0,this._changeDetector.markForCheck())}),this._inputsInitialized=!0}ngAfterContentInit(){Object(r.C)(this._lines,this._element)}ngOnDestroy(){this.selected&&Promise.resolve().then(()=>{this.selected=!1});const t=this._hasFocus,e=this.selectionList._removeOptionFromList(this);t&&e&&e.focus()}toggle(){this.selected=!this.selected}focus(){this._element.nativeElement.focus()}getLabel(){return this._text&&this._text.nativeElement.textContent||""}_isRippleDisabled(){return this.disabled||this.disableRipple||this.selectionList.disableRipple}_handleClick(){this.disabled||!this.selectionList.multiple&&this.selected||(this.toggle(),this.selectionList._emitChangeEvent([this]))}_handleFocus(){this.selectionList._setFocusedOption(this),this._hasFocus=!0}_handleBlur(){this.selectionList._onTouched(),this._hasFocus=!1}_getHostElement(){return this._element.nativeElement}_setSelected(t){return t!==this._selected&&(this._selected=t,t?this.selectionList.selectedOptions.select(this):this.selectionList.selectedOptions.deselect(this),this._changeDetector.markForCheck(),!0)}_markForCheck(){this._changeDetector.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.h),s.Nb(Object(s.W)(()=>H)))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-list-option"]],contentQueries:function(t,e,i){if(1&t&&(s.Gb(i,R,!0),s.Gb(i,j,!0),s.Gb(i,r.j,!0)),2&t){let t;s.rc(t=s.cc())&&(e._avatar=t.first),s.rc(t=s.cc())&&(e._icon=t.first),s.rc(t=s.cc())&&(e._lines=t)}},viewQuery:function(t,e){if(1&t&&s.Ic(y,!0),2&t){let t;s.rc(t=s.cc())&&(e._text=t.first)}},hostAttrs:["role","option",1,"mat-list-item","mat-list-option","mat-focus-indicator"],hostVars:15,hostBindings:function(t,e){1&t&&s.bc("focus",function(){return e._handleFocus()})("blur",function(){return e._handleBlur()})("click",function(){return e._handleClick()}),2&t&&(s.Db("aria-selected",e.selected)("aria-disabled",e.disabled)("tabindex",-1),s.Fb("mat-list-item-disabled",e.disabled)("mat-list-item-with-avatar",e._avatar||e._icon)("mat-primary","primary"===e.color)("mat-accent","primary"!==e.color&&"warn"!==e.color)("mat-warn","warn"===e.color)("mat-list-single-selected-option",e.selected&&!e.selectionList.multiple))},inputs:{disableRipple:"disableRipple",checkboxPosition:"checkboxPosition",color:"color",value:"value",selected:"selected",disabled:"disabled"},exportAs:["matListOption"],features:[s.zb],ngContentSelectors:x,decls:7,vars:5,consts:[[1,"mat-list-item-content"],["mat-ripple","",1,"mat-list-item-ripple",3,"matRippleTrigger","matRippleDisabled"],[3,"state","disabled",4,"ngIf"],[1,"mat-list-text"],["text",""],[3,"state","disabled"]],template:function(t,e){1&t&&(s.kc(w),s.Tb(0,"div",0),s.Ob(1,"div",1),s.Dc(2,v,1,2,"mat-pseudo-checkbox",2),s.Tb(3,"div",3,4),s.jc(5),s.Sb(),s.jc(6,1),s.Sb()),2&t&&(s.Fb("mat-list-item-content-reverse","after"==e.checkboxPosition),s.Cb(1),s.lc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e._isRippleDisabled()),s.Cb(1),s.lc("ngIf",e.selectionList.multiple))},directives:[r.r,n.m,r.p],encapsulation:2,changeDetection:0}),t})(),H=(()=>{class t extends P{constructor(t,e,i,n){super(),this._element=t,this._changeDetector=i,this._focusMonitor=n,this._multiple=!0,this._contentInitialized=!1,this.selectionChange=new s.o,this.tabIndex=0,this.color="accent",this.compareWith=(t,e)=>t===e,this._disabled=!1,this.selectedOptions=new u.c(this._multiple),this._tabIndex=-1,this._onChange=t=>{},this._destroyed=new o.a,this._onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this._disabled=Object(a.c)(t),this._markOptionsForCheck()}get multiple(){return this._multiple}set multiple(t){const e=Object(a.c)(t);e!==this._multiple&&(this._multiple=e,this.selectedOptions=new u.c(this._multiple,this.selectedOptions.selected))}ngAfterContentInit(){var t;this._contentInitialized=!0,this._keyManager=new h.g(this.options).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1).withAllowedModifierKeys(["shiftKey"]),this._value&&this._setOptionsFromValues(this._value),this._keyManager.tabOut.pipe(Object(l.a)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.options.changes.pipe(Object(c.a)(null),Object(l.a)(this._destroyed)).subscribe(()=>{this._updateTabIndex()}),this.selectedOptions.changed.pipe(Object(l.a)(this._destroyed)).subscribe(t=>{if(t.added)for(let e of t.added)e.selected=!0;if(t.removed)for(let e of t.removed)e.selected=!1}),null===(t=this._focusMonitor)||void 0===t||t.monitor(this._element).pipe(Object(l.a)(this._destroyed)).subscribe(t=>{if("keyboard"===t||"program"===t){const t=this._keyManager.activeItemIndex;t&&-1!==t?this._keyManager.setActiveItem(t):this._keyManager.setFirstItemActive()}})}ngOnChanges(t){const e=t.disableRipple,i=t.color;(e&&!e.firstChange||i&&!i.firstChange)&&this._markOptionsForCheck()}ngOnDestroy(){var t;null===(t=this._focusMonitor)||void 0===t||t.stopMonitoring(this._element),this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0}focus(t){this._element.nativeElement.focus(t)}selectAll(){this._setAllOptionsSelected(!0)}deselectAll(){this._setAllOptionsSelected(!1)}_setFocusedOption(t){this._keyManager.updateActiveItem(t)}_removeOptionFromList(t){const e=this._getOptionIndex(t);return e>-1&&this._keyManager.activeItemIndex===e&&(e>0?this._keyManager.updateActiveItem(e-1):0===e&&this.options.length>1&&this._keyManager.updateActiveItem(Math.min(e+1,this.options.length-1))),this._keyManager.activeItem}_keydown(t){const e=t.keyCode,i=this._keyManager,n=i.activeItemIndex,s=Object(d.t)(t);switch(e){case d.o:case d.g:s||i.isTyping()||(this._toggleFocusedOption(),t.preventDefault());break;default:if(e===d.a&&this.multiple&&Object(d.t)(t,"ctrlKey")&&!i.isTyping()){const e=this.options.some(t=>!t.disabled&&!t.selected);this._setAllOptionsSelected(e,!0,!0),t.preventDefault()}else i.onKeydown(t)}this.multiple&&(e===d.q||e===d.e)&&t.shiftKey&&i.activeItemIndex!==n&&this._toggleFocusedOption()}_reportValueChange(){if(this.options&&!this._isDestroyed){const t=this._getSelectedOptionValues();this._onChange(t),this._value=t}}_emitChangeEvent(t){this.selectionChange.emit(new z(this,t[0],t))}writeValue(t){this._value=t,this.options&&this._setOptionsFromValues(t||[])}setDisabledState(t){this.disabled=t}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}_setOptionsFromValues(t){this.options.forEach(t=>t._setSelected(!1)),t.forEach(t=>{const e=this.options.find(e=>!e.selected&&this.compareWith(e.value,t));e&&e._setSelected(!0)})}_getSelectedOptionValues(){return this.options.filter(t=>t.selected).map(t=>t.value)}_toggleFocusedOption(){let t=this._keyManager.activeItemIndex;if(null!=t&&this._isValidIndex(t)){let e=this.options.toArray()[t];!e||e.disabled||!this._multiple&&e.selected||(e.toggle(),this._emitChangeEvent([e]))}}_setAllOptionsSelected(t,e,i){const n=[];this.options.forEach(i=>{e&&i.disabled||!i._setSelected(t)||n.push(i)}),n.length&&(this._reportValueChange(),i&&this._emitChangeEvent(n))}_isValidIndex(t){return t>=0&&tt._markForCheck())}_allowFocusEscape(){this._tabIndex=-1,setTimeout(()=>{this._tabIndex=0,this._changeDetector.markForCheck()})}_updateTabIndex(){this._tabIndex=0===this.options.length?-1:0}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Yb("tabindex"),s.Nb(s.h),s.Nb(h.h))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-selection-list"]],contentQueries:function(t,e,i){if(1&t&&s.Gb(i,B,!0),2&t){let t;s.rc(t=s.cc())&&(e.options=t)}},hostAttrs:["role","listbox",1,"mat-selection-list","mat-list-base"],hostVars:3,hostBindings:function(t,e){1&t&&s.bc("keydown",function(t){return e._keydown(t)}),2&t&&s.Db("aria-multiselectable",e.multiple)("aria-disabled",e.disabled.toString())("tabindex",e._tabIndex)},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex",color:"color",compareWith:"compareWith",disabled:"disabled",multiple:"multiple"},outputs:{selectionChange:"selectionChange"},exportAs:["matSelectionList"],features:[s.Bb([V]),s.zb,s.Ab],ngContentSelectors:f,decls:1,vars:0,template:function(t,e){1&t&&(s.kc(),s.jc(0))},styles:[g],encapsulation:2,changeDetection:0}),t})(),U=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},imports:[[r.k,r.s,r.i,r.q,n.c],r.k,r.i,r.q,m.b]}),t})()},NFeN:function(t,e,i){"use strict";i.d(e,"a",function(){return j}),i.d(e,"b",function(){return L});var n=i("fXoL"),s=i("FKr1"),r=i("8LU1"),a=i("ofXK"),o=i("LRne"),l=i("z6cu"),c=i("cp0P"),h=i("quSY"),u=i("vkgz"),d=i("lJxs"),p=i("JIr8"),m=i("nYR2"),f=i("w1tV"),g=i("IzEk"),b=i("tk/3"),_=i("jhN1");const y=["*"];function v(t){return Error(`Unable to find icon with the name "${t}"`)}function w(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function x(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class C{constructor(t,e,i){this.url=t,this.svgText=e,this.options=i}}let k=(()=>{class t{constructor(t,e,i,n){this._httpClient=t,this._sanitizer=e,this._errorHandler=n,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=i}addSvgIcon(t,e,i){return this.addSvgIconInNamespace("",t,e,i)}addSvgIconLiteral(t,e,i){return this.addSvgIconLiteralInNamespace("",t,e,i)}addSvgIconInNamespace(t,e,i,n){return this._addSvgIconConfig(t,e,new C(i,null,n))}addSvgIconLiteralInNamespace(t,e,i,s){const r=this._sanitizer.sanitize(n.K.HTML,i);if(!r)throw x(i);return this._addSvgIconConfig(t,e,new C("",r,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,i){return this._addSvgIconSetConfig(t,new C(e,null,i))}addSvgIconSetLiteralInNamespace(t,e,i){const s=this._sanitizer.sanitize(n.K.HTML,e);if(!s)throw x(e);return this._addSvgIconSetConfig(t,new C("",s,i))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(n.K.RESOURCE_URL,t);if(!e)throw w(t);const i=this._cachedIconsByUrl.get(e);return i?Object(o.a)(S(i)):this._loadSvgIconFromConfig(new C(t,null)).pipe(Object(u.a)(t=>this._cachedIconsByUrl.set(e,t)),Object(d.a)(t=>S(t)))}getNamedSvgIcon(t,e=""){const i=O(e,t),n=this._svgIconConfigs.get(i);if(n)return this._getSvgFromConfig(n);const s=this._iconSetConfigs.get(e);return s?this._getSvgFromIconSetConfigs(t,s):Object(l.a)(v(i))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Object(o.a)(S(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(Object(d.a)(t=>S(t)))}_getSvgFromIconSetConfigs(t,e){const i=this._extractIconWithNameFromAnySet(t,e);if(i)return Object(o.a)(i);const s=e.filter(t=>!t.svgText).map(t=>this._loadSvgIconSetFromConfig(t).pipe(Object(p.a)(e=>{const i=this._sanitizer.sanitize(n.K.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${i} failed: ${e.message}`)),Object(o.a)(null)})));return Object(c.a)(s).pipe(Object(d.a)(()=>{const i=this._extractIconWithNameFromAnySet(t,e);if(!i)throw v(t);return i}))}_extractIconWithNameFromAnySet(t,e){for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.svgText&&n.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(n),i=this._extractSvgIconFromSet(e,t,n.options);if(i)return i}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Object(u.a)(e=>t.svgText=e),Object(d.a)(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Object(o.a)(null):this._fetchIcon(t).pipe(Object(u.a)(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,i){const n=t.querySelector(`[id="${e}"]`);if(!n)return null;const s=n.cloneNode(!0);if(s.removeAttribute("id"),"svg"===s.nodeName.toLowerCase())return this._setSvgAttributes(s,i);if("symbol"===s.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(s),i);const r=this._svgElementFromString("");return r.appendChild(s),this._setSvgAttributes(r,i)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const i=e.querySelector("svg");if(!i)throw Error(" tag not found");return i}_toSvgElement(t){const e=this._svgElementFromString(""),i=t.attributes;for(let n=0;nthis._inProgressUrlFetches.delete(a)),Object(f.a)());return this._inProgressUrlFetches.set(a,l),l}_addSvgIconConfig(t,e,i){return this._svgIconConfigs.set(O(t,e),i),this}_addSvgIconSetConfig(t,e){const i=this._iconSetConfigs.get(t);return i?i.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(b.a,8),n.Xb(_.b),n.Xb(a.d,8),n.Xb(n.n))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(b.a,8),Object(n.Xb)(_.b),Object(n.Xb)(a.d,8),Object(n.Xb)(n.n))},token:t,providedIn:"root"}),t})();function S(t){return t.cloneNode(!0)}function O(t,e){return t+":"+e}class E{constructor(t){this._elementRef=t}}const A=Object(s.w)(E),D=new n.s("mat-icon-location",{providedIn:"root",factory:function(){const t=Object(n.X)(a.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),I=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],T=I.map(t=>`[${t}]`).join(", "),R=/^url\(['"]?#(.*?)['"]?\)$/;let j=(()=>{class t extends A{constructor(t,e,i,n,s){super(t),this._iconRegistry=e,this._location=n,this._errorHandler=s,this._inline=!1,this._currentIconFetch=h.a.EMPTY,i||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=Object(r.c)(t)}get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}get fontSet(){return this._fontSet}set fontSet(t){const e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(t){const e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let n=0;n{e.forEach(e=>{i.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(T),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let n=0;n{const s=e[n],r=s.getAttribute(t),a=r?r.match(R):null;if(a){let e=i.get(s);e||(e=[],i.set(s,e)),e.push({name:t,value:a[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){const[e,i]=this._splitIconName(t);e&&(this._svgNamespace=e),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,e).pipe(Object(g.a)(1)).subscribe(t=>this._setSvgElement(t),t=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${e}:${i}! ${t.message}`))})}}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(k),n.Yb("aria-hidden"),n.Nb(D),n.Nb(n.n))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(n.Db("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),n.Fb("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.zb],ngContentSelectors:y,decls:1,vars:0,template:function(t,e){1&t&&(n.kc(),n.jc(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),L=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[s.i],s.i]}),t})()},NJ4a:function(t,e,i){"use strict";function n(t){setTimeout(()=>{throw t},0)}i.d(e,"a",function(){return n})},NUjs:function(t,e,i){"use strict";i.d(e,"b",function(){return s}),i.d(e,"a",function(){return r});var n=function(t){return t[t.Question=0]="Question",t[t.SingleChoice=1]="SingleChoice",t[t.MultipleChoice=2]="MultipleChoice",t[t.ShortAnswer=3]="ShortAnswer",t[t.EssayQuestions=4]="EssayQuestions",t}({});const s=t=>{let e="";switch(t){case n.SingleChoice:e="ExerciseItemType.SingleChoice";break;case n.MultipleChoice:e="ExerciseItemType.MultipleChoices";break;case n.ShortAnswer:e="ExerciseItemType.ShortAnswer";break;case n.ShortAnswer:e="ExerciseItemType.EssayQuestion";break;case n.Question:default:e="ExerciseItemType.Question"}return e};class r{constructor(){this._tags=[],this.ID=-1,this.Content="",this.ItemType=n.Question}get KnowledgeItemID(){return this._knowledgeItemID}set KnowledgeItemID(t){this._knowledgeItemID=t}get CreatedAt(){return this._createdAt}set CreatedAt(t){this._createdAt=t}get ModifiedAt(){return this._modifiedAt}set ModifiedAt(t){this._modifiedAt=t}get Tags(){return this._tags}set Tags(t){this._tags=t.slice()}get Answer(){return this._answer}set Answer(t){this._answer=t}parseData(t){if(t&&t.ID&&(this.ID=+t.ID),t&&t.KnowledgeItemID&&(this.KnowledgeItemID=t.KnowledgeItemID),t&&t.ExerciseType&&(this.ItemType=isNaN(+t.ExerciseType)?n[t.ExerciseType]:+t.ExerciseType),t&&t.Content&&(this.Content=t.Content),t&&t.CreatedAt&&(this.CreatedAt=new Date(t.CreatedAt)),t&&t.ModifiedAt&&(this.ModifiedAt=new Date(t.ModifiedAt)),t&&t.Answer&&(this.Answer=t.Answer.Content),t&&t.Tags){const e=t.Tags;this._tags=[],e.forEach(t=>{this._tags.push(t.TagTerm)})}}generateString(t){const e={Content:this.Content,ExerciseType:n[this.ItemType]};return t&&(e.ID=this.ID),this.KnowledgeItemID&&(e.KnowledgeItemID=this.KnowledgeItemID),this.CreatedAt&&(e.CreatedAt=this.CreatedAt.toISOString().slice(0,10)),this.ModifiedAt&&(e.ModifiedAt=this.ModifiedAt.toISOString().slice(0,10)),this.Answer&&(e.Answer={Content:this.Answer}),this.Tags&&(e.Tags=[],this.Tags.forEach(t=>{e.Tags.push({TagTerm:t})})),JSON&&JSON.stringify(e)}}},NXyV:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("HDdC"),s=i("Cfvw"),r=i("EY2u");function a(t){return new n.a(e=>{let i;try{i=t()}catch(n){return void e.error(n)}return(i?Object(s.a)(i):Object(r.b)()).subscribe(e)})}},OnMO:function(t,e,i){t.exports=function(){"use strict";function t(t,e){for(var i=0;it.length)&&(e=t.length);for(var i=0,n=new Array(e);i=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}var n=function(t){var e={exports:{}};return function(t){function e(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}t.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:e,changeDefaults:function(e){t.exports.defaults=e}}}(e),e.exports}(),s=/[&<>"']/,r=/[&<>"']/g,a=/[<>"']|&(?!#?\w+;)/,o=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(t){return l[t]},h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function u(t){return t.replace(h,function(t,e){return"colon"===(e=e.toLowerCase())?":":"#"===e.charAt(0)?"x"===e.charAt(1)?String.fromCharCode(parseInt(e.substring(2),16)):String.fromCharCode(+e.substring(1)):""})}var d=/(^|[^\[])\^/g,p=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,f={},g=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function y(t,e,i){var n=t.length;if(0===n)return"";for(var s=0;s=0&&"\\"===i[s];)n=!n;return n?"|":" |"}).split(/ \|/),n=0;if(i.length>e)i.splice(e);else for(;i.length1?{type:"space",raw:e[0]}:{raw:"\n"}},e.code=function(t,e){var i=this.rules.block.code.exec(t);if(i){var n=e[e.length-1];if(n&&"paragraph"===n.type)return{raw:i[0],text:i[0].trimRight()};var s=i[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?s:k(s,"\n")}}},e.fences=function(t){var e=this.rules.block.fences.exec(t);if(e){var i=e[0],n=function(t,e){var i=t.match(/^(\s+)(?:```)/);if(null===i)return e;var n=i[1];return e.split("\n").map(function(t){var e=t.match(/^\s+/);return null===e?t:e[0].length>=n.length?t.slice(n.length):t}).join("\n")}(i,e[3]||"");return{type:"code",raw:i,lang:e[2]?e[2].trim():e[2],text:n}}},e.heading=function(t){var e=this.rules.block.heading.exec(t);if(e){var i=e[2].trim();if(/#$/.test(i)){var n=k(i,"#");this.options.pedantic?i=n.trim():n&&!/ $/.test(n)||(i=n.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:i}}},e.nptable=function(t){var e=this.rules.block.nptable.exec(t);if(e){var i={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(i.header.length===i.align.length){var n,s=i.align.length;for(n=0;n ?/gm,"");return{type:"blockquote",raw:e[0],text:i}}},e.list=function(t){var e=this.rules.block.list.exec(t);if(e){var i,n,s,r,a,o,l,c,h=e[0],u=e[2],d=u.length>1,p={type:"list",raw:h,ordered:d,start:d?+u.slice(0,-1):"",loose:!1,items:[]},m=e[0].match(this.rules.block.item),f=!1,g=m.length;s=this.rules.block.listItemStart.exec(m[0]);for(var b=0;bs[1].length:r[1].length>s[0].length||r[1].length>3){m.splice(b,2,m[b]+"\n"+m[b+1]),b--,g--;continue}(!this.options.pedantic||this.options.smartLists?r[2][r[2].length-1]!==u[u.length-1]:d===(1===r[2].length))&&(a=m.slice(b+1).join("\n"),p.raw=p.raw.substring(0,p.raw.length-a.length),b=g-1),s=r}n=i.length,~(i=i.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(n-=i.length,i=i.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+n+"}","gm"),"")),o=f||/\n\n(?!\s*$)/.test(i),b!==g-1&&(f="\n"===i.charAt(i.length-1),o||(o=f)),o&&(p.loose=!0),this.options.gfm&&(c=void 0,(l=/^\[[ xX]\] /.test(i))&&(c=" "!==i[1],i=i.replace(/^\[[ xX]\] +/,""))),p.items.push({type:"list_item",raw:h,task:l,checked:c,loose:o,text:i})}return p}},e.html=function(t){var e=this.rules.block.html.exec(t);if(e)return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):O(e[0]):e[0]}},e.def=function(t){var e=this.rules.block.def.exec(t);if(e)return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},e.table=function(t){var e=this.rules.block.table.exec(t);if(e){var i={type:"table",header:S(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(i.header.length===i.align.length){i.raw=e[0];var n,s=i.align.length;for(n=0;n/i.test(n[0])&&(e=!1),!i&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?i=!0:i&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(i=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:e,inRawBlock:i,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):O(n[0]):n[0]}},e.link=function(t){var e=this.rules.inline.link.exec(t);if(e){var i=e[2].trim();if(!this.options.pedantic&&/^$/.test(i))return;var n=k(i.slice(0,-1),"\\");if((i.length-n.length)%2==0)return}else{var s=function(t,e){if(-1===t.indexOf(e[1]))return-1;for(var i=t.length,n=0,s=0;s-1){var r=(0===e[0].indexOf("!")?5:4)+e[1].length+s;e[2]=e[2].substring(0,s),e[0]=e[0].substring(0,r).trim(),e[3]=""}}var a=e[2],o="";if(this.options.pedantic){var l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);l&&(a=l[1],o=l[3])}else o=e[3]?e[3].slice(1,-1):"";return a=a.trim(),/^$/.test(i)?a.slice(1):a.slice(1,-1)),E(e,{href:a?a.replace(this.rules.inline._escapes,"$1"):a,title:o?o.replace(this.rules.inline._escapes,"$1"):o},e[0])}},e.reflink=function(t,e){var i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){var n=(i[2]||i[1]).replace(/\s+/g," ");if(!(n=e[n.toLowerCase()])||!n.href){var s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return E(i,n,i[0])}},e.strong=function(t,e,i){void 0===i&&(i="");var n=this.rules.inline.strong.start.exec(t);if(n&&(!n[1]||n[1]&&(""===i||this.rules.inline.punctuation.exec(i)))){e=e.slice(-1*t.length);var s,r="**"===n[0]?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;for(r.lastIndex=0;null!=(n=r.exec(e));)if(s=this.rules.inline.strong.middle.exec(e.slice(0,n.index+3)))return{type:"strong",raw:t.slice(0,s[0].length),text:t.slice(2,s[0].length-2)}}},e.em=function(t,e,i){void 0===i&&(i="");var n=this.rules.inline.em.start.exec(t);if(n&&(!n[1]||n[1]&&(""===i||this.rules.inline.punctuation.exec(i)))){e=e.slice(-1*t.length);var s,r="*"===n[0]?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;for(r.lastIndex=0;null!=(n=r.exec(e));)if(s=this.rules.inline.em.middle.exec(e.slice(0,n.index+2)))return{type:"em",raw:t.slice(0,s[0].length),text:t.slice(1,s[0].length-1)}}},e.codespan=function(t){var e=this.rules.inline.code.exec(t);if(e){var i=e[2].replace(/\n/g," "),n=/[^ ]/.test(i),s=/^ /.test(i)&&/ $/.test(i);return n&&s&&(i=i.substring(1,i.length-1)),i=O(i,!0),{type:"codespan",raw:e[0],text:i}}},e.br=function(t){var e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}},e.del=function(t){var e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2]}},e.autolink=function(t,e){var i,n,s=this.rules.inline.autolink.exec(t);if(s)return n="@"===s[2]?"mailto:"+(i=O(this.options.mangle?e(s[1]):s[1])):i=O(s[1]),{type:"link",raw:s[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}},e.url=function(t,e){var i;if(i=this.rules.inline.url.exec(t)){var n,s;if("@"===i[2])s="mailto:"+(n=O(this.options.mangle?e(i[0]):i[0]));else{var r;do{r=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])[0]}while(r!==i[0]);n=O(i[0]),s="www."===i[1]?"http://"+n:n}return{type:"link",raw:i[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}},e.inlineText=function(t,e,i){var n,s=this.rules.inline.text.exec(t);if(s)return n=e?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):O(s[0]):s[0]:O(this.options.smartypants?i(s[0]):s[0]),{type:"text",raw:s[0],text:n}},t}(),D={exec:function(){}},I=function(t,e){t=t.source||t,e=e||"";var i={replace:function(e,n){return n=(n=n.source||n).replace(d,"$1"),t=t.replace(e,n),i},getRegex:function(){return new RegExp(t,e)}};return i},T=x,R={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:D,table:D,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};R.def=I(R.def).replace("label",R._label).replace("title",R._title).getRegex(),R.bullet=/(?:[*+-]|\d{1,9}[.)])/,R.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,R.item=I(R.item,"gm").replace(/bull/g,R.bullet).getRegex(),R.listItemStart=I(/^( *)(bull)/).replace("bull",R.bullet).getRegex(),R.list=I(R.list).replace(/bull/g,R.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+R.def.source+")").getRegex(),R._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",R._comment=/|$)/,R.html=I(R.html,"i").replace("comment",R._comment).replace("tag",R._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),R.paragraph=I(R._paragraph).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",R._tag).getRegex(),R.blockquote=I(R.blockquote).replace("paragraph",R.paragraph).getRegex(),R.normal=T({},R),R.gfm=T({},R.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),R.gfm.nptable=I(R.gfm.nptable).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",R._tag).getRegex(),R.gfm.table=I(R.gfm.table).replace("hr",R.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",R._tag).getRegex(),R.pedantic=T({},R.normal,{html:I("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",R._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:D,paragraph:I(R.normal._paragraph).replace("hr",R.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",R.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var j={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:D,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",strong:{start:/^(?:(\*\*(?=[*punctuation]))|\*\*)(?![\s])|__/,middle:/^\*\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*\*$|^__(?![\s])((?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?)__$/,endAst:/[^punctuation\s]\*\*(?!\*)|[punctuation]\*\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]__(?!_)(?:(?=[punctuation*\s])|$)/},em:{start:/^(?:(\*(?=[punctuation]))|\*)(?![*\s])|_/,middle:/^\*(?:(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)|\*(?:(?!overlapSkip)(?:[^*]|\\\*)|overlapSkip)*?\*)+?\*$|^_(?![_\s])(?:(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)|_(?:(?!overlapSkip)(?:[^_]|\\_)|overlapSkip)*?_)+?_$/,endAst:/[^punctuation\s]\*(?!\*)|[punctuation]\*(?!\*)(?:(?=[punctuation_\s]|$))/,endUnd:/[^\s]_(?!_)(?:(?=[punctuation*\s])|$)/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:D,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};j.punctuation=I(j.punctuation).replace(/punctuation/g,j._punctuation).getRegex(),j._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",j._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",j._comment=I(R._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),j.em.start=I(j.em.start).replace(/punctuation/g,j._punctuation).getRegex(),j.em.middle=I(j.em.middle).replace(/punctuation/g,j._punctuation).replace(/overlapSkip/g,j._overlapSkip).getRegex(),j.em.endAst=I(j.em.endAst,"g").replace(/punctuation/g,j._punctuation).getRegex(),j.em.endUnd=I(j.em.endUnd,"g").replace(/punctuation/g,j._punctuation).getRegex(),j.strong.start=I(j.strong.start).replace(/punctuation/g,j._punctuation).getRegex(),j.strong.middle=I(j.strong.middle).replace(/punctuation/g,j._punctuation).replace(/overlapSkip/g,j._overlapSkip).getRegex(),j.strong.endAst=I(j.strong.endAst,"g").replace(/punctuation/g,j._punctuation).getRegex(),j.strong.endUnd=I(j.strong.endUnd,"g").replace(/punctuation/g,j._punctuation).getRegex(),j.blockSkip=I(j._blockSkip,"g").getRegex(),j.overlapSkip=I(j._overlapSkip,"g").getRegex(),j._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,j._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,j._email=/[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])?)+(?![-_])/,j.autolink=I(j.autolink).replace("scheme",j._scheme).replace("email",j._email).getRegex(),j._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,j.tag=I(j.tag).replace("comment",j._comment).replace("attribute",j._attribute).getRegex(),j._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,j._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,j._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,j.link=I(j.link).replace("label",j._label).replace("href",j._href).replace("title",j._title).getRegex(),j.reflink=I(j.reflink).replace("label",j._label).getRegex(),j.reflinkSearch=I(j.reflinkSearch,"g").replace("reflink",j.reflink).replace("nolink",j.nolink).getRegex(),j.normal=T({},j),j.pedantic=T({},j.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:I(/^!?\[(label)\]\((.*?)\)/).replace("label",j._label).getRegex(),reflink:I(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",j._label).getRegex()}),j.gfm=T({},j.normal,{escape:I(j.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\1;)1&e&&(i+=t),e>>=1,t+=t;return i+t};function V(t){return t.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function z(t){var e,i,n="",s=t.length;for(e=0;e.5&&(i="x"+i.toString(16)),n+="&#"+i+";";return n}var B=function(){function e(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||N,this.options.tokenizer=this.options.tokenizer||new A,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var e={block:P.normal,inline:F.normal};this.options.pedantic?(e.block=P.pedantic,e.inline=F.pedantic):this.options.gfm&&(e.block=P.gfm,e.inline=this.options.breaks?F.breaks:F.gfm),this.tokenizer.rules=e}e.lex=function(t,i){return new e(i).lex(t)},e.lexInline=function(t,i){return new e(i).inlineTokens(t)};var i,n,s=e.prototype;return s.lex=function(t){return t=t.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(t,this.tokens,!0),this.inline(this.tokens),this.tokens},s.blockTokens=function(t,e,i){var n,s,r,a;for(void 0===e&&(e=[]),void 0===i&&(i=!0),this.options.pedantic&&(t=t.replace(/^ +$/gm,""));t;)if(n=this.tokenizer.space(t))t=t.substring(n.raw.length),n.type&&e.push(n);else if(n=this.tokenizer.code(t,e))t=t.substring(n.raw.length),n.type?e.push(n):((a=e[e.length-1]).raw+="\n"+n.raw,a.text+="\n"+n.text);else if(n=this.tokenizer.fences(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.heading(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.nptable(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.hr(t))t=t.substring(n.raw.length),e.push(n);else if(n=this.tokenizer.blockquote(t))t=t.substring(n.raw.length),n.tokens=this.blockTokens(n.text,[],i),e.push(n);else if(n=this.tokenizer.list(t)){for(t=t.substring(n.raw.length),r=n.items.length,s=0;s0)for(;null!=(r=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(r[0].slice(r[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,r.index)+"["+M("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(r=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,r.index)+"["+M("a",r[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;t;)if(a||(o=""),a=!1,s=this.tokenizer.escape(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.tag(t,i,n))t=t.substring(s.raw.length),i=s.inLink,n=s.inRawBlock,e.push(s);else if(s=this.tokenizer.link(t))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,n)),e.push(s);else if(s=this.tokenizer.reflink(t,this.tokens.links))t=t.substring(s.raw.length),"link"===s.type&&(s.tokens=this.inlineTokens(s.text,[],!0,n)),e.push(s);else if(s=this.tokenizer.strong(t,l,o))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.em(t,l,o))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.codespan(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.br(t))t=t.substring(s.raw.length),e.push(s);else if(s=this.tokenizer.del(t))t=t.substring(s.raw.length),s.tokens=this.inlineTokens(s.text,[],i,n),e.push(s);else if(s=this.tokenizer.autolink(t,z))t=t.substring(s.raw.length),e.push(s);else if(i||!(s=this.tokenizer.url(t,z))){if(s=this.tokenizer.inlineText(t,n,V))t=t.substring(s.raw.length),o=s.raw.slice(-1),a=!0,e.push(s);else if(t){var h="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else t=t.substring(s.raw.length),e.push(s);return e},i=e,n=[{key:"rules",get:function(){return{block:P,inline:F}}}],null&&t(i.prototype,null),n&&t(i,n),e}(),H=n.defaults,U=function(t,e,i){if(t){var n;try{n=decodeURIComponent(u(i)).replace(p,"").toLowerCase()}catch(s){return null}if(0===n.indexOf("javascript:")||0===n.indexOf("vbscript:")||0===n.indexOf("data:"))return null}e&&!m.test(i)&&(i=function(t,e){f[" "+t]||(f[" "+t]=g.test(t)?t+"/":y(t,"/",!0));var i=-1===(t=f[" "+t]).indexOf(":");return"//"===e.substring(0,2)?i?e:t.replace(b,"$1")+e:"/"===e.charAt(0)?i?e:t.replace(_,"$1")+e:t+e}(e,i));try{i=encodeURI(i).replace(/%25/g,"%")}catch(s){return null}return i},X=v,q=function(){function t(t){this.options=t||H}var e=t.prototype;return e.code=function(t,e,i){var n=(e||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(t,n);null!=s&&s!==t&&(i=!0,t=s)}return t=t.replace(/\n$/,"")+"\n",n?'
    '+(i?t:X(t,!0))+"
    \n":"
    "+(i?t:X(t,!0))+"
    \n"},e.blockquote=function(t){return"
    \n"+t+"
    \n"},e.html=function(t){return t},e.heading=function(t,e,i,n){return this.options.headerIds?"'+t+"\n":""+t+"\n"},e.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},e.list=function(t,e,i){var n=e?"ol":"ul";return"<"+n+(e&&1!==i?' start="'+i+'"':"")+">\n"+t+"\n"},e.listitem=function(t){return"
  • "+t+"
  • \n"},e.checkbox=function(t){return" "},e.paragraph=function(t){return"

    "+t+"

    \n"},e.table=function(t,e){return e&&(e=""+e+""),"\n\n"+t+"\n"+e+"
    \n"},e.tablerow=function(t){return"\n"+t+"\n"},e.tablecell=function(t,e){var i=e.header?"th":"td";return(e.align?"<"+i+' align="'+e.align+'">':"<"+i+">")+t+"\n"},e.strong=function(t){return""+t+""},e.em=function(t){return""+t+""},e.codespan=function(t){return""+t+""},e.br=function(){return this.options.xhtml?"
    ":"
    "},e.del=function(t){return""+t+""},e.link=function(t,e,i){if(null===(t=U(this.options.sanitize,this.options.baseUrl,t)))return i;var n='"+i+""},e.image=function(t,e,i){if(null===(t=U(this.options.sanitize,this.options.baseUrl,t)))return i;var n=''+i+'":">")},e.text=function(t){return t},t}(),$=function(){function t(){}var e=t.prototype;return e.strong=function(t){return t},e.em=function(t){return t},e.codespan=function(t){return t},e.del=function(t){return t},e.html=function(t){return t},e.text=function(t){return t},e.link=function(t,e,i){return""+i},e.image=function(t,e,i){return""+i},e.br=function(){return""},t}(),W=function(){function t(){this.seen={}}var e=t.prototype;return e.serialize=function(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},e.getNextSafeSlug=function(t,e){var i=t,n=0;if(this.seen.hasOwnProperty(i)){n=this.seen[t];do{i=t+"-"+ ++n}while(this.seen.hasOwnProperty(i))}return e||(this.seen[t]=n,this.seen[i]=0),i},e.slug=function(t,e){void 0===e&&(e={});var i=this.serialize(t);return this.getNextSafeSlug(i,e.dryrun)},t}(),K=n.defaults,G=w,Y=function(){function t(t){this.options=t||K,this.options.renderer=this.options.renderer||new q,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $,this.slugger=new W}t.parse=function(e,i){return new t(i).parse(e)},t.parseInline=function(e,i){return new t(i).parseInline(e)};var e=t.prototype;return e.parse=function(t,e){void 0===e&&(e=!0);var i,n,s,r,a,o,l,c,h,u,d,p,m,f,g,b,_,y,v="",w=t.length;for(i=0;i0&&"text"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,m),h+=this.renderer.listitem(f,_,b);v+=this.renderer.list(h,d,p);continue;case"html":v+=this.renderer.html(u.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(h=u.tokens?this.parseInline(u.tokens):u.text;i+1An error occurred:

    "+J(l.message+"",!0)+"
    ";throw l}}return nt.options=nt.setOptions=function(t){return Q(nt.defaults,t),et(nt.defaults),nt},nt.getDefaults=tt,nt.defaults=it,nt.use=function(t){var e=Q({},t);if(t.renderer&&function(){var i=nt.defaults.renderer||new q,n=function(e){var n=i[e];i[e]=function(){for(var s=arguments.length,r=new Array(s),a=0;aAn error occurred:

    "+J(n.message+"",!0)+"
    ";throw n}},nt.Parser=Y,nt.parser=Y.parse,nt.Renderer=q,nt.TextRenderer=$,nt.Lexer=B,nt.lexer=B.lex,nt.Tokenizer=A,nt.Slugger=W,nt.parse=nt,nt}()},PqYM:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("HDdC"),s=i("D0XW"),r=i("Y7HM"),a=i("z+Ro");function o(t=0,e,i){let o=-1;return Object(r.a)(e)?o=Number(e)<1?1:Number(e):Object(a.a)(e)&&(i=e),Object(a.a)(i)||(i=s.a),new n.a(e=>{const n=Object(r.a)(t)?t:+t-i.now();return i.schedule(l,n,{index:0,period:o,subscriber:e})})}function l(t){const{index:e,period:i,subscriber:n}=t;if(n.next(e),!n.closed){if(-1===i)return n.complete();t.index=e+1,this.schedule(t,i)}}},QPBi:function(t,e,i){"use strict";i.d(e,"e",function(){return G}),i.d(e,"d",function(){return tt}),i.d(e,"c",function(){return it}),i.d(e,"b",function(){return C}),i.d(e,"a",function(){return j}),i.d(e,"f",function(){return N});var n=i("EUkQ"),s=i.n(n),r=i("IzEk"),a=i("lJxs"),o=i("7o/Q");class l{constructor(t,e){this.count=t,this.source=e}call(t,e){return e.subscribe(new c(t,this.count,this.source))}}class c extends o.a{constructor(t,e,i){super(t),this.count=e,this.source=i}error(t){if(!this.isStopped){const{source:e,count:i}=this;if(0===i)return super.error(t);i>-1&&(this.count=i-1),e.subscribe(this._unsubscribeAndRecycle())}}}var h=i("vkgz"),u=i("JIr8"),d=i("UXun"),p=i("eIep"),m=i("fXoL"),f=i("LRne"),g=i("Cfvw"),b=i("XNiG"),_=i("2Vo4"),y=i("cp0P"),v=i("itXk"),w=i("EY2u");class x{constructor(t){this.translations=t}getTranslation(t){return Object(f.a)(this.translations.get(t)||{})}}const C=new m.s("TRANSLOCO_LOADER");function k(t,e){return t&&t.hasOwnProperty(e)?t[e]:e.split(".").reduce((t,e)=>t&&t[e],t)}function S(t){return t?Array.isArray(t)?t.length:E(t)?Object.keys(t).length:t?t.length:0:0}function O(t){return"string"==typeof t}function E(t){return t&&"object"==typeof t&&!Array.isArray(t)}function A(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,e)=>0==e?t.toLowerCase():t.toUpperCase()).replace(/\s+|_|-|\//g,"")}function D(t){return null==t}function I(t){return!1===D(t)}function T(t){return t&&"string"==typeof t.scope}function R(t){return s()(t,{safe:!0})}const j=new m.s("TRANSLOCO_CONFIG",{providedIn:"root",factory:()=>({})}),L={defaultLang:"en",reRenderOnLangChange:!1,prodMode:!1,failedRetries:2,availableLangs:[],missingHandler:{logMissingKey:!0,useFallbackTranslation:!1,allowEmpty:!1},flatten:{aot:!1},interpolation:["{{","}}"]};function N(t=L){return Object.assign({},L,t)}const P=new m.s("TRANSLOCO_TRANSPILER"),F=new m.s("TRANSLOCO_MISSING_HANDLER");let M=(()=>{class t{handle(t,e){return e.missingHandler.logMissingKey&&!e.prodMode&&console.warn(`%c Missing translation for '${t}'`,"font-size: 12px; color: red"),t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m.Jb({token:t,factory:t.\u0275fac}),t})();const V=new m.s("TRANSLOCO_INTERCEPTOR");let z=(()=>{class t{preSaveTranslation(t,e){return t}preSaveTranslationKey(t,e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=m.Jb({token:t,factory:t.\u0275fac}),t})();const B=new m.s("TRANSLOCO_FALLBACK_STRATEGY");function H(t){if(!t)return"";const e=t.split("/");return e.pop(),e.join("/")}function U(t){return t?t.split("/").pop():""}function X(t,e,i="|"){if(O(t)){const n=t.split(i),s=n.pop();return s===e?[!0,n.toString()]:[!1,s]}return[!1,""]}function q(t,e){return(i=t)&&E(i.loader)?function(t,e){return Object.keys(t).reduce((i,n)=>(i[`${e}/${n}`]=t[n],i),{})}(t.loader,e):null;var i}function $(t){return{scope:H(t)||null,langName:U(t),lang:t}}function W(t,e,i,n){if(i){if(0==("function"==typeof i[t]))throw"You're using an inline loader but didn't provide a loader for "+t;return i[t]().then(t=>t.default?t.default:t)}return e.getTranslation(t,n)}let K,G=(()=>{class t{constructor(t,e,i,n,s,r){this.loader=t,this.parser=e,this.missingHandler=i,this.interceptor=n,this.userConfig=s,this.fallbackStrategy=r,this.translations=new Map,this.cache=new Map,this.firstFallbackLang=null,this.availableLangs=[],this.isResolvedMissingOnce=!1,this.events=new b.a,this.events$=this.events.asObservable(),this.failedCounter=0,this.failedLangs=new Set,this.loader||(this.loader=new x(this.translations)),K=this,this.mergedConfig=function(t,e){return Object.assign({},t,e,{missingHandler:Object.assign({},t.missingHandler,e.missingHandler),flatten:Object.assign({},t.flatten,e.flatten)})}(L,s),this.setAvailableLangs(this.mergedConfig.availableLangs),this.setFallbackLangForMissingTranslation(this.mergedConfig),this.setDefaultLang(this.mergedConfig.defaultLang),this.lang=new _.a(this.getDefaultLang()),this.langChanges$=this.lang.asObservable(),this.subscription=this.events$.subscribe(t=>{if("translationLoadSuccess"===t.type&&t.wasFailure){const e=U(t.payload.lang);this.setActiveLang(e)}})}get config(){return this.mergedConfig}getDefaultLang(){return this.defaultLang}setDefaultLang(t){this.defaultLang=t}getActiveLang(){return this.lang.getValue()}setActiveLang(t){return this.lang.next(t),this.parser.onLangChanged&&this.parser.onLangChanged(t),this}setAvailableLangs(t){this.availableLangs=t}getAvailableLangs(){return this.availableLangs}load(t,e={}){if(!1===this.cache.has(t)){let r;const o=this._isLangScoped(t),c=o?H(t):null;if(this.useFallbackTranslation(t)){const l=(i=this.loader,n=e.inlineLoader,s={scope:c},[t,o?`${c}/${this.firstFallbackLang}`:this.firstFallbackLang].map(t=>{const e=W(t,i,n,s);return Object(g.a)(e).pipe(Object(a.a)(e=>({translation:e,lang:t})))}));r=Object(y.a)(l)}else{const i=W(t,this.loader,e.inlineLoader,{scope:c});r=Object(g.a)(i)}const p=r.pipe(function(t=-1){return e=>e.lift(new l(t,e))}(this.config.failedRetries),Object(h.a)(e=>{Array.isArray(e)?e.forEach(e=>{this.handleSuccess(e.lang,e.translation),e.lang!==t&&this.cache.set(e.lang,Object(f.a)({}))}):this.handleSuccess(t,e)}),Object(u.a)(()=>this.handleFailure(t,e)),Object(d.a)(1));this.cache.set(t,p)}var i,n,s;return this.cache.get(t)}translate(t,e={},i=this.getActiveLang()){if(!t)return t;const{scope:n,resolveLang:s}=this.resolveLangAndScope(i);if(Array.isArray(t))return t.map(t=>this.translate(n?`${n}.${t}`:t,e,s));t=n?`${n}.${t}`:t;const r=this.getTranslation(s),a=r[t];return a?this.parser.transpile(a,e,r):this._handleMissingKey(t,a,e)}selectTranslate(t,e,i,n=!1){let s=null;const r=(i,s)=>this.load(i,s).pipe(Object(a.a)(()=>n?this.translateObject(t,e,i):this.translate(t,e,i)));if(D(i))return this.langChanges$.pipe(Object(p.a)(t=>r(t)));if(T(i)){const t=i;i=t.scope,s=q(t,t.scope)}if(this.isLang(i=i)||this.isScopeWithLang(i))return r(i);const o=i;return this.langChanges$.pipe(Object(p.a)(t=>r(`${o}/${t}`,{inlineLoader:s})))}isScopeWithLang(t){return this.isLang(U(t))}translateObject(t,e,i=this.getActiveLang()){if(O(t)||Array.isArray(t)){if(Array.isArray(t))return t.map(t=>this.translateObject(a?`${a}.${t}`:t,e,r));const{resolveLang:r,scope:a}=this.resolveLangAndScope(i),o=this.getTranslation(r),l=(n=this.getObjectByKey(o,t=a?`${a}.${t}`:t),s.a.unflatten(n,{safe:!0}));return 0===S(l)?this.translate(t,e,i):this.parser.transpile(l,e,o)}var n;const r=[];for(const[s,a]of this.getEntries(t))r.push(this.translateObject(s,a,i));return r}selectTranslateObject(t,e,i){if(O(t)||Array.isArray(t))return this.selectTranslate(t,e,i,!0);const[[n,s],...r]=this.getEntries(t);return this.selectTranslateObject(n,s,i).pipe(Object(a.a)(t=>{const e=[t];for(const[n,s]of r)e.push(this.translateObject(n,s,i));return e}))}getTranslation(t){if(t){if(this.isLang(t))return this.translations.get(t)||{};{const{scope:e,resolveLang:i}=this.resolveLangAndScope(t),n=this.translations.get(i)||{};return this.getObjectByKey(n,e)}}return this.translations}selectTranslation(t){let e=this.langChanges$;if(t){const i=U(t)!==t;e=this.isLang(t)||i?Object(f.a)(t):this.langChanges$.pipe(Object(a.a)(e=>`${t}/${e}`))}return e.pipe(Object(p.a)(t=>this.load(t).pipe(Object(a.a)(()=>this.getTranslation(t)))))}setTranslation(t,e=this.getActiveLang(),i={}){const n=Object.assign({},{merge:!0,emitChange:!0},i),s=H(e);let r=t;s&&(r=R({[this.getMappedScope(s)]:t}));const a=s?U(e):e,o=Object.assign({},n.merge&&this.getTranslation(a),r),l=this.mergedConfig.flatten.aot?o:R(o),c=this.interceptor.preSaveTranslation(l,a);this.translations.set(a,c),n.emitChange&&this.setActiveLang(this.getActiveLang())}setTranslationKey(t,e,i=this.getActiveLang()){const n=this.interceptor.preSaveTranslationKey(t,e,i),s=Object.assign({},this.getTranslation(i),{[t]:n});this.setTranslation(s,i)}setFallbackLangForMissingTranslation({fallbackLang:t}){const e=Array.isArray(t)?t[0]:t;this.useFallbackTranslation(e)&&t&&(this.firstFallbackLang=e)}_handleMissingKey(t,e,i){if(this.config.missingHandler.allowEmpty&&""===e)return"";if(this.useFallbackTranslation()&&!this.isResolvedMissingOnce){this.isResolvedMissingOnce=!0;const e=this.translate(t,i,this.firstFallbackLang);return this.isResolvedMissingOnce=!1,e}return this.missingHandler.handle(t,this.getMissingHandlerData(),i)}_isLangScoped(t){return-1===this.getAvailableLangsIds().indexOf(t)}isLang(t){return-1!==this.getAvailableLangsIds().indexOf(t)}_loadDependencies(t,e){const i=U(t);return this._isLangScoped(t)&&!this.isLoadedTranslation(i)?Object(v.b)(this.load(i),this.load(t,{inlineLoader:e})):this.load(t,{inlineLoader:e})}_completeScopeWithLang(t){return this._isLangScoped(t)&&!this.isLang(U(t))?`${t}/${this.getActiveLang()}`:t}_setScopeAlias(t,e){this.mergedConfig.scopeMapping||(this.mergedConfig.scopeMapping={}),this.mergedConfig.scopeMapping[t]=e}ngOnDestroy(){this.subscription.unsubscribe()}isLoadedTranslation(t){return S(this.getTranslation(t))}getAvailableLangsIds(){return O(this.getAvailableLangs()[0])?this.getAvailableLangs():this.getAvailableLangs().map(t=>t.id)}getMissingHandlerData(){return Object.assign({},this.config,{activeLang:this.getActiveLang(),availableLangs:this.availableLangs,defaultLang:this.defaultLang})}useFallbackTranslation(t){return this.config.missingHandler.useFallbackTranslation&&t!==this.firstFallbackLang}handleSuccess(t,e){this.setTranslation(e,t,{emitChange:!1}),this.failedCounter=0,this.events.next({wasFailure:!!this.failedLangs.size,type:"translationLoadSuccess",payload:$(t)}),this.failedLangs.forEach(t=>this.cache.delete(t)),this.failedLangs.clear()}handleFailure(t,e){const i=t.split("/"),n=(e.fallbackLangs||this.fallbackStrategy.getNextLangs(t))[this.failedCounter];if(this.failedLangs.add(t),this.cache.has(n))return this.handleSuccess(n,this.getTranslation(n)),w.a;if(!n||n===i[i.length-1]){let t="Unable to load translation and all the fallback languages";throw i.length>1&&(t+=", did you misspelled the scope name?"),new Error(t)}let s=n;return i.length>1&&(i[i.length-1]=n,s=i.join("/")),this.failedCounter++,this.events.next({type:"translationLoadFailure",payload:$(t)}),this.load(s)}getMappedScope(t){const{scopeMapping:e={}}=this.config;return e[t]||A(t)}resolveLangAndScope(t){let e,i=t;if(this._isLangScoped(t)){const n=U(t),s=this.isLang(n);i=s?n:this.getActiveLang(),e=this.getMappedScope(s?H(t):t)}return{scope:e,resolveLang:i}}getObjectByKey(t,e){const i={},n=e+".";for(const s in t)s.startsWith(n)&&(i[s.replace(n,"")]=t[s]);return i}getEntries(t){return t instanceof Map?t.entries():Object.entries(t)}}return t.\u0275fac=function(e){return new(e||t)(m.Xb(C,8),m.Xb(P),m.Xb(F),m.Xb(V),m.Xb(j),m.Xb(B))},t.\u0275prov=m.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t.ngInjectableDef=Object(m.U)({factory:function(){return new t(Object(m.X)(C,8),Object(m.X)(P),Object(m.X)(F),Object(m.X)(V),Object(m.X)(j),Object(m.X)(B))},token:t,providedIn:"root"}),t})();const Y=new m.s("TRANSLOCO_LANG"),Q=(new m.s("TRANSLOCO_LOADING_TEMPLATE"),new m.s("TRANSLOCO_SCOPE"));class Z{constructor(){this.initialized=!1}resolve({inline:t,provider:e,active:i}={inline:void 0,provider:void 0,active:void 0}){let n=i;if(this.initialized)return n=i,n;if(e){const[t,i]=X(e,"static");n=i}if(t){const[e,i]=X(t,"static");n=i}return this.initialized=!0,n}resolveLangBasedOnScope(t){return H(t)?U(t):t}resolveLangPath(t,e){return e?`${e}/${t}`:t}}class J{constructor(t){this.translocoService=t}resolve({inline:t,provider:e}={inline:void 0,provider:void 0}){if(t)return t;if(e){if(T(e)){const{scope:t,alias:i=A(t)}=e;return this.translocoService._setScopeAlias(t,i),t}return e}}}let tt=(()=>{class t{constructor(t,e,i,n){this.translocoService=t,this.providerScope=e,this.providerLang=i,this.cdr=n,this.subscription=null,this.lastValue="",this.langResolver=new Z,this.scopeResolver=new J(this.translocoService),this.listenToLangChange=function(t,e){const[i]=X(e,"static");return!1===i&&t.config.reRenderOnLangChange}(this.translocoService,this.providerLang)}transform(t,e,i){if(!t)return t;const n=e?`${t}${JSON.stringify(e)}`:t;return n===this.lastKey||(this.lastKey=n,this.subscription&&this.subscription.unsubscribe(),this.subscription=this.translocoService.langChanges$.pipe(Object(p.a)(t=>{const e=this.langResolver.resolve({inline:i,provider:this.providerLang,active:t});return Array.isArray(this.providerScope)?Object(y.a)(this.providerScope.map(t=>this.resolveScope(e,t))):this.resolveScope(e,this.providerScope)}),(s=this.listenToLangChange,s?t=>t:Object(r.a)(1))).subscribe(()=>this.updateValue(t,e))),this.lastValue;var s}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateValue(t,e){const i=this.langResolver.resolveLangBasedOnScope(this.path);this.lastValue=this.translocoService.translate(t,e,i),this.cdr.markForCheck()}resolveScope(t,e){let i=this.scopeResolver.resolve({inline:void 0,provider:e});this.path=this.langResolver.resolveLangPath(t,i);const n=q(e,i);return this.translocoService._loadDependencies(this.path,n)}}return t.\u0275fac=function(e){return new(e||t)(m.Nb(G),m.Nb(Q,8),m.Nb(Y,8),m.Zb())},t.\u0275pipe=m.Mb({name:"transloco",type:t,pure:!1}),t})();const et=[{provide:P,useClass:class{constructor(t){this.interpolationMatcher=function(t){const[e,i]=t&&t.interpolation?t.interpolation:L.interpolation;return new RegExp(`${e}(.*?)${i}`,"g")}(t)}transpile(t,e={},i){return O(t)?t.replace(this.interpolationMatcher,(t,n)=>(n=n.trim(),I(e[n])?e[n]:I(i[n])?this.transpile(i[n],e,i):"")):(e&&(E(t)?t=this.handleObject(t,e,i):Array.isArray(t)&&(t=this.handleArray(t,e,i))),t)}handleObject(t,e={},i){let n=t;return Object.keys(e).forEach(t=>{const s=k(n,t),r=k(e,t),a=this.transpile(s,r,i);n=function(t,e,i){t=Object.assign({},t);const n=e.split("."),s=n.length-1;return n.reduce((t,e,n)=>(t[e]=n===s?i:Array.isArray(t[e])?t[e].slice():Object.assign({},t[e]),t&&t[e]),t),t}(n,t,a)}),n}handleArray(t,e={},i){return t.map(t=>this.transpile(t,e,i))}},deps:[j]},{provide:F,useClass:M},{provide:V,useClass:z},{provide:B,useClass:class{constructor(t){this.userConfig=t}getNextLangs(t){const e=this.userConfig.fallbackLang;if(!e)throw new Error("When using the default fallback, a fallback language must be provided in the config!");return Array.isArray(e)?e:[e]}},deps:[j]}];let it=(()=>{class t{}return t.\u0275mod=m.Lb({type:t}),t.\u0275inj=m.Kb({factory:function(e){return new(e||t)},providers:[et]}),t})();new m.s("TRANSLOCO_TEST_LANGS - Available testing languages"),new m.s("TRANSLOCO_TEST_OPTIONS - Testing options")},Qu3c:function(t,e,i){"use strict";i.d(e,"a",function(){return k}),i.d(e,"b",function(){return O});var n=i("rDax"),s=i("u47x"),r=i("ofXK"),a=i("fXoL"),o=i("FKr1"),l=i("vxfF"),c=i("8LU1"),h=i("FtGj"),u=i("0MNC"),d=i("nLfN"),p=i("+rOU"),m=i("XNiG"),f=i("1G5W"),g=i("IzEk"),b=i("R0Ic"),_=i("cH1L");const y={tooltipState:Object(b.m)("state",[Object(b.j)("initial, void, hidden",Object(b.k)({opacity:0,transform:"scale(0)"})),Object(b.j)("visible",Object(b.k)({transform:"scale(1)"})),Object(b.l)("* => visible",Object(b.e)("200ms cubic-bezier(0, 0, 0.2, 1)",Object(b.g)([Object(b.k)({opacity:0,transform:"scale(0)",offset:0}),Object(b.k)({opacity:.5,transform:"scale(0.99)",offset:.5}),Object(b.k)({opacity:1,transform:"scale(1)",offset:1})]))),Object(b.l)("* => hidden",Object(b.e)("100ms cubic-bezier(0, 0, 0.2, 1)",Object(b.k)({opacity:0})))])},v=Object(d.f)({passive:!0}),w=new a.s("mat-tooltip-scroll-strategy"),x={provide:w,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},C=new a.s("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let k=(()=>{class t{constructor(t,e,i,n,s,r,a,o,l,c,u){this._overlay=t,this._elementRef=e,this._scrollDispatcher=i,this._viewContainerRef=n,this._ngZone=s,this._platform=r,this._ariaDescriber=a,this._focusMonitor=o,this._dir=c,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 m.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=l,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(c.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?String(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(f.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,i])=>{t.removeEventListener(e,i,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(S,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Object(f.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(f.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(f.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(),i=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),i.main),Object.assign(Object.assign({},e.fallback),i.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e||"below"==e?i={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={originX:"end",originY:"center"});const{x:n,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:n,originY:s}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let i;"above"==e?i={overlayX:"center",overlayY:"bottom"}:"below"==e?i={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?i={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(i={overlayX:"start",overlayY:"center"});const{x:n,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:n,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Object(g.a)(1),Object(f.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,i=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),"on"!==t&&e.draggable||(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(n.c),a.Nb(a.l),a.Nb(l.c),a.Nb(a.R),a.Nb(a.B),a.Nb(d.a),a.Nb(s.c),a.Nb(s.h),a.Nb(w),a.Nb(_.b,8),a.Nb(C,8))},t.\u0275dir=a.Ib({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})(),S=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new m.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)(a.Nb(a.h),a.Nb(u.a))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&a.bc("click",function(){return e._handleBodyInteraction()},!1,a.tc),2&t&&a.Ac("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){if(1&t&&(a.Tb(0,"div",0),a.bc("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),a.gc(1,"async"),a.Ec(2),a.Sb()),2&t){let t=null;a.Fb("mat-tooltip-handset",null==(t=a.hc(1,5,e._isHandset))?null:t.matches),a.lc("ngClass",e.tooltipClass)("@state",e._visibility),a.Cb(2),a.Fc(e.message)}},directives:[r.k],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})(),O=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},providers:[x],imports:[[s.a,r.c,n.f,o.i],o.i,l.b]}),t})()},R0Ic:function(t,e,i){"use strict";i.d(e,"a",function(){return r}),i.d(e,"b",function(){return n}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return g}),i.d(e,"e",function(){return o}),i.d(e,"f",function(){return p}),i.d(e,"g",function(){return u}),i.d(e,"h",function(){return m}),i.d(e,"i",function(){return l}),i.d(e,"j",function(){return h}),i.d(e,"k",function(){return c}),i.d(e,"l",function(){return d}),i.d(e,"m",function(){return a}),i.d(e,"n",function(){return b}),i.d(e,"o",function(){return _});class n{}class s{}const r="*";function a(t,e){return{type:7,name:t,definitions:e,options:{}}}function o(t,e=null){return{type:4,styles:e,timings:t}}function l(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function h(t,e,i){return{type:0,name:t,styles:e,options:i}}function u(t){return{type:5,steps:t}}function d(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function p(t=null){return{type:9,options:t}}function m(t,e,i=null){return{type:11,selector:t,animation:e,options:i}}function f(t){Promise.resolve(null).then(t)}class g{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){f(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class b{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,i=0,n=0;const s=this.players.length;0==s?f(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++i==s&&this._onDestroy()}),t.onStart(()=>{++n==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 i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){const t=this.players.reduce((t,e)=>null===t||e.totalTime>t.totalTime?e:t,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const _="!"},R1ws:function(t,e,i){"use strict";i.d(e,"a",function(){return Te}),i.d(e,"b",function(){return je});var n=i("fXoL"),s=i("jhN1"),r=i("R0Ic");function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function o(t){switch(t.length){case 0:return new r.d;case 1:return t[0];default:return new r.n(t)}}function l(t,e,i,n,s={},a={}){const o=[],l=[];let c=-1,h=null;if(n.forEach(t=>{const i=t.offset,n=i==c,u=n&&h||{};Object.keys(t).forEach(i=>{let n=i,l=t[i];if("offset"!==i)switch(n=e.normalizePropertyName(n,o),l){case r.o:l=s[i];break;case r.a:l=a[i];break;default:l=e.normalizeStyleValue(i,n,l,o)}u[n]=l}),n||l.push(u),h=u,c=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return l}function c(t,e,i,n){switch(e){case"start":t.onStart(()=>n(i&&h(i,"start",t)));break;case"done":t.onDone(()=>n(i&&h(i,"done",t)));break;case"destroy":t.onDestroy(()=>n(i&&h(i,"destroy",t)))}}function h(t,e,i){const n=i.totalTime,s=u(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==n?t.totalTime:n,!!i.disabled),r=t._data;return null!=r&&(s._data=r),s}function u(t,e,i,n,s="",r=0,a){return{element:t,triggerName:e,fromState:i,toState:n,phaseName:s,totalTime:r,disabled:!!a}}function d(t,e,i){let n;return t instanceof Map?(n=t.get(e),n||t.set(e,n=i)):(n=t[e],n||(n=t[e]=i)),n}function p(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let m=(t,e)=>!1,f=(t,e)=>!1,g=(t,e,i)=>[];const b=a();(b||"undefined"!=typeof Element)&&(m=(t,e)=>t.contains(e),f=(()=>{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,i)=>e.apply(t,[i]):f}})(),g=(t,e,i)=>{let n=[];if(i){const i=t.querySelectorAll(e);for(let t=0;t{const n=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[n]=t[i]}),e}let S=(()=>{class t{validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,n,s,a=[],o){return new r.d(i,n)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),O=(()=>{class t{}return t.NOOP=new S,t})();const E="ng-enter",A="ng-leave",D="ng-trigger",I=".ng-trigger",T="ng-animating",R=".ng-animating";function j(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:L(parseFloat(e[1]),e[2])}function L(t,e){switch(e){case"s":return 1e3*t;default:return t}}function N(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let n,s=0,r="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};n=L(parseFloat(i[1]),i[2]);const a=i[3];null!=a&&(s=L(parseFloat(a),i[4]));const o=i[5];o&&(r=o)}else n=t;if(!i){let i=!1,r=e.length;n<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:n,delay:s,easing:r}}(t,e,i)}function P(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function F(t,e,i={}){if(e)for(let n in t)i[n]=t[n];else P(t,i);return i}function M(t,e,i){return i?e+":"+i+";":""}function V(t){let e="";for(let i=0;i{const s=K(n);i&&!i.hasOwnProperty(n)&&(i[n]=t.style[s]),t.style[s]=e[n]}),a()&&V(t))}function B(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=K(e);t.style[i]=""}),a()&&V(t))}function H(t){return Array.isArray(t)?1==t.length?t[0]:Object(r.i)(t):t}const U=new RegExp("{{\\s*(.+?)\\s*}}","g");function X(t){let e=[];if("string"==typeof t){let i;for(;i=U.exec(t);)e.push(i[1]);U.lastIndex=0}return e}function q(t,e,i){const n=t.toString(),s=n.replace(U,(t,n)=>{let s=e[n];return e.hasOwnProperty(n)||(i.push("Please provide a value for the animation param "+n),s=""),s.toString()});return s==n?t:s}function $(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const W=/-+([a-z0-9])/g;function K(t){return t.replace(W,(...t)=>t[1].toUpperCase())}function G(t,e){return 0===t||0===e}function Y(t,e,i){const n=Object.keys(i);if(n.length&&e.length){let r=e[0],a=[];if(n.forEach(t=>{r.hasOwnProperty(t)||a.push(t),r[t]=i[t]}),a.length)for(var s=1;sfunction(t,e,i){if(":"==t[0]){const n=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,i);if("function"==typeof n)return void e.push(n);t=n}const n=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==n||n.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const s=n[1],r=n[2],a=n[3];e.push(nt(s,a)),"<"!=r[0]||s==J&&a==J||e.push(nt(a,s))}(t,i,e)):i.push(t),i}const et=new Set(["true","1"]),it=new Set(["false","0"]);function nt(t,e){const i=et.has(t)||it.has(t),n=et.has(e)||it.has(e);return(s,r)=>{let a=t==J||t==s,o=e==J||e==r;return!a&&i&&"boolean"==typeof s&&(a=s?et.has(t):it.has(t)),!o&&n&&"boolean"==typeof r&&(o=r?et.has(e):it.has(e)),a&&o}}const st=new RegExp("s*:selfs*,?","g");function rt(t,e,i){return new at(t).build(e,i)}class at{constructor(t){this._driver=t}build(t,e){const i=new ot(e);return this._resetContextStyleTimingState(i),Q(this,H(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=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 i=t,n=i.name;n.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,s.push(this.visitState(i,e))}),i.name=n}else if(1==t.type){const s=this.visitTransition(t,e);i+=s.queryCount,n+=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:i,depCount:n,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,r=n||{};if(i.styles.forEach(t=>{if(lt(t)){const e=t;Object.keys(e).forEach(t=>{X(e[t]).forEach(t=>{r.hasOwnProperty(t)||s.add(t)})})}}),s.size){const i=$(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=Q(this,H(t.animation),e);return{type:1,matchers:tt(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:ct(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>Q(this,t,e)),options:ct(t.options)}}visitGroup(t,e){const i=e.currentTime;let n=0;const s=t.steps.map(t=>{e.currentTime=i;const s=Q(this,t,e);return n=Math.max(n,e.currentTime),s});return e.currentTime=n,{type:3,steps:s,options:ct(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return ht(N(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=ht(0,0,"");return t.dynamic=!0,t.strValue=n,t}return i=i||N(n,e),ht(i.duration,i.delay,i.easing)}(t.timings,e.errors);let n;e.currentAnimateTimings=i;let s=t.styles?t.styles:Object(r.k)({});if(5==s.type)n=this.visitKeyframes(s,e);else{let s=t.styles,a=!1;if(!s){a=!0;const t={};i.easing&&(t.easing=i.easing),s=Object(r.k)(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(s,e);o.isEmptyStep=a,n=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==r.a?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let n=!1,s=null;return i.forEach(t=>{if(lt(t)){const e=t,i=e.easing;if(i&&(s=i,delete e.easing),!n)for(let t in e)if(e[t].toString().indexOf("{{")>=0){n=!0;break}}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:n,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],a=r[i];let o=!0;a&&(s!=n&&s>=a.startTime&&n<=a.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${a.startTime}ms" and "${a.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${n}ms"`),o=!1),s=a.startTime),o&&(r[i]={startTime:s,endTime:n}),e.options&&function(t,e,i){const n=e.params||{},s=X(t);s.length&&s.forEach(t=>{n.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let n=0;const s=[];let r=!1,a=!1,o=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(lt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(lt(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),c=0;return null!=l&&(n++,c=i.offset=l),a=a||c<0||c>1,r=r||c0&&n{const r=h>0?n==u?1:h*n:s[n],a=r*m;e.currentTime=d+p.delay+a,p.duration=a,this._validateStyleAst(t,e),t.offset=r,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:Q(this,H(t.animation),e),options:ct(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:ct(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ct(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,n=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(st,"")),[t=t.replace(/@\*/g,I).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,R),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,d(e.collectedStyles,e.currentQuerySelector,{});const a=Q(this,H(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:r,animation:a,originalSelector:t.selector,options:ct(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:N(t.timings,e.errors,!0);return{type:12,animation:Q(this,H(t.animation),e),timings:i,options:null}}}class ot{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 lt(t){return!Array.isArray(t)&&"object"==typeof t}function ct(t){var e;return t?(t=P(t)).params&&(t.params=(e=t.params)?P(e):null):t={},t}function ht(t,e,i){return{duration:t,delay:e,easing:i}}function ut(t,e,i,n,s,r,a=null,o=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:n,duration:s,delay:r,totalTime:s+r,easing:a,subTimeline:o}}class dt{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 i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const pt=new RegExp(":enter","g"),mt=new RegExp(":leave","g");function ft(t,e,i,n,s,r={},a={},o,l,c=[]){return(new gt).buildKeyframes(t,e,i,n,s,r,a,o,l,c)}class gt{buildKeyframes(t,e,i,n,s,r,a,o,l,c=[]){l=l||new dt;const h=new _t(t,e,l,n,s,c,[]);h.options=o,h.currentTimeline.setStyles([r],null,h.errors,o),Q(this,i,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(a).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([a],null,h.errors,o)}return u.length?u.map(t=>t.buildKeyframes()):[ut(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,n,n.options);s!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let n=e.currentTimeline.currentTime;const s=null!=i.duration?j(i.duration):null,r=null!=i.delay?j(i.delay):null;return 0!==s&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,s,r);n=Math.max(n,i.duration+i.delay)}),n}visitReference(t,e){e.updateOptions(t.options,!0),Q(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let n=e;const s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),null!=s.delay)){6==n.previousNode.type&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=bt);const t=j(s.delay);n.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>Q(this,t,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let n=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?j(t.options.delay):0;t.steps.forEach(r=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),Q(this,r,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return N(e.params?q(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,r=e.createSubContext().currentTimeline;r.easing=i.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(n+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?j(n.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=bt);let r=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=a.length;let o=null;a.forEach((i,n)=>{e.currentQueryIndex=n;const a=e.createSubContext(t.options,i);s&&a.delayNextStep(s),i===e.element&&(o=a.currentTimeline),Q(this,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,a.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),o&&(e.currentTimeline.mergeTimelineCollectedStyles(o),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,n=e.currentTimeline,s=t.timings,r=Math.abs(s.duration),a=r*(e.currentQueryTotal-1);let o=r*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":o=a-o;break;case"full":o=i.currentStaggerTime}const l=e.currentTimeline;o&&l.delayNextStep(o);const c=l.currentTime;Q(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-c+(n.startTime-i.currentTimeline.startTime)}}const bt={};class _t{constructor(t,e,i,n,s,r,a,o){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=r,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=bt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new yt(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let n=this.options;null!=i.duration&&(n.duration=j(i.duration)),null!=i.delay&&(n.delay=j(i.delay));const s=i.params;if(s){let t=n.params;t||(t=this.options.params={}),Object.keys(s).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=q(s[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const n=e||this.element,s=new _t(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||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=bt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const n={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},s=new vt(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,r){let a=[];if(n&&a.push(this.element),t.length>0){t=(t=t.replace(pt,"."+this._enterClassName)).replace(mt,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),a.push(...e)}return s||0!=a.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),a}}class yt{constructor(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,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 yt(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,i,n){e&&(this._previousKeyframe.easing=e);const s=n&&n.params||{},a=function(t,e){const i={};let n;return t.forEach(t=>{"*"===t?(n=n||Object.keys(e),n.forEach(t=>{i[t]=r.a})):F(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(t=>{const e=q(a[t],s,i);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 i=this._styleSummary[e],n=t._styleSummary[e];(!i||n.time>i.time)&&this._updateStyle(e,n.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let n=[];this._keyframes.forEach((s,a)=>{const o=F(s,!0);Object.keys(o).forEach(i=>{const n=o[i];n==r.o?t.add(i):n==r.a&&e.add(i)}),i||(o.offset=a/this.duration),n.push(o)});const s=t.size?$(t.values()):[],a=e.size?$(e.values()):[];if(i){const t=n[0],e=P(t);t.offset=0,e.offset=1,n=[t,e]}return ut(this.element,n,s,a,this.duration,this.startTime,this.easing,!1)}}class vt extends yt{constructor(t,e,i,n,s,r,a=!1){super(t,e,r.delay),this.element=e,this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=a,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:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],r=i+e,a=e/r,o=F(t[0],!1);o.offset=0,s.push(o);const l=F(t[0],!1);l.offset=wt(a),s.push(l);const c=t.length-1;for(let n=1;n<=c;n++){let a=F(t[n],!1);a.offset=wt((e+a.offset*i)/r),s.push(a)}i=r,e=0,n="",t=s}return ut(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}}function wt(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class xt{}class Ct extends xt{normalizePropertyName(t,e){return K(t)}normalizeStyleValue(t,e,i,n){let s="";const r=i.toString().trim();if(kt[e]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&n.push(`Please provide a CSS unit value for ${t}:${i}`)}return r+s}}const kt=(()=>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 St(t,e,i,n,s,r,a,o,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:i,fromStyles:r,toState:n,toStyles:a,timelines:o,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const Ot={};class Et{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return function(t,e,i,n,s){return t.some(t=>t(e,i,n,s))}(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){const n=this._stateStyles["*"],s=this._stateStyles[t],r=n?n.buildStyles(e,i):{};return s?s.buildStyles(e,i):r}build(t,e,i,n,s,r,a,o,l,c){const h=[],u=this.ast.options&&this.ast.options.params||Ot,p=this.buildStyles(i,a&&a.params||Ot,h),m=o&&o.params||Ot,f=this.buildStyles(n,m,h),g=new Set,b=new Map,_=new Map,y="void"===n,v={params:Object.assign(Object.assign({},u),m)},w=c?[]:ft(t,e,this.ast.animation,s,r,p,f,v,l,h);let x=0;if(w.forEach(t=>{x=Math.max(t.duration+t.delay,x)}),h.length)return St(e,this._triggerName,i,n,y,p,f,[],[],b,_,x,h);w.forEach(t=>{const i=t.element,n=d(b,i,{});t.preStyleProps.forEach(t=>n[t]=!0);const s=d(_,i,{});t.postStyleProps.forEach(t=>s[t]=!0),i!==e&&g.add(i)});const C=$(g.values());return St(e,this._triggerName,i,n,y,p,f,w,C,b,_,x)}}class At{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},n=P(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(n[e]=i)}),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=q(r,n,e)),i[t]=r})}}),i}}class Dt{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new At(t.style,t.options&&t.options.params||{})}),It(this.states,"true","1"),It(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new Et(t,e,this.states))}),this.fallbackTransition=new Et(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,i,n){return this.transitionFactories.find(s=>s.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function It(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Tt=new dt;class Rt{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],n=rt(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: "+i.join("\n"));this._animations[t]=n}_buildPlayer(t,e,i){const n=t.element,s=l(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const n=[],s=this._animations[t];let a;const l=new Map;if(s?(a=ft(this._driver,e,s,E,A,{},{},i,Tt,n),a.forEach(t=>{const e=d(l,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(n.push("The requested animation doesn't exist or has already been destroyed"),a=[]),n.length)throw new Error("Unable to create the animation due to the following errors: "+n.join("\n"));l.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,r.a)})});const c=o(a.map(t=>{const e=l.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=c,c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,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,i,n){const s=u(e,"","","");return c(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if("register"==i)return void this.register(t,n[0]);if("create"==i)return void this.create(t,e,n[0]||{});const s=this._getPlayer(t);switch(i){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(n[0]));break;case"destroy":this.destroy(t)}}}const jt="ng-animate-queued",Lt="ng-animate-disabled",Nt=".ng-animate-disabled",Pt=[],Ft={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Mt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Vt{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){const e=P(t);delete e.value,this.options=e}else this.options={};var n;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(i=>{null==t[i]&&(t[i]=e[i])})}}}const zt="void",Bt=new Vt(zt);class Ht{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Gt(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=i)&&"done"!=s)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var s;const r=d(this._elementListeners,t,[]),a={name:e,phase:i,callback:n};r.push(a);const o=d(this._engine.statesByElement,t,{});return o.hasOwnProperty(e)||(Gt(t,D),Gt(t,"ng-trigger-"+e),o[e]=Bt),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(a);t>=0&&r.splice(t,1),this._triggers[e]||delete o[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,i,n=!0){const s=this._getTrigger(e),r=new Xt(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(Gt(t,D),Gt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));let o=a[e];const l=new Vt(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&o&&l.absorbOptions(o.options),a[e]=l,o||(o=Bt),l.value!==zt&&o.value===l.value){if(!function(t,e){const i=Object.keys(t),n=Object.keys(e);if(i.length!=n.length)return!1;for(let s=0;s{B(t,i),z(t,n)})}return}const c=d(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=s.matchTransition(o.value,l.value,t,l.params),u=!1;if(!h){if(!n)return;h=s.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:o,toState:l,player:r,isFallbackTransition:u}),u||(Gt(t,jt),r.onStart(()=>{Yt(t,jt)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(r);t>=0&&i.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,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 i=this._engine.driver.query(t,I,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,n){const s=this._engine.statesByElement.get(t);if(s){const r=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,zt,n);i&&r.push(i)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&o(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const n=e.name;if(i.has(n))return;i.add(n);const s=this._triggers[n].fallbackTransition,r=this._engine.statesByElement.get(t)[n]||Bt,a=new Vt(zt),o=new Xt(this.id,n,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:s,fromState:r,toState:a,player:o,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)n=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{const n=t.__ng_removed;n&&n!==Ft||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Gt(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const n=i.player;if(n.destroyed)return;const s=i.element,r=this._elementListeners.get(s);r&&r.forEach(e=>{if(e.name==i.triggerName){const n=u(s,i.triggerName,i.fromState.value,i.toState.value);n._data=t,c(i.player,e.phase,n,e.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,n=e.transition.ast.depCount;return 0==i||0==n?i-n: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 Ut{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(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 i=new Ht(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let n=!1;for(let s=i;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),n=!0;break}n||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let n=0;n=0&&this.collectedLeaveElements.splice(t,1)}if(t){const n=this._fetchNamespace(t);n&&n.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Gt(t,Lt)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Yt(t,Lt))}removeNode(t,e,i,n){if(qt(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,n)}}else this._onRemovalComplete(e,n)}markElementAsRemoved(t,e,i,n){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,n,s){return qt(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,I,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,R,!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 o(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=Ft,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Nt)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Nt,!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 i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?o(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 i=new dt,n=[],s=new Map,a=[],l=new Map,c=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 i=0;i{const i=E+b++;g.set(e,i),t.forEach(t=>Gt(t,i))});const _=[],y=new Set,v=new Set;for(let r=0;ry.add(t)):v.add(t))}const w=new Map,x=Kt(m,Array.from(y));x.forEach((t,e)=>{const i=A+b++;w.set(e,i),t.forEach(t=>Gt(t,i))}),t.push(()=>{f.forEach((t,e)=>{const i=g.get(e);t.forEach(t=>Yt(t,i))}),x.forEach((t,e)=>{const i=w.get(e);t.forEach(t=>Yt(t,i))}),_.forEach(t=>{this.processLeaveNode(t)})});const C=[],k=[];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(C.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),o=w.get(s),u=g.get(s),m=this._buildInstruction(t,i,u,o,r);if(m.errors&&m.errors.length)k.push(m);else{if(r)return e.onStart(()=>B(s,m.fromStyles)),e.onDestroy(()=>z(s,m.toStyles)),void n.push(e);if(t.isFallbackTransition)return e.onStart(()=>B(s,m.fromStyles)),e.onDestroy(()=>z(s,m.toStyles)),void n.push(e);m.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(s,m.timelines),a.push({instruction:m,player:e,element:s}),m.queriedElements.forEach(t=>d(l,t,[]).push(e)),m.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=c.get(e);t||c.set(e,t=new Set),i.forEach(e=>t.add(e))}}),m.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let n=h.get(e);n||h.set(e,n=new Set),i.forEach(t=>n.add(t))})}});if(k.length){const t=[];k.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),C.forEach(t=>t.destroy()),this.reportError(t)}const S=new Map,O=new Map;a.forEach(t=>{const e=t.element;i.has(e)&&(O.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,S))}),n.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{d(S,e,[]).push(t),t.destroy()})});const D=_.filter(t=>Jt(t,c,h)),I=new Map;Wt(I,this.driver,v,h,r.a).forEach(t=>{Jt(t,c,h)&&D.push(t)});const T=new Map;f.forEach((t,e)=>{Wt(T,this.driver,new Set(t),c,r.o)}),D.forEach(t=>{const e=I.get(t),i=T.get(t);I.set(t,Object.assign(Object.assign({},e),i))});const j=[],L=[],N={};a.forEach(t=>{const{element:e,player:r,instruction:a}=t;if(i.has(e)){if(u.has(e))return r.onDestroy(()=>z(e,a.toStyles)),r.disabled=!0,r.overrideTotalTime(a.totalTime),void n.push(r);let t=N;if(O.size>1){let i=e;const n=[];for(;i=i.parentNode;){const e=O.get(i);if(e){t=e;break}n.push(i)}n.forEach(e=>O.set(e,t))}const i=this._buildAnimation(r.namespaceId,a,S,s,T,I);if(r.setRealPlayer(i),t===N)j.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=o(e)),n.push(r)}}else B(e,a.fromStyles),r.onDestroy(()=>z(e,a.toStyles)),L.push(r),u.has(e)&&n.push(r)}),L.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const i=o(e);t.setRealPlayer(i)}}),n.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(Yt(t,A),e&&e.hasAnimation)continue;let i=[];if(l.size){let e=l.get(t);e&&e.length&&i.push(...e);let n=this.driver.query(t,R,!0);for(let t=0;t!t.destroyed);n.length?Qt(this,t,n):this.processLeaveNode(t)}return _.length=0,j.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),j}elementContainsData(t,e){let i=!1;const n=e.__ng_removed;return n&&n.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,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||s==zt;e.forEach(e=>{e.queued||(t||e.triggerName==n)&&r.push(e)})}}return(i||n)&&(r=r.filter(t=>!(i&&i!=t.namespaceId||n&&n!=t.triggerName))),r}_beforeAnimationBuild(t,e,i){const n=e.element,s=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const a of e.timelines){const t=a.element,o=t!==n,l=d(i,t,[]);this._getPreviousPlayers(t,o,s,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}B(n,e.fromStyles)}_buildAnimation(t,e,i,n,s,a){const c=e.triggerName,h=e.element,u=[],p=new Set,m=new Set,f=e.timelines.map(e=>{const o=e.element;p.add(o);const d=o.__ng_removed;if(d&&d.removedBeforeQueried)return new r.d(e.duration,e.delay);const f=o!==h,g=function(t){const e=[];return Zt(t,e),e}((i.get(o)||Pt).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===o),b=s.get(o),_=a.get(o),y=l(0,this._normalizer,0,e.keyframes,b,_),v=this._buildPlayer(e,y,g);if(e.subTimeline&&n&&m.add(o),f){const e=new Xt(t,c,o);e.setRealPlayer(v),u.push(e)}return v});u.forEach(t=>{d(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let n;if(t instanceof Map){if(n=t.get(e),n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&t.delete(e)}}else if(n=t[e],n){if(n.length){const t=n.indexOf(i);n.splice(t,1)}0==n.length&&delete t[e]}return n}(this.playersByQueriedElement,t.element,t))}),p.forEach(t=>Gt(t,T));const g=o(f);return g.onDestroy(()=>{p.forEach(t=>Yt(t,T)),z(h,e.toStyles)}),m.forEach(t=>{d(n,t,[]).push(g)}),g}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new r.d(t.duration,t.delay)}}class Xt{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,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(i=>c(t,e,void 0,i))}),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 qt(t){return t&&1===t.nodeType}function $t(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function Wt(t,e,i,n,s){const r=[];i.forEach(t=>r.push($t(t)));const a=[];n.forEach((i,n)=>{const r={};i.forEach(t=>{const i=r[t]=e.computeStyle(n,t,s);i&&0!=i.length||(n.__ng_removed=Mt,a.push(n))}),t.set(n,r)});let o=0;return i.forEach(t=>$t(t,r[o++])),a}function Kt(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const n=new Set(e),s=new Map;function r(t){if(!t)return 1;let e=s.get(t);if(e)return e;const a=t.parentNode;return e=i.has(a)?a:n.has(a)?1:r(a),s.set(t,e),e}return e.forEach(t=>{const e=r(t);1!==e&&i.get(e).push(t)}),i}function Gt(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function Yt(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function Qt(t,e,i){o(i).onDone(()=>t.processLeaveNode(e))}function Zt(t,e){for(let i=0;is.add(t)):e.set(t,n),i.delete(t),!0}class te{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new Ut(t,e,i),this._timelineEngine=new Rt(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,n,s){const r=t+"-"+n;let a=this._triggerCache[r];if(!a){const t=[],e=rt(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${n}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);a=function(t,e){return new Dt(t,e)}(n,e),this._triggerCache[r]=a}this._transitionEngine.registerTrigger(e,n,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i,n){this._transitionEngine.removeNode(t,e,n||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if("@"==i.charAt(0)){const[t,s]=p(i);this._timelineEngine.command(t,e,s,n)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if("@"==i.charAt(0)){const[t,n]=p(i);return this._timelineEngine.listen(t,e,n,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ee(t,e){let i=null,n=null;return Array.isArray(e)&&e.length?(i=ne(e[0]),e.length>1&&(n=ne(e[e.length-1]))):e&&(i=ne(e)),i||n?new ie(t,i,n):null}let ie=(()=>{class t{constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&z(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(z(this._element,this._initialStyles),this._endStyles&&(z(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(B(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(B(this._element,this._endStyles),this._endStyles=null),z(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function ne(t){let e=null;const i=Object.keys(t);for(let n=0;nthis._handleCallback(t)}apply(){!function(t,e){const i=pe(t,"").trim();i.length&&(function(t,e){let i=0;for(let n=0;n=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),ue(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=pe(t,"").split(","),n=he(i,e);n>=0&&(i.splice(n,1),de(t,"",i.join(",")))}(this._element,this._name))}}function le(t,e,i){de(t,"PlayState",i,ce(t,e))}function ce(t,e){const i=pe(t,"");return i.indexOf(",")>0?he(i.split(","),e):he([i],e)}function he(t,e){for(let i=0;i=0)return i;return-1}function ue(t,e,i){i?t.removeEventListener(ae,e):t.addEventListener(ae,e)}function de(t,e,i,n){const s=re+e;if(null!=n){const e=t.style[s];if(e.length){const t=e.split(",");t[n]=i,i=t.join(",")}}t.style[s]=i}function pe(t,e){return t.style[re+e]||""}class me{constructor(t,e,i,n,s,r,a,o){this.element=t,this.keyframes=e,this.animationName=i,this._duration=n,this._delay=s,this._finalStyles=a,this._specialStyles=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=n+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 oe(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(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:Z(this.element,i))})}this.currentSnapshot=t}}class fe extends r.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=k(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 ge{constructor(){this._count=0,this._head=document.querySelector("head")}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>k(t));let n=`@keyframes ${e} {\n`,s="";i.forEach(t=>{s=" ";const e=parseFloat(t.offset);n+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(n+=`${s}animation-timing-function: ${i};\n`));default:return void(n+=`${s}${e}: ${i};\n`)}}),n+=s+"}\n"}),n+="}\n";const r=document.createElement("style");return r.textContent=n,r}animate(t,e,i,n,s,r=[],a){const o=r.filter(t=>t instanceof me),l={};G(i,n)&&o.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=Y(t,e,l));if(0==i)return new fe(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=ee(t,e),p=new me(t,e,h,i,n,s,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}}class be{constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(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,i){return t.animate(e,i)}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]:Z(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class _e{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ye().toString()),this._cssKeyframesDriver=new ge}validateStyleProperty(t){return v(t)}matchesElement(t,e){return w(t,e)}containsElement(t,e){return x(t,e)}query(t,e,i){return C(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,n,s,r=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,n,s,r);const o={duration:i,delay:n,fill:0==n?"both":"forwards"};s&&(o.easing=s);const l={},c=r.filter(t=>t instanceof be);G(i,n)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=ee(t,e=Y(t,e=e.map(t=>F(t,!1)),l));return new be(t,e,o,h)}}function ye(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var ve=i("ofXK");let we=(()=>{class t extends r.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:n.S.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?Object(r.i)(t):t;return ke(this._renderer,null,e,"register",[i]),new xe(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(n.H),n.Xb(ve.d))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();class xe extends r.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Ce(this._id,t,e||{},this._renderer)}}class Ce{constructor(t,e,i,n){this.id=t,this.element=e,this._renderer=n,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return ke(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){var t,e;return null!==(e=null===(t=this._renderer.engine.players[+this.id])||void 0===t?void 0:t.getPosition())&&void 0!==e?e:0}}function ke(t,e,i,n,s){return t.setProperty(e,`@@${i}:${n}`,s)}const Se="@",Oe="@.disabled";let Ee=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,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 i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Ae("",i,this.engine),this._rendererCache.set(i,t)),t}const n=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(n,s,t,e.name,e)};return e.data.animation.forEach(r),new De(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}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)(n.Xb(n.H),n.Xb(te),n.Xb(n.B))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();class Ae{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,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,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}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,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==Se&&e==Oe?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class De extends Ae{constructor(t,e,i,n){super(e,i,n),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==Se?"."==e.charAt(1)&&e==Oe?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==Se){const n=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)!=Se&&([s,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,n,s,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let Ie=(()=>{class t extends te{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(ve.d),n.Xb(O),n.Xb(xt))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();const Te=new n.s("AnimationModuleType"),Re=[{provide:O,useFactory:function(){return"function"==typeof ye()?new _e:new ge}},{provide:Te,useValue:"BrowserAnimations"},{provide:r.b,useClass:we},{provide:xt,useFactory:function(){return new Ct}},{provide:te,useClass:Ie},{provide:n.H,useFactory:function(t,e,i){return new Ee(t,e,i)},deps:[s.d,te,n.B]}];let je=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:Re,imports:[s.a]}),t})()},STbY:function(t,e,i){"use strict";i.d(e,"a",function(){return M}),i.d(e,"b",function(){return L}),i.d(e,"c",function(){return X}),i.d(e,"d",function(){return H});var n=i("u47x"),s=i("8LU1"),r=i("FtGj"),a=i("fXoL"),o=i("XNiG"),l=i("quSY"),c=i("VRyK"),h=i("LRne"),u=i("7Hc7"),d=i("JX91"),p=i("eIep"),m=i("IzEk"),f=i("pLZG"),g=i("1G5W"),b=i("3E0/"),_=i("R0Ic"),y=i("+rOU"),v=i("ofXK"),w=i("FKr1"),x=i("rDax"),C=i("nLfN"),k=i("vxfF"),S=i("cH1L");const O=["mat-menu-item",""],E=["*"];function A(t,e){if(1&t){const t=a.Ub();a.Tb(0,"div",0),a.bc("keydown",function(e){return a.uc(t),a.fc()._handleKeydown(e)})("click",function(){return a.uc(t),a.fc().closed.emit("click")})("@transformMenu.start",function(e){return a.uc(t),a.fc()._onAnimationStart(e)})("@transformMenu.done",function(e){return a.uc(t),a.fc()._onAnimationDone(e)}),a.Tb(1,"div",1),a.jc(2),a.Sb(),a.Sb()}if(2&t){const t=a.fc();a.lc("id",t.panelId)("ngClass",t._classList)("@transformMenu",t._panelAnimationState),a.Db("aria-label",t.ariaLabel||null)("aria-labelledby",t.ariaLabelledby||null)("aria-describedby",t.ariaDescribedby||null)}}const D={transformMenu:Object(_.m)("transformMenu",[Object(_.j)("void",Object(_.k)({opacity:0,transform:"scale(0.8)"})),Object(_.l)("void => enter",Object(_.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(_.k)({opacity:1,transform:"scale(1)"}))),Object(_.l)("* => void",Object(_.e)("100ms 25ms linear",Object(_.k)({opacity:0})))]),fadeInItems:Object(_.m)("fadeInItems",[Object(_.j)("showing",Object(_.k)({opacity:1})),Object(_.l)("void => *",[Object(_.k)({opacity:0}),Object(_.e)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},I=new a.s("MatMenuContent"),T=new a.s("MAT_MENU_PANEL");class R{}const j=Object(w.x)(Object(w.y)(R));let L=(()=>{class t extends j{constructor(t,e,i,n){super(),this._elementRef=t,this._focusMonitor=i,this._parentMenu=n,this.role="menuitem",this._hovered=new o.a,this._focused=new o.a,this._highlighted=!1,this._triggersSubmenu=!1,n&&n.addItem&&n.addItem(this)}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var t,e;const i=this._elementRef.nativeElement.cloneNode(!0),n=i.querySelectorAll("mat-icon, .material-icons");for(let s=0;s{class t{constructor(t,e,i){this._elementRef=t,this._ngZone=e,this._defaultOptions=i,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new a.F,this._tabSubscription=l.a.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new o.a,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new a.o,this.close=this.closed,this.panelId="mat-menu-panel-"+P++}get xPosition(){return this._xPosition}set xPosition(t){this._xPosition=t,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(t){this._yPosition=t,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(t){this._overlapTrigger=Object(s.c)(t)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(t){this._hasBackdrop=Object(s.c)(t)}set panelClass(t){const e=this._previousPanelClass;e&&e.length&&e.split(" ").forEach(t=>{this._classList[t]=!1}),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach(t=>{this._classList[t]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(t){this.panelClass=t}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.g(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(p.a)(t=>Object(c.a)(...t.map(t=>t._focused)))).subscribe(t=>this._keyManager.updateActiveItem(t))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe(Object(d.a)(this._directDescendantItems),Object(p.a)(t=>Object(c.a)(...t.map(t=>t._hovered))))}addItem(t){}removeItem(t){}_handleKeydown(t){const e=t.keyCode,i=this._keyManager;switch(e){case r.h:Object(r.t)(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case r.j:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case r.n:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:e!==r.q&&e!==r.e||i.setFocusOrigin("keyboard"),i.onKeydown(t)}}focusFirstItem(t="program"){this.lazyContent?this._ngZone.onStable.pipe(Object(m.a)(1)).subscribe(()=>this._focusFirstItem(t)):this._focusFirstItem(t)}_focusFirstItem(t){const e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length){let t=this._directDescendantItems.first._getHostElement().parentElement;for(;t;){if("menu"===t.getAttribute("role")){t.focus();break}t=t.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(t){const e="mat-elevation-z"+Math.min(4+t,24),i=Object.keys(this._classList).find(t=>t.startsWith("mat-elevation-z"));i&&i!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)}setPositionClasses(t=this.xPosition,e=this.yPosition){const i=this._classList;i["mat-menu-before"]="before"===t,i["mat-menu-after"]="after"===t,i["mat-menu-above"]="above"===e,i["mat-menu-below"]="below"===e}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(t){this._animationDone.next(t),this._isAnimating=!1}_onAnimationStart(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Object(d.a)(this._allItems)).subscribe(t=>{this._directDescendantItems.reset(t.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(a.B),a.Nb(N))},t.\u0275dir=a.Ib({type:t,contentQueries:function(t,e,i){if(1&t&&(a.Gb(i,I,!0),a.Gb(i,L,!0),a.Gb(i,L,!1)),2&t){let t;a.rc(t=a.cc())&&(e.lazyContent=t.first),a.rc(t=a.cc())&&(e._allItems=t),a.rc(t=a.cc())&&(e.items=t)}},viewQuery:function(t,e){if(1&t&&a.Ic(a.N,!0),2&t){let t;a.rc(t=a.cc())&&(e.templateRef=t.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t})(),M=(()=>{class t extends F{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(a.B),a.Nb(N))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&a.Db("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[a.Bb([{provide:T,useExisting:t}]),a.zb],ngContentSelectors:E,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(a.kc(),a.Dc(0,A,3,6,"ng-template"))},directives:[v.k],styles:['.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[D.transformMenu,D.fadeInItems]},changeDetection:0}),t})();const V=new a.s("mat-menu-scroll-strategy"),z={provide:V,deps:[x.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},B=Object(C.f)({passive:!0});let H=(()=>{class t{constructor(t,e,i,n,s,r,o,c){this._overlay=t,this._element=e,this._viewContainerRef=i,this._menuItemInstance=r,this._dir=o,this._focusMonitor=c,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=l.a.EMPTY,this._hoverSubscription=l.a.EMPTY,this._menuCloseSubscription=l.a.EMPTY,this._handleTouchStart=()=>this._openedBy="touch",this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new a.o,this.onMenuOpen=this.menuOpened,this.menuClosed=new a.o,this.onMenuClose=this.menuClosed,this._scrollStrategy=n,this._parentMaterialMenu=s instanceof F?s:void 0,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,B),r&&(r._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(t){this.menu=t}get menu(){return this._menu}set menu(t){t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(t=>{this._destroyMenu(),"click"!==t&&"tab"!==t||!this._parentMaterialMenu||this._parentMaterialMenu.closed.emit(t)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,B),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const t=this._createOverlay(),e=t.getConfig();this._setPosition(e.positionStrategy),e.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,t.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof F&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(t="program",e){this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}_destroyMenu(){if(!this._overlayRef||!this.menuOpen)return;const t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this._restoreFocus(),t instanceof F?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(Object(f.a)(t=>"void"===t.toState),Object(m.a)(1),Object(g.a)(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t.lazyContent&&t.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")}_setMenuElevation(){if(this.menu.setElevation){let t=0,e=this.menu.parentMenu;for(;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}_restoreFocus(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null}_setIsMenuOpen(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new x.d({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(t){this.menu.setPositionClasses&&t.positionChanges.subscribe(t=>{this.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}_setPosition(t){let[e,i]="before"===this.menu.xPosition?["end","start"]:["start","end"],[n,s]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[r,a]=[n,s],[o,l]=[e,i],c=0;this.triggersSubmenu()?(l=e="before"===this.menu.xPosition?"start":"end",i=o="end"===e?"start":"end",c="bottom"===n?8:-8):this.menu.overlapTrigger||(r="top"===n?"bottom":"top",a="top"===s?"bottom":"top"),t.withPositions([{originX:e,originY:r,overlayX:o,overlayY:n,offsetY:c},{originX:i,originY:r,overlayX:l,overlayY:n,offsetY:c},{originX:e,originY:a,overlayX:o,overlayY:s,offsetY:-c},{originX:i,originY:a,overlayX:l,overlayY:s,offsetY:-c}])}_menuClosingActions(){const t=this._overlayRef.backdropClick(),e=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:Object(h.a)(),n=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Object(f.a)(t=>t!==this._menuItemInstance),Object(f.a)(()=>this._menuOpen)):Object(h.a)();return Object(c.a)(t,i,n,e)}_handleMousedown(t){Object(n.l)(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())}_handleKeydown(t){const e=t.keyCode;this.triggersSubmenu()&&(e===r.n&&"ltr"===this.dir||e===r.j&&"rtl"===this.dir)&&this.openMenu()}_handleClick(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Object(f.a)(t=>t===this._menuItemInstance&&!t.disabled),Object(b.a)(0,u.a)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof F&&this.menu._isAnimating?this.menu._animationDone.pipe(Object(m.a)(1),Object(b.a)(0,u.a),Object(g.a)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new y.h(this.menu.templateRef,this._viewContainerRef)),this._portal}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(x.c),a.Nb(a.l),a.Nb(a.R),a.Nb(V),a.Nb(T,8),a.Nb(L,10),a.Nb(S.b,8),a.Nb(n.h))},t.\u0275dir=a.Ib({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&a.bc("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&a.Db("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t})(),U=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},providers:[z],imports:[w.i]}),t})(),X=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},providers:[z],imports:[[v.c,w.i,w.s,x.f,U],k.b,w.i,U]}),t})()},SeVD:function(t,e,i){"use strict";i.d(e,"a",function(){return h});var n=i("ngJS"),s=i("NJ4a"),r=i("Lhse"),a=i("kJWO"),o=i("I55L"),l=i("c2HN"),c=i("XoHu");const h=t=>{if(t&&"function"==typeof t[a.a])return h=t,t=>{const e=h[a.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(o.a)(t))return Object(n.a)(t);if(Object(l.a)(t))return i=t,t=>(i.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 i=e[r.a]();for(;;){let e;try{e=i.next()}catch(n){return t.error(n),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=Object(c.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,h}},SpAZ:function(t,e,i){"use strict";function n(t){return t}i.d(e,"a",function(){return n})},SxV6:function(t,e,i){"use strict";i.d(e,"a",function(){return c});var n=i("sVev"),s=i("pLZG"),r=i("IzEk"),a=i("xbPD"),o=i("XDbj"),l=i("SpAZ");function c(t,e){const i=arguments.length>=2;return c=>c.pipe(t?Object(s.a)((e,i)=>t(e,i,c)):l.a,Object(r.a)(1),i?Object(a.a)(e):Object(o.a)(()=>new n.a))}},UXun:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("jtHE");function s(t,e,i){let s;return s=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:i},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:i,scheduler:s}){let r,a,o=0,l=!1,c=!1;return function(h){let u;o++,!r||l?(l=!1,r=new n.a(t,e,s),u=r.subscribe(this),a=h.subscribe({next(t){r.next(t)},error(t){l=!0,r.error(t)},complete(){c=!0,a=void 0,r.complete()}})):u=r.subscribe(this),this.add(()=>{o--,u.unsubscribe(),a&&!c&&i&&0===o&&(a.unsubscribe(),a=void 0,r=void 0)})}}(s))}},VHTt:function(t,e,i){"use strict";i.d(e,"g",function(){return n}),i.d(e,"s",function(){return s}),i.d(e,"f",function(){return r}),i.d(e,"d",function(){return a.a}),i.d(e,"q",function(){return o}),i.d(e,"t",function(){return l}),i.d(e,"o",function(){return c}),i.d(e,"p",function(){return h}),i.d(e,"j",function(){return u}),i.d(e,"b",function(){return d}),i.d(e,"l",function(){return p.f}),i.d(e,"k",function(){return p.e}),i.d(e,"a",function(){return p.a}),i.d(e,"m",function(){return p.g}),i.d(e,"i",function(){return p.d}),i.d(e,"c",function(){return p.b}),i.d(e,"h",function(){return p.c}),i.d(e,"n",function(){return m}),i.d(e,"r",function(){return y}),i.d(e,"e",function(){return S});var n=function(t){return t[t.Concept=0]="Concept",t[t.Formula=1]="Formula",t}({});function s(t){let e="";switch(t){case n.Formula:e="KnowledgeItemCategory.Formula";break;case n.Concept:default:e="KnowledgeItemCategory.Concept"}return e}class r{constructor(){this._tags=[]}get ID(){return this._id}set ID(t){this._id=t}get Title(){return this._title}set Title(t){this._title=t}get Content(){return this._content}set Content(t){this._content=t}get ItemCategory(){return this._itemCtgy}set ItemCategory(t){this._itemCtgy=t}get Tags(){return this._tags}set Tags(t){this._tags=t.slice()}get CreatedAt(){return this._createdAt}set CreatedAt(t){this._createdAt=t}get ModifiedAt(){return this._modifiedAt}set ModifiedAt(t){this._modifiedAt=t}parseData(t){if(t&&t.ID&&(this.ID=+t.ID),t&&t.Category&&(this.ItemCategory=isNaN(+t.Category)?n[t.Category]:+t.Category),t&&t.Title&&(this._title=t.Title),t&&t.Content&&(this.Content=t.Content),t&&t.CreatedAt&&(this.CreatedAt=new Date(t.CreatedAt)),t&&t.ModifiedAt&&(this.ModifiedAt=new Date(t.ModifiedAt)),t&&t.Tags){const e=t.Tags;this._tags=[],e.forEach(t=>{this._tags.push(t.TagTerm)})}}generateString(t){let e={Content:this._content,Title:this._title,Category:n[this.ItemCategory]};return t&&(e.ID=this.ID),this.CreatedAt&&(e.CreatedAt=this.CreatedAt.toISOString()),this.ModifiedAt&&(e.ModifiedAt=this.ModifiedAt.toISOString()),this.Tags&&(e.Tags=[],this.Tags.forEach(t=>{e.Tags.push({TagTerm:t})})),JSON&&JSON.stringify(e)}}var a=i("NUjs"),o=function(t){return t[t.KnowledgeItem=1]="KnowledgeItem",t[t.ExerciseItem=2]="ExerciseItem",t}({});const l=t=>{let e="";switch(t){case o.ExerciseItem:e="ExerciseItem";break;default:e="KnowledgeItem"}return e};class c{parseData(t){t&&t.TagTerm&&(this.TagTerm=t.TagTerm),t&&t.RefType&&(this.RefType=isNaN(+t.RefType)?o[t.RefType]:+t.RefType),t&&t.RefID&&(this.RefID=t.RefID)}}class h{parseData(t){t&&t.Tag&&(this.TagTerm=t.Tag),t&&t.RefType&&(this.RefType=isNaN(+t.RefType)?o[t.RefType]:t.RefType),t&&t.Count&&(this.Count=t.Count)}}class u{parseData(t){t&&t.RefType&&(this.RefType=isNaN(+t.RefType)?o[t.RefType]:+t.RefType),t&&t.Count&&(this.Count=t.Count)}}var d=function(t){return t[t.home=0]="home",t[t.ps_basic=1]="ps_basic",t[t.ps_extend=2]="ps_extend",t[t.games=3]="games",t[t.award=4]="award",t[t.report=5]="report",t[t.help=6]="help",t[t.knowledge=7]="knowledge",t[t.others=10]="others",t}({}),p=i("BETK");const m=9;class f{constructor(){this._dataCells=[];for(let t=0;t<3;t++)this._dataCells.push(0)}getCell(t){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataCells[t]}setCell(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");this._dataCells[t]=e}toString(){return this._dataCells.join(" ")}print2Log(){console.log(this.toString())}}class g{constructor(){this._dataRows=[];for(let t=0;t<3;t++){const t=new f;this._dataRows.push(t)}}static generateValidOne(){const t=new g,e=[];for(let i=0;im)throw new Error("Failed to initialize a 3*3!")}}for(let i=0;i=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataRows[t]}setRow(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(null==e)throw new Error("Unit row is not assigned");this._dataRows[t]=e}getCell(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataRows[t].getCell(e)}setCell(t,e,i){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");this._dataRows[t].setCell(e,i)}swapRows(t,e){if(t<0||t>=3||e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");const i=new g;for(let n=0;n<3;n++)for(let s=0;s<3;s++)i.setCell(n===t?e:n===e?t:n,s,this.getCell(n,s));return i}swapColumns(t,e){if(t<0||t>=3||e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");const i=new g;for(let n=0;n<3;n++)for(let s=0;s<3;s++)i.setCell(n,s===t?e:s===e?t:s,this.getCell(n,s));return i}scrollUp(){return this.swapRows(0,1).swapRows(1,2)}scrollDown(){return this.swapRows(1,2).swapRows(0,1)}scrollLeft(){return this.swapColumns(0,1).swapColumns(1,2)}scrollRight(){return this.swapColumns(1,2).swapColumns(0,1)}print2Log(){for(let t=0;t<3;t++)this._dataRows[t].print2Log()}}class b{constructor(){this._dataCells=[];for(let t=0;t<3;t++)this._dataCells.push(new g)}getCell(t){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataCells[t]}setCell(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");this._dataCells[t]=e}}class _{constructor(){this._dataRows=[];for(let t=0;t<3;t++){const t=new b;this._dataRows.push(t)}}getRow(t){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataRows[t]}setRow(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(null==e)throw new Error("Unit row is not assigned");this._dataRows[t]=e}getUnitCell(t,e){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");return this._dataRows[t].getCell(e)}setUnitCell(t,e,i){if(t<0||t>=3)throw new Error("index of Sudou Unit is 1 - 3");if(e<0||e>=3)throw new Error("index of Sudou Unit is 1 - 3");this._dataRows[t].setCell(e,i)}getDataCells(){const t=[];for(let e=0;e50)throw new Error("Invalid dimension");this._finished=!1,this.cells=new Array;for(let e=0;e=this._dimension||e<0||e>=this._dimension)throw new Error("Invalid row or column");return void 0!==this.cells[t][e].playerinput}setCellValue(t,e,i){if(!this._inited)throw new Error("Not initialed");if(this._finished)throw new Error("Already finished");if(t<0||t>=this._dimension||e<0||e>=this._dimension)throw new Error("Invalid row or column");this.cells[t][e].playerinput=i,this._queuePositions.push({row:t,column:e}),this.checkWinner(t,e,i)}workoutNextCellAIPosition(){if(this._finished)throw new Error("Game is over!");const t={row:0,column:0};if(this._queuePositions.length<=0)return t.row=Math.round(Math.random()*this._dimension/2),t.column=Math.round(Math.random()*this._dimension/2),t;if(1===this._queuePositions.length)return t.row=this._queuePositions[0].row,t.column=this._queuePositions[0].column+1{-1!==e||!0===t.headsealed&&!0===t.tailsealed?this._playAnalysis[e].risklevel{-1!==i||!0===t.headsealed&&!0===t.tailsealed?this._playAnalysis[i].risklevel=t+this._dimension||(this.cells[t][n-t].playerinput===i?r++:r=0,5!==r));t++);if(5!==r){let n=t-e;if(n<0){n=Math.abs(n);for(let t=0;t=this._dimension||(this.cells[t][t+n].playerinput===i?a++:a=0,5!==a));t++);}else for(let t=n;t1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof o&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof n.a?t[0]:Object(r.a)(e)(Object(a.a)(t,i))}},WMd4:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("EY2u"),s=i("LRne"),r=i("z6cu");let a=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,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,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Object(s.a)(this.value);case"E":return Object(r.a)(this.error);case"C":return Object(n.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})()},Wp6s:function(t,e,i){"use strict";i.d(e,"a",function(){return m}),i.d(e,"b",function(){return p}),i.d(e,"c",function(){return h}),i.d(e,"d",function(){return f}),i.d(e,"e",function(){return g}),i.d(e,"f",function(){return d}),i.d(e,"g",function(){return u});var n=i("R1ws"),s=i("FKr1"),r=i("fXoL");const a=["*",[["mat-card-footer"]]],o=["*","mat-card-footer"],l=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],c=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let h=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),t})(),u=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),t})(),d=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),t})(),p=(()=>{class t{constructor(){this.align="start"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-card-actions"],hostVars:2,hostBindings:function(t,e){2&t&&r.Fb("mat-card-actions-align-end","end"===e.align)},inputs:{align:"align"},exportAs:["matCardActions"]}),t})(),m=(()=>{class t{constructor(t){this._animationMode=t}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(n.a,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(t,e){2&t&&r.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode)},exportAs:["matCard"],ngContentSelectors:o,decls:2,vars:0,template:function(t,e){1&t&&(r.kc(a),r.jc(0),r.jc(1,1))},styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:block;position:relative;padding:16px;border-radius:4px}._mat-animation-noopable.mat-card{transition:none;animation:none}.mat-card .mat-divider-horizontal{position:absolute;left:0;width:100%}[dir=rtl] .mat-card .mat-divider-horizontal{left:auto;right:0}.mat-card .mat-divider-horizontal.mat-divider-inset{position:static;margin:0}[dir=rtl] .mat-card .mat-divider-horizontal.mat-divider-inset{margin-right:0}.cdk-high-contrast-active .mat-card{outline:solid 1px}.mat-card-actions,.mat-card-subtitle,.mat-card-content{display:block;margin-bottom:16px}.mat-card-title{display:block;margin-bottom:8px}.mat-card-actions{margin-left:-8px;margin-right:-8px;padding:8px 0}.mat-card-actions-align-end{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 32px);margin:0 -16px 16px -16px}.mat-card-footer{display:block;margin:0 -16px -16px -16px}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button,.mat-card-actions .mat-stroked-button{margin:0 8px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header .mat-card-title{margin-bottom:12px}.mat-card-header-text{margin:0 16px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;object-fit:cover}.mat-card-title-group{display:flex;justify-content:space-between}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-title-group>.mat-card-xl-image{margin:-8px 0 8px}@media(max-width: 599px){.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}}.mat-card>:first-child,.mat-card-content>:first-child{margin-top:0}.mat-card>:last-child:not(.mat-card-footer),.mat-card-content>:last-child:not(.mat-card-footer){margin-bottom:0}.mat-card-image:first-child{margin-top:-16px;border-top-left-radius:inherit;border-top-right-radius:inherit}.mat-card>.mat-card-actions:last-child{margin-bottom:-8px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child,.mat-card-actions .mat-stroked-button:first-child{margin-left:0;margin-right:0}.mat-card-title:not(:first-child),.mat-card-subtitle:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}\n"],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:c,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(t,e){1&t&&(r.kc(l),r.jc(0),r.Tb(1,"div",0),r.jc(2,1),r.Sb(),r.jc(3,2))},encapsulation:2,changeDetection:0}),t})(),g=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.i],s.i]}),t})()},XDbj:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("sVev"),s=i("7o/Q");function r(t=l){return e=>e.lift(new a(t))}class a{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new o(t,this.errorFactory))}}class o 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 l(){return new n.a}},XNiG:function(t,e,i){"use strict";i.d(e,"b",function(){return c}),i.d(e,"a",function(){return h});var n=i("HDdC"),s=i("7o/Q"),r=i("quSY"),a=i("9ppp"),o=i("Ylt2"),l=i("2QA8");class c extends s.a{constructor(t){super(t),this.destination=t}}let h=(()=>{class t extends n.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[l.a](){return new c(this)}lift(t){const e=new u(this,this);return e.operator=t,e}next(t){if(this.closed)throw new a.a;if(!this.isStopped){const{observers:e}=this,i=e.length,n=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}}},Xa2L:function(t,e,i){"use strict";i.d(e,"a",function(){return m}),i.d(e,"b",function(){return f});var n=i("fXoL"),s=i("ofXK"),r=i("FKr1"),a=i("8LU1"),o=i("nLfN"),l=i("R1ws");function c(t,e){if(1&t&&(n.ec(),n.Ob(0,"circle",3)),2&t){const t=n.fc();n.Ac("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.Db("r",t._getCircleRadius())}}function h(t,e){if(1&t&&(n.ec(),n.Ob(0,"circle",3)),2&t){const t=n.fc();n.Ac("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),n.Db("r",t._getCircleRadius())}}class u{constructor(t){this._elementRef=t}}const d=Object(r.w)(u,"primary"),p=new n.s("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let m=(()=>{class t extends d{constructor(e,i,n,s,r){super(e),this._elementRef=e,this._document=n,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const a=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),a.has(n.head)||a.set(n.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===s&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Object(a.f)(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Object(a.f)(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Object(a.f)(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Object(o.c)(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,n=t._diameters;let s=n.get(e);if(!s||!s.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),s||(s=new Set,n.set(e,s)),s.add(i)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(o.a),n.Nb(s.d,8),n.Nb(l.a,8),n.Nb(p))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(n.Db("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),n.Ac("width",e.diameter,"px")("height",e.diameter,"px"),n.Fb("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[n.zb],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(n.ec(),n.Tb(0,"svg",0),n.Dc(1,c,1,9,"circle",1),n.Dc(2,h,1,7,"circle",2),n.Sb()),2&t&&(n.Ac("width",e.diameter,"px")("height",e.diameter,"px"),n.lc("ngSwitch","indeterminate"===e.mode),n.Db("viewBox",e._getViewBox()),n.Cb(1),n.lc("ngSwitchCase",!0),n.Cb(1),n.lc("ngSwitchCase",!1))},directives:[s.o,s.p],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] svg{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),f=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[r.i,s.c],r.i]}),t})()},XhcP:function(t,e,i){"use strict";i.d(e,"a",function(){return q}),i.d(e,"b",function(){return W}),i.d(e,"c",function(){return X}),i.d(e,"d",function(){return G});var n=i("nLfN"),s=i("vxfF"),r=i("ofXK"),a=i("fXoL"),o=i("FKr1"),l=i("8LU1"),c=i("FtGj"),h=i("XNiG"),u=i("xgIS"),d=i("VRyK"),p=i("pLZG"),m=i("lJxs"),f=i("7o/Q");function g(t){return e=>e.lift(new b(t))}class b{constructor(t){this.value=t}call(t,e){return e.subscribe(new _(t,this.value))}}class _ extends f.a{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}var y=i("1G5W"),v=i("/uUt"),w=i("IzEk"),x=i("JX91"),C=i("Kj3r"),k=i("R0Ic"),S=i("R1ws"),O=i("u47x"),E=i("cH1L");const A=["*"];function D(t,e){if(1&t){const t=a.Ub();a.Tb(0,"div",2),a.bc("click",function(){return a.uc(t),a.fc()._onBackdropClicked()}),a.Sb()}if(2&t){const t=a.fc();a.Fb("mat-drawer-shown",t._isShowingBackdrop())}}function I(t,e){1&t&&(a.Tb(0,"mat-drawer-content"),a.jc(1,2),a.Sb())}const T=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],R=["mat-drawer","mat-drawer-content","*"];function j(t,e){if(1&t){const t=a.Ub();a.Tb(0,"div",2),a.bc("click",function(){return a.uc(t),a.fc()._onBackdropClicked()}),a.Sb()}if(2&t){const t=a.fc();a.Fb("mat-drawer-shown",t._isShowingBackdrop())}}function L(t,e){1&t&&(a.Tb(0,"mat-sidenav-content",3),a.jc(1,2),a.Sb())}const N=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],P=["mat-sidenav","mat-sidenav-content","*"],F=".mat-drawer-container{position:relative;z-index:1;box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}.cdk-high-contrast-active .mat-drawer-backdrop{opacity:.5}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}.cdk-high-contrast-active .mat-drawer,.cdk-high-contrast-active [dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}.cdk-high-contrast-active [dir=rtl] .mat-drawer,.cdk-high-contrast-active .mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer{transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n",M={transformDrawer:Object(k.m)("transform",[Object(k.j)("open, open-instant",Object(k.k)({transform:"none",visibility:"visible"})),Object(k.j)("void",Object(k.k)({"box-shadow":"none",visibility:"hidden"})),Object(k.l)("void => open-instant",Object(k.e)("0ms")),Object(k.l)("void <=> open, open-instant => void",Object(k.e)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},V=new a.s("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function(){return!1}}),z=new a.s("MAT_DRAWER_CONTAINER");let B=(()=>{class t extends s.a{constructor(t,e,i,n,s){super(i,n,s),this._changeDetectorRef=t,this._container=e}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.h),a.Nb(Object(a.W)(()=>U)),a.Nb(a.l),a.Nb(s.c),a.Nb(a.B))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.Ac("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.zb],ngContentSelectors:A,decls:1,vars:0,template:function(t,e){1&t&&(a.kc(),a.jc(0))},encapsulation:2,changeDetection:0}),t})(),H=(()=>{class t{constructor(t,e,i,n,s,r,o){this._elementRef=t,this._focusTrapFactory=e,this._focusMonitor=i,this._platform=n,this._ngZone=s,this._doc=r,this._container=o,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new h.a,this._animationEnd=new h.a,this._animationState="void",this.openedChange=new a.o(!0),this._openedStream=this.openedChange.pipe(Object(p.a)(t=>t),Object(m.a)(()=>{})),this.openedStart=this._animationStarted.pipe(Object(p.a)(t=>t.fromState!==t.toState&&0===t.toState.indexOf("open")),g(void 0)),this._closedStream=this.openedChange.pipe(Object(p.a)(t=>!t),Object(m.a)(()=>{})),this.closedStart=this._animationStarted.pipe(Object(p.a)(t=>t.fromState!==t.toState&&"void"===t.toState),g(void 0)),this._destroyed=new h.a,this.onPositionChanged=new a.o,this._modeChanged=new h.a,this.openedChange.subscribe(t=>{t?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus()}),this._ngZone.runOutsideAngular(()=>{Object(u.a)(this._elementRef.nativeElement,"keydown").pipe(Object(p.a)(t=>t.keyCode===c.h&&!this.disableClose&&!Object(c.t)(t)),Object(y.a)(this._destroyed)).subscribe(t=>this._ngZone.run(()=>{this.close(),t.stopPropagation(),t.preventDefault()}))}),this._animationEnd.pipe(Object(v.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{const{fromState:e,toState:i}=t;(0===i.indexOf("open")&&"void"===e||"void"===i&&0===e.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(t){(t="end"===t?"end":"start")!=this._position&&(this._position=t,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(t){this._mode=t,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(t){this._disableClose=Object(l.c)(t)}get autoFocus(){const t=this._autoFocus;return null==t?"side"!==this.mode:t}set autoFocus(t){this._autoFocus=Object(l.c)(t)}get opened(){return this._opened}set opened(t){this.toggle(Object(l.c)(t))}_takeFocus(){this.autoFocus&&this._focusTrap&&this._focusTrap.focusInitialElementWhenReady().then(t=>{t||"function"!=typeof this._elementRef.nativeElement.focus||this._elementRef.nativeElement.focus()})}_restoreFocus(){this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,this._openedVia):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null,this._openedVia=null)}_isFocusWithinDrawer(){var t;const e=null===(t=this._doc)||void 0===t?void 0:t.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterContentInit(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState()}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){this._focusTrap&&this._focusTrap.destroy(),this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(t){return this.toggle(!0,t)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0)}toggle(t=!this.opened,e){return this._setOpen(t,!t&&this._isFocusWithinDrawer(),e)}_setOpen(t,e,i="program"){return this._opened=t,t?(this._animationState=this._enableAnimations?"open":"open-instant",this._openedVia=i):(this._animationState="void",e&&this._restoreFocus()),this._updateFocusTrapState(),new Promise(t=>{this.openedChange.pipe(Object(w.a)(1)).subscribe(e=>t(e?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_animationStartListener(t){this._animationStarted.next(t)}_animationDoneListener(t){this._animationEnd.next(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.l),a.Nb(O.i),a.Nb(O.h),a.Nb(n.a),a.Nb(a.B),a.Nb(r.d,8),a.Nb(z,8))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-drawer"]],hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(t,e){1&t&&a.Bc("@transform.start",function(t){return e._animationStartListener(t)})("@transform.done",function(t){return e._animationDoneListener(t)}),2&t&&(a.Db("align",null),a.Cc("@transform",e._animationState),a.Fb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:A,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.kc(),a.Tb(0,"div",0),a.jc(1),a.Sb())},encapsulation:2,data:{animation:[M.transformDrawer]},changeDetection:0}),t})(),U=(()=>{class t{constructor(t,e,i,n,s,r=!1,o){this._dir=t,this._element=e,this._ngZone=i,this._changeDetectorRef=n,this._animationMode=o,this._drawers=new a.F,this.backdropClick=new a.o,this._destroyed=new h.a,this._doCheckSubject=new h.a,this._contentMargins={left:null,right:null},this._contentMarginChanges=new h.a,t&&t.change.pipe(Object(y.a)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),s.change().pipe(Object(y.a)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=r}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(t){this._autosize=Object(l.c)(t)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(t){this._backdropOverride=null==t?null:Object(l.c)(t)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe(Object(x.a)(this._allDrawers),Object(y.a)(this._destroyed)).subscribe(t=>{this._drawers.reset(t.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Object(x.a)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(t=>{this._watchDrawerToggle(t),this._watchDrawerPosition(t),this._watchDrawerMode(t)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(Object(C.a)(10),Object(y.a)(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(t=>t.open())}close(){this._drawers.forEach(t=>t.close())}updateContentMargins(){let t=0,e=0;if(this._left&&this._left.opened)if("side"==this._left.mode)t+=this._left._getWidth();else if("push"==this._left.mode){const i=this._left._getWidth();t+=i,e-=i}if(this._right&&this._right.opened)if("side"==this._right.mode)e+=this._right._getWidth();else if("push"==this._right.mode){const i=this._right._getWidth();e+=i,t-=i}t=t||null,e=e||null,t===this._contentMargins.left&&e===this._contentMargins.right||(this._contentMargins={left:t,right:e},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(t){t._animationStarted.pipe(Object(p.a)(t=>t.fromState!==t.toState),Object(y.a)(this._drawers.changes)).subscribe(t=>{"open-instant"!==t.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==t.mode&&t.openedChange.pipe(Object(y.a)(this._drawers.changes)).subscribe(()=>this._setContainerClass(t.opened))}_watchDrawerPosition(t){t&&t.onPositionChanged.pipe(Object(y.a)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe(Object(w.a)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(t){t&&t._modeChanged.pipe(Object(y.a)(Object(d.a)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(t){const e=this._element.nativeElement.classList,i="mat-drawer-container-has-open";t?e.add(i):e.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(t=>{"end"==t.position?this._end=t:this._start=t}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(t=>t&&!t.disableClose&&this._canHaveBackdrop(t)).forEach(t=>t._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(t){return"side"!==t.mode||!!this._backdropOverride}_isDrawerOpen(t){return null!=t&&t.opened}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(E.b,8),a.Nb(a.l),a.Nb(a.B),a.Nb(a.h),a.Nb(s.e),a.Nb(V),a.Nb(S.a,8))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(t,e,i){if(1&t&&(a.Gb(i,B,!0),a.Gb(i,H,!0)),2&t){let t;a.rc(t=a.cc())&&(e._content=t.first),a.rc(t=a.cc())&&(e._allDrawers=t)}},viewQuery:function(t,e){if(1&t&&a.Ic(B,!0),2&t){let t;a.rc(t=a.cc())&&(e._userContent=t.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.Fb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[a.Bb([{provide:z,useExisting:t}])],ngContentSelectors:R,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],[4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,e){1&t&&(a.kc(T),a.Dc(0,D,1,2,"div",0),a.jc(1),a.jc(2,1),a.Dc(3,I,2,0,"mat-drawer-content",1)),2&t&&(a.lc("ngIf",e.hasBackdrop),a.Cb(3),a.lc("ngIf",!e._content))},directives:[r.m,B],styles:[F],encapsulation:2,changeDetection:0}),t})(),X=(()=>{class t extends B{constructor(t,e,i,n,s){super(t,e,i,n,s)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.h),a.Nb(Object(a.W)(()=>W)),a.Nb(a.l),a.Nb(s.c),a.Nb(a.B))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(t,e){2&t&&a.Ac("margin-left",e._container._contentMargins.left,"px")("margin-right",e._container._contentMargins.right,"px")},features:[a.zb],ngContentSelectors:A,decls:1,vars:0,template:function(t,e){1&t&&(a.kc(),a.jc(0))},encapsulation:2,changeDetection:0}),t})(),q=(()=>{class t extends H{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(t){this._fixedInViewport=Object(l.c)(t)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(t){this._fixedTopGap=Object(l.f)(t)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(t){this._fixedBottomGap=Object(l.f)(t)}}return t.\u0275fac=function(e){return $(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(t,e){2&t&&(a.Db("align",null),a.Ac("top",e.fixedInViewport?e.fixedTopGap:null,"px")("bottom",e.fixedInViewport?e.fixedBottomGap:null,"px"),a.Fb("mat-drawer-end","end"===e.position)("mat-drawer-over","over"===e.mode)("mat-drawer-push","push"===e.mode)("mat-drawer-side","side"===e.mode)("mat-drawer-opened",e.opened)("mat-sidenav-fixed",e.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[a.zb],ngContentSelectors:A,decls:2,vars:0,consts:[[1,"mat-drawer-inner-container"]],template:function(t,e){1&t&&(a.kc(),a.Tb(0,"div",0),a.jc(1),a.Sb())},encapsulation:2,data:{animation:[M.transformDrawer]},changeDetection:0}),t})();const $=a.Vb(q);let W=(()=>{class t extends U{}return t.\u0275fac=function(e){return K(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(t,e,i){if(1&t&&(a.Gb(i,X,!0),a.Gb(i,q,!0)),2&t){let t;a.rc(t=a.cc())&&(e._content=t.first),a.rc(t=a.cc())&&(e._allDrawers=t)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(t,e){2&t&&a.Fb("mat-drawer-container-explicit-backdrop",e._backdropOverride)},exportAs:["matSidenavContainer"],features:[a.Bb([{provide:z,useExisting:t}]),a.zb],ngContentSelectors:P,decls:4,vars:2,consts:[["class","mat-drawer-backdrop",3,"mat-drawer-shown","click",4,"ngIf"],["cdkScrollable","",4,"ngIf"],[1,"mat-drawer-backdrop",3,"click"],["cdkScrollable",""]],template:function(t,e){1&t&&(a.kc(N),a.Dc(0,j,1,2,"div",0),a.jc(1),a.jc(2,1),a.Dc(3,L,2,0,"mat-sidenav-content",1)),2&t&&(a.lc("ngIf",e.hasBackdrop),a.Cb(3),a.lc("ngIf",!e._content))},directives:[r.m,X,s.a],styles:[F],encapsulation:2,changeDetection:0}),t})();const K=a.Vb(W);let G=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},imports:[[r.c,o.i,n.b,s.b],s.b,o.i]}),t})()},XiUz:function(t,e,i){"use strict";i.d(e,"d",function(){return U}),i.d(e,"a",function(){return C}),i.d(e,"c",function(){return g}),i.d(e,"b",function(){return j});var n=i("fXoL"),s=i("pD6V"),r=i("cH1L"),a=(i("XNiG"),i("1G5W"));const o="inline",l=["row","column","row-reverse","column-reverse"];function c(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return l.find(t=>t===e)||(e=l[0]),i===o&&(i=n!==o?n:"",n=o),[e,u(i),!!n]}function h(t){let[e]=c(t);return e.indexOf("row")>-1}function u(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let d=(()=>{class t extends s.h{buildStyles(t){return function(t){let[e,i,n]=c(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(t)}}return t.\u0275fac=function(e){return p(e||t)},t.\u0275prov=Object(n.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const p=n.Vb(d),m=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let f=(()=>{class t extends s.b{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout",this.styleCache=_,this.init()}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(s.i),n.Nb(d),n.Nb(s.f))},t.\u0275dir=n.Ib({type:t,features:[n.zb]}),t})(),g=(()=>{class t extends f{constructor(){super(...arguments),this.inputs=m}}return t.\u0275fac=function(e){return b(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[n.zb]}),t})();const b=n.Vb(g),_=new Map;function y(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}new Map,new Map,new Map,new Map;let v=(()=>{class t extends s.h{constructor(t){super(),this.layoutConfig=t}buildStyles(t,e){let[i,n,...s]=t.split(" "),r=s.join(" ");const a=e.direction.indexOf("column")>-1?"column":"row",o=h(a)?"max-width":"max-height",l=h(a)?"min-width":"min-height",c=String(r).indexOf("calc")>-1,u=c||"auto"===r,d=String(r).indexOf("%")>-1&&!c,p=String(r).indexOf("px")>-1||String(r).indexOf("rem")>-1||String(r).indexOf("em")>-1||String(r).indexOf("vw")>-1||String(r).indexOf("vh")>-1;let m=c||p;i="0"==i?0:i,n="0"==n?0:n;const f=!i&&!n;let g={};const b={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(r||""){case"":const t=!1!==this.layoutConfig.useColumnBasisZero;r="row"===a?"0%":t?"0.000000001px":"auto";break;case"initial":case"nogrow":i=0,r="auto";break;case"grow":r="100%";break;case"noshrink":n=0,r="auto";break;case"auto":break;case"none":i=0,n=0,r="auto";break;default:m||d||isNaN(r)||(r+="%"),"0%"===r&&(m=!0),"0px"===r&&(r="0%"),g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":m?r:"100%"}:{flex:`${i} ${n} ${m?r:"100%"}`})}return g.flex||g["flex-grow"]||(g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":r}:{flex:`${i} ${n} ${r}`})),"0%"!==r&&"0px"!==r&&"0.000000001px"!==r&&"auto"!==r&&(g[l]=f||m&&i?r:null,g[o]=f||!u&&n?r:null),g[l]||g[o]?e.hasWrap&&(g[c?"flex-basis":"flex"]=g[o]?c?g[o]:`${i} ${n} ${g[o]}`:c?g[l]:`${i} ${n} ${g[l]}`):g=y(b,c?{"flex-grow":i,"flex-shrink":n,"flex-basis":r}:{flex:`${i} ${n} ${r}`}),y(g,{"box-sizing":"border-box"})}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(s.e))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(s.e))},token:t,providedIn:"root"}),t})();const w=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];let x=(()=>{class t extends s.b{constructor(t,e,i,n,s){super(t,n,e,s),this.layoutConfig=i,this.marshal=s,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(t){this.flexShrink=t||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(t){this.flexGrow=t||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(Object(a.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(Object(a.a)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(t){const e=t.value.split(" ");this.direction=e[0],this.wrap=void 0!==e[1]&&"wrap"===e[1],this.triggerUpdate()}updateWithValue(t){void 0===this.direction&&(this.direction=this.getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent)),void 0===this.wrap&&(this.wrap=this.hasWrap(this.parentElement));const e=this.direction,i=e.startsWith("row"),n=this.wrap;i&&n?this.styleCache=E:i&&!n?this.styleCache=S:!i&&n?this.styleCache=A:i||n||(this.styleCache=O);const r=String(t).replace(";",""),a=Object(s.j)(r,this.flexGrow,this.flexShrink);this.addStyles(a.join(" "),{direction:e,hasWrap:n})}triggerReflow(){const t=this.activatedValue;if(void 0!==t){const e=Object(s.j)(t+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(s.i),n.Nb(s.e),n.Nb(v),n.Nb(s.f))},t.\u0275dir=n.Ib({type:t,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[n.zb]}),t})(),C=(()=>{class t extends x{constructor(){super(...arguments),this.inputs=w}}return t.\u0275fac=function(e){return k(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[n.zb]}),t})();const k=n.Vb(C),S=new Map,O=new Map,E=new Map,A=new Map;new Map,new Map,new Map,new Map,new Map,new Map,new Map;let D=(()=>{class t extends s.h{buildStyles(t,e){const i={},[n,s]=t.split(" ");switch(n){case"center":i["justify-content"]="center";break;case"space-around":i["justify-content"]="space-around";break;case"space-between":i["justify-content"]="space-between";break;case"space-evenly":i["justify-content"]="space-evenly";break;case"end":case"flex-end":i["justify-content"]="flex-end";break;case"start":case"flex-start":default:i["justify-content"]="flex-start"}switch(s){case"start":case"flex-start":i["align-items"]=i["align-content"]="flex-start";break;case"center":i["align-items"]=i["align-content"]="center";break;case"end":case"flex-end":i["align-items"]=i["align-content"]="flex-end";break;case"space-between":i["align-content"]="space-between",i["align-items"]="stretch";break;case"space-around":i["align-content"]="space-around",i["align-items"]="stretch";break;case"baseline":i["align-content"]="stretch",i["align-items"]="baseline";break;case"stretch":default:i["align-items"]=i["align-content"]="stretch"}return y(i,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":"stretch"===s?h(e.layout)?null:"100%":null,"max-height":"stretch"===s&&h(e.layout)?"100%":null})}}return t.\u0275fac=function(e){return I(e||t)},t.\u0275prov=Object(n.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const I=n.Vb(D),T=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];let R=(()=>{class t extends s.b{constructor(t,e,i,n){super(t,i,e,n),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(Object(a.a)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(t){const e=this.layout||"row",i=this.inline;"row"===e&&i?this.styleCache=V:"row"!==e||i?"row-reverse"===e&&i?this.styleCache=B:"row-reverse"!==e||i?"column"===e&&i?this.styleCache=z:"column"!==e||i?"column-reverse"===e&&i?this.styleCache=H:"column-reverse"!==e||i||(this.styleCache=M):this.styleCache=P:this.styleCache=F:this.styleCache=N,this.addStyles(t,{layout:e,inline:i})}onLayoutChange(t){const e=t.value.split(" ");this.layout=e[0],this.inline=t.value.includes("inline"),l.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(s.i),n.Nb(D),n.Nb(s.f))},t.\u0275dir=n.Ib({type:t,features:[n.zb]}),t})(),j=(()=>{class t extends R{constructor(){super(...arguments),this.inputs=T}}return t.\u0275fac=function(e){return L(e||t)},t.\u0275dir=n.Ib({type:t,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[n.zb]}),t})();const L=n.Vb(j),N=new Map,P=new Map,F=new Map,M=new Map,V=new Map,z=new Map,B=new Map,H=new Map;let U=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[s.c,r.a]]}),t})()},XoHu:function(t,e,i){"use strict";function n(t){return null!==t&&"object"==typeof t}i.d(e,"a",function(){return n})},Y7HM:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("DH7j");function s(t){return!Object(n.a)(t)&&t-parseFloat(t)+1>=0}},Ylt2:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("quSY");class s extends n.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 i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}},bHdf:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("5+tZ"),s=i("SpAZ");function r(t=Number.POSITIVE_INFINITY){return Object(n.a)(s.a,t)}},bOdf:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("5+tZ");function s(t,e){return Object(n.a)(t,e,1)}},bSwM:function(t,e,i){"use strict";i.d(e,"a",function(){return w}),i.d(e,"b",function(){return C});var n=i("8LU1"),s=i("fXoL"),r=i("3Pt+"),a=i("FKr1"),o=i("R1ws"),l=i("GU7r"),c=i("u47x");const h=["input"],u=function(){return{enterDuration:150}},d=["*"],p=new s.s("mat-checkbox-default-options",{providedIn:"root",factory:m});function m(){return{color:"accent",clickAction:"check-indeterminate"}}let f=0;const g=m(),b={provide:r.k,useExisting:Object(s.W)(()=>w),multi:!0};class _{}class y{constructor(t){this._elementRef=t}}const v=Object(a.B)(Object(a.w)(Object(a.x)(Object(a.y)(y))));let w=(()=>{class t extends v{constructor(t,e,i,n,r,a,o){super(t),this._changeDetectorRef=e,this._focusMonitor=i,this._ngZone=n,this._animationMode=a,this._options=o,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++f,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new s.o,this.indeterminateChange=new s.o,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||g,this.color=this.defaultColor=this._options.color||g.color,this.tabIndex=parseInt(r)||0}get inputId(){return(this.id||this._uniqueId)+"-input"}get required(){return this._required}set required(t){this._required=Object(n.c)(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(t=>{t||Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}),this._syncIndeterminate(this._indeterminate)}ngAfterViewChecked(){}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}get checked(){return this._checked}set checked(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(t){const e=Object(n.c)(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(t){const e=t!=this._indeterminate;this._indeterminate=Object(n.c)(t),e&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(t){this.checked=!!t}registerOnChange(t){this._controlValueAccessorChangeFn=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this.disabled=t}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(t){let e=this._currentCheckState,i=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&i.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){i.classList.add(this._currentAnimationClass);const t=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{i.classList.remove(t)},1e3)})}}_emitChangeEvent(){const t=new _;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)}toggle(){this.checked=!this.checked}_onInputClick(t){var e;const i=null===(e=this._options)||void 0===e?void 0:e.clickAction;t.stopPropagation(),this.disabled||"noop"===i?this.disabled||"noop"!==i||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==i&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(t="keyboard",e){this._focusMonitor.focusVia(this._inputElement,t,e)}_onInteractionEvent(t){t.stopPropagation()}_getAnimationClassForCheckStateTransition(t,e){if("NoopAnimations"===this._animationMode)return"";let i="";switch(t){case 0:if(1===e)i="unchecked-checked";else{if(3!=e)return"";i="unchecked-indeterminate"}break;case 2:i=1===e?"unchecked-checked":"unchecked-indeterminate";break;case 1:i=2===e?"checked-unchecked":"checked-indeterminate";break;case 3:i=1===e?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+i}_syncIndeterminate(t){const e=this._inputElement;e&&(e.nativeElement.indeterminate=t)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l),s.Nb(s.h),s.Nb(c.h),s.Nb(s.B),s.Yb("tabindex"),s.Nb(o.a,8),s.Nb(p,8))},t.\u0275cmp=s.Hb({type:t,selectors:[["mat-checkbox"]],viewQuery:function(t,e){if(1&t&&(s.Ic(h,!0),s.Ic(a.r,!0)),2&t){let t;s.rc(t=s.cc())&&(e._inputElement=t.first),s.rc(t=s.cc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(s.Wb("id",e.id),s.Db("tabindex",null),s.Fb("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaDescribedby:["aria-describedby","ariaDescribedby"],value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[s.Bb([b]),s.zb],ngContentSelectors:d,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(s.kc(),s.Tb(0,"label",0,1),s.Tb(2,"span",2),s.Tb(3,"input",3,4),s.bc("change",function(t){return e._onInteractionEvent(t)})("click",function(t){return e._onInputClick(t)}),s.Sb(),s.Tb(5,"span",5),s.Ob(6,"span",6),s.Sb(),s.Ob(7,"span",7),s.Tb(8,"span",8),s.ec(),s.Tb(9,"svg",9),s.Ob(10,"path",10),s.Sb(),s.dc(),s.Ob(11,"span",11),s.Sb(),s.Sb(),s.Tb(12,"span",12,13),s.bc("cdkObserveContent",function(){return e._onLabelTextChange()}),s.Tb(14,"span",14),s.Ec(15,"\xa0"),s.Sb(),s.jc(16),s.Sb(),s.Sb()),2&t){const t=s.sc(1),i=s.sc(13);s.Db("for",e.inputId),s.Cb(2),s.Fb("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),s.Cb(1),s.lc("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex),s.Db("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked())("aria-describedby",e.ariaDescribedby),s.Cb(2),s.lc("matRippleTrigger",t)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",s.oc(19,u))}},directives:[a.r,l.a],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})(),x=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)}}),t})(),C=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},imports:[[a.s,a.i,l.c,x],a.i,x]}),t})()},bTqV:function(t,e,i){"use strict";i.d(e,"a",function(){return m}),i.d(e,"b",function(){return p}),i.d(e,"c",function(){return f});var n=i("FKr1"),s=i("R1ws"),r=i("fXoL"),a=i("u47x");const o=["mat-button",""],l=["*"],c=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class u{constructor(t){this._elementRef=t}}const d=Object(n.w)(Object(n.y)(Object(n.x)(u)));let p=(()=>{class t extends d{constructor(t,e,i){super(t),this._focusMonitor=e,this._animationMode=i,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const n of h)this._hasHostAttributes(n)&&this._getHostElement().classList.add(n);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.Nb(r.l),r.Nb(a.h),r.Nb(s.a,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){if(1&t&&r.Ic(n.r,!0),2&t){let t;r.rc(t=r.cc())&&(e.ripple=t.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(r.Db("disabled",e.disabled||null),r.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.zb],attrs:o,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.kc(),r.Tb(0,"span",0),r.jc(1),r.Sb(),r.Ob(2,"span",1),r.Ob(3,"span",2)),2&t&&(r.Cb(2),r.Fb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.lc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.r],styles:[c],encapsulation:2,changeDetection:0}),t})(),m=(()=>{class t extends p{constructor(t,e,i){super(e,t,i)}_haltDisabledEvents(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(a.h),r.Nb(r.l),r.Nb(s.a,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(t,e){1&t&&r.bc("click",function(t){return e._haltDisabledEvents(t)}),2&t&&(r.Db("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),r.Fb("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[r.zb],attrs:o,ngContentSelectors:l,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(r.kc(),r.Tb(0,"span",0),r.jc(1),r.Sb(),r.Ob(2,"span",1),r.Ob(3,"span",2)),2&t&&(r.Cb(2),r.Fb("mat-button-ripple-round",e.isRoundButton||e.isIconButton),r.lc("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[n.r],styles:[c],encapsulation:2,changeDetection:0}),t})(),f=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[n.s,n.i],n.i]}),t})()},bv9b:function(t,e,i){"use strict";i.d(e,"a",function(){return g}),i.d(e,"b",function(){return _});var n=i("fXoL"),s=i("ofXK"),r=i("FKr1"),a=i("8LU1"),o=i("R1ws"),l=i("quSY"),c=i("xgIS"),h=i("pLZG");const u=["primaryValueBar"];class d{constructor(t){this._elementRef=t}}const p=Object(r.w)(d,"primary"),m=new n.s("mat-progress-bar-location",{providedIn:"root",factory:function(){const t=Object(n.X)(s.d),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}});let f=0,g=(()=>{class t extends p{constructor(t,e,i,s){super(t),this._elementRef=t,this._ngZone=e,this._animationMode=i,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new n.o,this._animationEndSubscription=l.a.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+f++;const r=s?s.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${r}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===i}get value(){return this._value}set value(t){this._value=b(Object(a.f)(t)||0)}get bufferValue(){return this._bufferValue}set bufferValue(t){this._bufferValue=b(t||0)}_primaryTransform(){return{transform:`scale3d(${this.value/100}, 1, 1)`}}_bufferTransform(){return"buffer"===this.mode?{transform:`scale3d(${this.bufferValue/100}, 1, 1)`}:null}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=this._primaryValueBar.nativeElement;this._animationEndSubscription=Object(c.a)(t,"transitionend").pipe(Object(h.a)(e=>e.target===t)).subscribe(()=>{"determinate"!==this.mode&&"buffer"!==this.mode||this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(n.B),n.Nb(o.a,8),n.Nb(m,8))},t.\u0275cmp=n.Hb({type:t,selectors:[["mat-progress-bar"]],viewQuery:function(t,e){if(1&t&&n.Ic(u,!0),2&t){let t;n.rc(t=n.cc())&&(e._primaryValueBar=t.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100",1,"mat-progress-bar"],hostVars:4,hostBindings:function(t,e){2&t&&(n.Db("aria-valuenow","indeterminate"===e.mode||"query"===e.mode?null:e.value)("mode",e.mode),n.Fb("_mat-animation-noopable",e._isNoopAnimation))},inputs:{color:"color",mode:"mode",value:"value",bufferValue:"bufferValue"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[n.zb],decls:9,vars:4,consts:[["width","100%","height","4","focusable","false",1,"mat-progress-bar-background","mat-progress-bar-element"],["x","4","y","0","width","8","height","4","patternUnits","userSpaceOnUse",3,"id"],["cx","2","cy","2","r","2"],["width","100%","height","100%"],[1,"mat-progress-bar-buffer","mat-progress-bar-element",3,"ngStyle"],[1,"mat-progress-bar-primary","mat-progress-bar-fill","mat-progress-bar-element",3,"ngStyle"],["primaryValueBar",""],[1,"mat-progress-bar-secondary","mat-progress-bar-fill","mat-progress-bar-element"]],template:function(t,e){1&t&&(n.ec(),n.Tb(0,"svg",0),n.Tb(1,"defs"),n.Tb(2,"pattern",1),n.Ob(3,"circle",2),n.Sb(),n.Sb(),n.Ob(4,"rect",3),n.Sb(),n.dc(),n.Ob(5,"div",4),n.Ob(6,"div",5,6),n.Ob(8,"div",7)),2&t&&(n.Cb(2),n.lc("id",e.progressbarId),n.Cb(2),n.Db("fill",e._rectangleFillValue),n.Cb(1),n.lc("ngStyle",e._bufferTransform()),n.Cb(1),n.lc("ngStyle",e._primaryTransform()))},directives:[s.n],styles:['.mat-progress-bar{display:block;height:4px;overflow:hidden;position:relative;transition:opacity 250ms linear;width:100%}._mat-animation-noopable.mat-progress-bar{transition:none;animation:none}.mat-progress-bar .mat-progress-bar-element,.mat-progress-bar .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}.mat-progress-bar .mat-progress-bar-background{width:calc(100% + 10px)}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-background{display:none}.mat-progress-bar .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-buffer{border-top:solid 5px;opacity:.5}.mat-progress-bar .mat-progress-bar-secondary{display:none}.mat-progress-bar .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease}.cdk-high-contrast-active .mat-progress-bar .mat-progress-bar-fill{border-top:solid 4px}.mat-progress-bar .mat-progress-bar-fill::after{animation:none;content:"";display:inline-block;left:0}.mat-progress-bar[dir=rtl],[dir=rtl] .mat-progress-bar{transform:rotateY(180deg)}.mat-progress-bar[mode=query]{transform:rotateZ(180deg)}.mat-progress-bar[mode=query][dir=rtl],[dir=rtl] .mat-progress-bar[mode=query]{transform:rotateZ(180deg) rotateY(180deg)}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-fill,.mat-progress-bar[mode=query] .mat-progress-bar-fill{transition:none}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary,.mat-progress-bar[mode=query] .mat-progress-bar-primary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-translate 2000ms infinite linear;left:-145.166611%}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-primary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary,.mat-progress-bar[mode=query] .mat-progress-bar-secondary{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-translate 2000ms infinite linear;left:-54.888891%;display:block}.mat-progress-bar[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-secondary-indeterminate-scale 2000ms infinite linear}.mat-progress-bar[mode=buffer] .mat-progress-bar-background{-webkit-backface-visibility:hidden;backface-visibility:hidden;animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-buffer,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-primary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-secondary.mat-progress-bar-fill::after,.mat-progress-bar._mat-animation-noopable .mat-progress-bar-background{animation:none;transition-duration:1ms}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-8px)}}\n'],encapsulation:2,changeDetection:0}),t})();function b(t,e=0,i=100){return Math.max(e,Math.min(i,t))}let _=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[s.c,r.i],r.i]}),t})()},c2HN:function(t,e,i){"use strict";function n(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}i.d(e,"a",function(){return n})},cH1L:function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return a});var n=i("fXoL"),s=i("ofXK");const r=new n.s("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(n.X)(s.d)}});let a=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new n.o,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(r,8))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(r,8))},token:t,providedIn:"root"}),t})(),o=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})()},cp0P:function(t,e,i){"use strict";i.d(e,"a",function(){return l});var n=i("HDdC"),s=i("DH7j"),r=i("lJxs"),a=i("XoHu"),o=i("Cfvw");function l(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return c(e,null);if(Object(a.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return c(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return c(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(r.a)(t=>e(...t)))}return c(t,null)}function c(t,e){return new n.a(i=>{const n=t.length;if(0===n)return void i.complete();const s=new Array(n);let r=0,a=0;for(let l=0;l{h||(h=!0,a++),s[l]=t},error:t=>i.error(t),complete:()=>{r++,r!==n&&h||(a===n&&i.next(e?e.reduce((t,e,i)=>(t[e]=s[i],t),{}):s),i.complete())}}))}})}},d3UM:function(t,e,i){"use strict";i.d(e,"a",function(){return $}),i.d(e,"b",function(){return K});var n=i("rDax"),s=i("ofXK"),r=i("fXoL"),a=i("FKr1"),o=i("kmnG"),l=i("vxfF"),c=i("u47x"),h=i("8LU1"),u=i("0EQZ"),d=i("FtGj"),p=i("XNiG"),m=i("NXyV"),f=i("VRyK"),g=i("JX91"),b=i("eIep"),_=i("IzEk"),y=i("pLZG"),v=i("lJxs"),w=i("/uUt"),x=i("1G5W"),C=i("R0Ic"),k=i("cH1L"),S=i("3Pt+");const O=["trigger"],E=["panel"];function A(t,e){if(1&t&&(r.Tb(0,"span",8),r.Ec(1),r.Sb()),2&t){const t=r.fc();r.Cb(1),r.Fc(t.placeholder||"\xa0")}}function D(t,e){if(1&t&&(r.Tb(0,"span"),r.Ec(1),r.Sb()),2&t){const t=r.fc(2);r.Cb(1),r.Fc(t.triggerValue||"\xa0")}}function I(t,e){1&t&&r.jc(0,0,["*ngSwitchCase","true"])}function T(t,e){if(1&t&&(r.Tb(0,"span",9),r.Dc(1,D,2,1,"span",10),r.Dc(2,I,1,0,"ng-content",11),r.Sb()),2&t){const t=r.fc();r.lc("ngSwitch",!!t.customTrigger),r.Cb(2),r.lc("ngSwitchCase",!0)}}function R(t,e){if(1&t){const t=r.Ub();r.Tb(0,"div",12),r.Tb(1,"div",13,14),r.bc("@transformPanel.done",function(e){return r.uc(t),r.fc()._panelDoneAnimatingStream.next(e.toState)})("keydown",function(e){return r.uc(t),r.fc()._handleKeydown(e)}),r.jc(3,1),r.Sb(),r.Sb()}if(2&t){const t=r.fc();r.lc("@transformPanelWrap",void 0),r.Cb(1),r.Eb("mat-select-panel ",t._getPanelTheme(),""),r.Ac("transform-origin",t._transformOrigin)("font-size",t._triggerFontSize,"px"),r.lc("ngClass",t.panelClass)("@transformPanel",t.multiple?"showing-multiple":"showing"),r.Db("id",t.id+"-panel")("aria-multiselectable",t.multiple)("aria-label",t.ariaLabel||null)("aria-labelledby",t._getPanelAriaLabelledby())}}const j=[[["mat-select-trigger"]],"*"],L=["mat-select-trigger","*"],N={transformPanelWrap:Object(C.m)("transformPanelWrap",[Object(C.l)("* => void",Object(C.h)("@transformPanel",[Object(C.f)()],{optional:!0}))]),transformPanel:Object(C.m)("transformPanel",[Object(C.j)("void",Object(C.k)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Object(C.j)("showing",Object(C.k)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Object(C.j)("showing-multiple",Object(C.k)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Object(C.l)("void => *",Object(C.e)("120ms cubic-bezier(0, 0, 0.2, 1)")),Object(C.l)("* => void",Object(C.e)("100ms 25ms linear",Object(C.k)({opacity:0})))])};let P=0;const F=256,M=new r.s("mat-select-scroll-strategy"),V=new r.s("MAT_SELECT_CONFIG"),z={provide:M,deps:[n.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class B{constructor(t,e){this.source=t,this.value=e}}class H{constructor(t,e,i,n,s){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=i,this._parentFormGroup=n,this.ngControl=s}}const U=Object(a.x)(Object(a.B)(Object(a.y)(Object(a.z)(H)))),X=new r.s("MatSelectTrigger");let q=(()=>{class t extends U{constructor(t,e,i,n,s,a,o,l,c,h,u,d,w,x){var C,k,S;super(s,n,o,l,h),this._viewportRuler=t,this._changeDetectorRef=e,this._ngZone=i,this._dir=a,this._parentFormField=c,this.ngControl=h,this._liveAnnouncer=w,this._defaultOptions=x,this._panelOpen=!1,this._compareWith=(t,e)=>t===e,this._uid="mat-select-"+P++,this._triggerAriaLabelledBy=null,this._destroy=new p.a,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+P++,this._panelDoneAnimatingStream=new p.a,this._overlayPanelClass=(null===(C=this._defaultOptions)||void 0===C?void 0:C.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._required=!1,this._multiple=!1,this._disableOptionCentering=null!==(S=null===(k=this._defaultOptions)||void 0===k?void 0:k.disableOptionCentering)&&void 0!==S&&S,this.ariaLabel="",this.optionSelectionChanges=Object(m.a)(()=>{const t=this.options;return t?t.changes.pipe(Object(g.a)(t),Object(b.a)(()=>Object(f.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),null!=(null==x?void 0:x.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=x.typeaheadDebounceInterval),this._scrollStrategyFactory=d,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(u)||0,this.id=this.id}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(x.a)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe(Object(x.a)(this._destroy)).subscribe(t=>{t.added.forEach(t=>t.select()),t.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(Object(g.a)(null),Object(x.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._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(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,i=e===d.e||e===d.q||e===d.j||e===d.n,n=e===d.g||e===d.o,s=this._keyManager;if(!s.isTyping()&&n&&!Object(d.t)(t)||(this.multiple||t.altKey)&&i)t.preventDefault(),this.open();else if(!this.multiple){const e=this.selected;s.onKeydown(t);const i=this.selected;i&&e!==i&&this._liveAnnouncer.announce(i.viewValue,1e4)}}_handleOpenKeydown(t){const e=this._keyManager,i=t.keyCode,n=i===d.e||i===d.q,s=e.isTyping();if(n&&t.altKey)t.preventDefault(),this.close();else if(s||i!==d.g&&i!==d.o||!e.activeItem||Object(d.t)(t))if(!s&&this._multiple&&i===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 i=e.activeItemIndex;e.onKeydown(t),this._multiple&&n&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==i&&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._positioningSettled()})}_getPanelTheme(){return this._parentFormField?"mat-"+this._parentFormField.color:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value),this.stateChanges.next()})}_setSelectionByValue(t){if(this._selectionModel.selected.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(t=>this._selectValue(t)),this._sortValues();else{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(i){return!1}});return e&&this._selectionModel.select(e),e}_initKeyManager(){this._keyManager=new c.b(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Object(x.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe(Object(x.a)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):this._panelOpen||this.multiple||!this._keyManager.activeItem||this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const t=Object(f.a)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Object(x.a)(t)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Object(f.a)(...this.options.map(t=>t._stateChanges)).pipe(Object(x.a)(t)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(t,e){const i=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(i!==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)),i!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const t=this.options.toArray();this._selectionModel.sort((e,i)=>this.sortComparator?this.sortComparator(e,i,t):t.indexOf(e)-t.indexOf(i)),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(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}focus(t){this._elementRef.nativeElement.focus(t)}_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())||""}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let t=this._getLabelId()+" "+this._valueId;return this.ariaLabelledby&&(t+=" "+this.ariaLabelledby),t}_panelDoneAnimating(t){this.openedChange.emit(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.Nb(l.e),r.Nb(r.h),r.Nb(r.B),r.Nb(a.d),r.Nb(r.l),r.Nb(k.b,8),r.Nb(S.o,8),r.Nb(S.g,8),r.Nb(o.a,8),r.Nb(S.l,10),r.Yb("tabindex"),r.Nb(M),r.Nb(c.k),r.Nb(V,8))},t.\u0275dir=r.Ib({type:t,viewQuery:function(t,e){if(1&t&&(r.Ic(O,!0),r.Ic(E,!0),r.Ic(n.a,!0)),2&t){let t;r.rc(t=r.cc())&&(e.trigger=t.first),r.rc(t=r.cc())&&(e.panel=t.first),r.rc(t=r.cc())&&(e.overlayDir=t.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[r.zb,r.Ab]}),t})(),$=(()=>{class t extends q{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(t,e,i){const n=this._getItemHeight();return Math.min(Math.max(0,n*t-e+n/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe(Object(x.a)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Object(_.a)(1)).subscribe(()=>{this._triggerFontSize&&this.overlayDir.overlayRef&&this.overlayDir.overlayRef.overlayElement&&(this.overlayDir.overlayRef.overlayElement.style.fontSize=this._triggerFontSize+"px")}))}_scrollOptionIntoView(t){const e=Object(a.u)(t,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=Object(a.v)((t+e)*i,i,this.panel.nativeElement.scrollTop,F)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(t){this.panelOpen?this._scrollTop=0:(this.overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(t)}_getChangeEvent(t){return new B(this,t)}_calculateOverlayOffsetX(){const t=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),e=this._viewportRuler.getViewportSize(),i=this._isRtl(),n=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}i||(s*=-1);const r=0-(t.left+s-(i?n:0)),a=t.right+s-e.width+(i?0:n);r>0?s+=r+8:a>0&&(s-=a+8),this.overlayDir.offsetX=Math.round(s),this.overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(t,e,i){const n=this._getItemHeight(),s=(n-this._triggerRect.height)/2,r=Math.floor(F/n);let a;return this.disableOptionCentering?0:(a=0===this._scrollTop?t*n:this._scrollTop===i?(t-(this._getItemCount()-r))*n+(n-(this._getItemCount()*n-F)%n):e-n/2,Math.round(-1*a-s))}_checkOverlayWithinViewport(t){const e=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),n=this._triggerRect.top-8,s=i.height-this._triggerRect.bottom-8,r=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,F)-r-this._triggerRect.height;a>s?this._adjustPanelUp(a,s):r>n?this._adjustPanelDown(r,n,t):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(t,e){const i=Math.round(t-e);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(t,e,i){const n=Math.round(t-e);if(this._scrollTop+=n,this._offsetY+=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const t=this._getItemHeight(),e=this._getItemCount(),i=Math.min(e*t,F),n=e*t-i;let s;s=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),s+=Object(a.u)(s,this.options,this.optionGroups);const r=i/2;this._scrollTop=this._calculateOverlayScroll(s,r,n),this._offsetY=this._calculateOverlayOffsetY(s,r,n),this._checkOverlayWithinViewport(n)}_getOriginBasedOnOption(){const t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-e+t/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return t.\u0275fac=function(e){return W(e||t)},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,i){if(1&t&&(r.Gb(i,X,!0),r.Gb(i,a.m,!0),r.Gb(i,a.f,!0)),2&t){let t;r.rc(t=r.cc())&&(e.customTrigger=t.first),r.rc(t=r.cc())&&(e.options=t),r.rc(t=r.cc())&&(e.optionGroups=t)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&r.bc("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(r.Db("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.Fb("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"},exportAs:["matSelect"],features:[r.Bb([{provide:o.d,useExisting:t},{provide:a.g,useExisting:t}]),r.zb],ngContentSelectors:L,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[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.kc(j),r.Tb(0,"div",0,1),r.bc("click",function(){return e.toggle()}),r.Tb(3,"div",2),r.Dc(4,A,2,1,"span",3),r.Dc(5,T,3,2,"span",4),r.Sb(),r.Tb(6,"div",5),r.Ob(7,"div",6),r.Sb(),r.Sb(),r.Dc(8,R,4,14,"ng-template",7),r.bc("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){const t=r.sc(1);r.Db("aria-owns",e.panelOpen?e.id+"-panel":null),r.Cb(3),r.lc("ngSwitch",e.empty),r.Db("id",e._valueId),r.Cb(1),r.lc("ngSwitchCase",!0),r.Cb(1),r.lc("ngSwitchCase",!1),r.Cb(3),r.lc("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",t)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[n.b,s.o,s.p,n.a,s.q,s.k],styles:[".mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}\n"],encapsulation:2,data:{animation:[N.transformPanelWrap,N.transformPanel]},changeDetection:0}),t})();const W=r.Vb($);let K=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},providers:[z],imports:[[s.c,n.f,a.n,a.i],l.b,o.e,a.n,a.i]}),t})()},dNgK:function(t,e,i){"use strict";i.d(e,"a",function(){return E}),i.d(e,"b",function(){return S});var n=i("rDax"),s=i("+rOU"),r=i("ofXK"),a=i("fXoL"),o=i("FKr1"),l=i("bTqV"),c=i("XNiG"),h=i("IzEk"),u=i("1G5W"),d=i("R0Ic"),p=i("u47x"),m=i("0MNC"),f=i("nLfN");function g(t,e){if(1&t){const t=a.Ub();a.Tb(0,"div",1),a.Tb(1,"button",2),a.bc("click",function(){return a.uc(t),a.fc().action()}),a.Ec(2),a.Sb(),a.Sb()}if(2&t){const t=a.fc();a.Cb(2),a.Fc(t.data.action)}}function b(t,e){}const _=new a.s("MatSnackBarData");class y{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const v=Math.pow(2,31)-1;class w{constructor(t,e){this._overlayRef=e,this._afterDismissed=new c.a,this._afterOpened=new c.a,this._onAction=new c.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,v))}_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 x=(()=>{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)(a.Nb(w),a.Nb(_))},t.\u0275cmp=a.Hb({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&&(a.Tb(0,"span"),a.Ec(1),a.Sb(),a.Dc(2,g,3,1,"div",0)),2&t&&(a.Cb(1),a.Fc(e.data.message),a.Cb(1),a.lc("ngIf",e.hasAction))},directives:[r.m,l.b],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 C={snackBarState:Object(d.m)("state",[Object(d.j)("void, hidden",Object(d.k)({transform:"scale(0.8)",opacity:0})),Object(d.j)("visible",Object(d.k)({transform:"scale(1)",opacity:1})),Object(d.l)("* => visible",Object(d.e)("150ms cubic-bezier(0, 0, 0.2, 1)")),Object(d.l)("* => void, * => hidden",Object(d.e)("75ms cubic-bezier(0.4, 0.0, 1, 1)",Object(d.k)({opacity:0})))])};let k=(()=>{class t extends s.a{constructor(t,e,i,n,s){super(),this._ngZone=t,this._elementRef=e,this._changeDetectorRef=i,this._platform=n,this.snackBarConfig=s,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new c.a,this._onExit=new c.a,this._onEnter=new c.a,this._animationState="void",this.attachDomPortal=t=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(t)),this._live="assertive"!==s.politeness||s.announcementMessage?"off"===s.politeness?"off":"polite":"assertive"}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:i}=t;if(("void"===i&&"void"!==e||"hidden"===i)&&this._completeExit(),"visible"===i){const t=this._onEnter;this._ngZone.run(()=>{t.next(),t.complete()})}}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}exit(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),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()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const t=this._elementRef.nativeElement.querySelector("[aria-hidden]"),e=this._elementRef.nativeElement.querySelector("[aria-live]");if(t&&e){let i=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(i=document.activeElement),t.removeAttribute("aria-hidden"),e.appendChild(t),null==i||i.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.B),a.Nb(a.l),a.Nb(a.h),a.Nb(f.a),a.Nb(y))},t.\u0275cmp=a.Hb({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){if(1&t&&a.zc(s.c,!0),2&t){let t;a.rc(t=a.cc())&&(e._portalOutlet=t.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&a.Bc("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&a.Cc("@state",e._animationState)},features:[a.zb],decls:3,vars:1,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(a.Tb(0,"div",0),a.Dc(1,b,0,0,"ng-template",1),a.Sb(),a.Ob(2,"div")),2&t&&(a.Cb(2),a.Db("aria-live",e._live))},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:[C.snackBarState]}}),t})(),S=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},imports:[[n.f,s.g,r.c,l.c,o.i],o.i]}),t})();const O=new a.s("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new y}});let E=(()=>{class t{constructor(t,e,i,n,s,r){this._overlay=t,this._live=e,this._injector=i,this._breakpointObserver=n,this._parentSnackBar=s,this._defaultConfig=r,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=x,this.snackBarContainerComponent=k,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="",i){const n=Object.assign(Object.assign({},this._defaultConfig),i);return n.data={message:t,action:e},n.announcementMessage===t&&(n.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,n)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,e){const i=a.t.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:y,useValue:e}]}),n=new s.d(this.snackBarContainerComponent,e.viewContainerRef,i),r=t.attach(n);return r.instance.snackBarConfig=e,r.instance}_attach(t,e){const i=Object.assign(Object.assign(Object.assign({},new y),this._defaultConfig),e),n=this._createOverlay(i),r=this._attachSnackBarContainer(n,i),o=new w(r,n);if(t instanceof a.N){const e=new s.h(t,null,{$implicit:i.data,snackBarRef:o});o.instance=r.attachTemplatePortal(e)}else{const e=this._createInjector(i,o),n=new s.d(t,void 0,e),a=r.attachComponentPortal(n);o.instance=a.instance}return this._breakpointObserver.observe(m.b.HandsetPortrait).pipe(Object(u.a)(n.detachments())).subscribe(t=>{const e=n.overlayElement.classList;t.matches?e.add(this.handsetCssClass):e.remove(this.handsetCssClass)}),i.announcementMessage&&r._onAnnounce.subscribe(()=>{this._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(o,i),this._openedSnackBarRef=o,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))}_createOverlay(t){const e=new n.d;e.direction=t.direction;let i=this._overlay.position().global();const s="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!s||"end"===t.horizontalPosition&&s,a=!r&&"center"!==t.horizontalPosition;return r?i.left("0"):a?i.right("0"):i.centerHorizontally(),"top"===t.verticalPosition?i.top("0"):i.bottom("0"),e.positionStrategy=i,this._overlay.create(e)}_createInjector(t,e){return a.t.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:w,useValue:e},{provide:_,useValue:t.data}]})}}return t.\u0275fac=function(e){return new(e||t)(a.Xb(n.c),a.Xb(p.k),a.Xb(a.t),a.Xb(m.a),a.Xb(t,12),a.Xb(O))},t.\u0275prov=Object(a.Jb)({factory:function(){return new t(Object(a.Xb)(n.c),Object(a.Xb)(p.k),Object(a.Xb)(a.p),Object(a.Xb)(m.a),Object(a.Xb)(t,12),Object(a.Xb)(O))},token:t,providedIn:S}),t})()},e1Vu:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return RPN});const RPNOperators=["+","-","*","/","(",")"];function RPNOperationPriority(t){let e=0;switch(t){case"+":case"-":e=1;break;case"*":case"/":e=2;break;case"(":case")":e=0;break;default:throw new Error("Unsupported operator!")}return e}function RPNGetOperatorResult(t,e,i){let n=0;switch(i){case"+":n=t+e;break;case"-":n=t-e;break;case"*":n=t*e;break;case"/":try{n=t/e}catch(s){throw s}break;default:throw new Error("Operation has no result")}return n}function rpn1(strinputs){if(0===strinputs.length)return 0;let arinputs=strinputs.split(/(\d)/),stack=[];for(var i=0;i1)throw new Error("Inputted expression has too many values.");return stack.pop()}class RPN{constructor(){this._arInputs=[]}get InputArray(){return this._arInputs}toString(){return this._arInputs.join(" ")}buildExpress(t){let e=new Array,i="";for(let s=0;s=0){for(i.length>0&&(this._arInputs.push(i),i="");e.length>0;){if("("===(n=e.pop())||RPNOperationPriority(n)0&&(this._arInputs.push(i),i="");e.length>0&&"("!==(n=e.pop());)this._arInputs.push(n)}else i+=r}for(i.length>0&&this._arInputs.push(i);e.length>0;){var n=e.pop();this._arInputs.push(n)}return this._arInputs.toString()}WorkoutResult(){let t=new Array,e=0;for(let n=0;ni.pipe(a((i,r)=>Object(s.a)(t(i,r)).pipe(Object(n.a)((t,n)=>e(i,t,r,n))))):e=>e.lift(new o(t))}class o{constructor(t){this.project=t}call(t,e){return e.subscribe(new l(t,this.project))}}class l extends r.b{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(n){return void this.destination.error(n)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new r.a(this),n=this.destination;n.add(i),this.innerSubscription=Object(r.c)(t,i),this.innerSubscription!==i&&n.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},eNwd:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("3N8a");class s extends n.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return null!==i&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}}var r=i("IjjT");class a extends r.a{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,n=-1,s=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++n{class t{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(t){this._vertical=Object(n.c)(t)}get inset(){return this._inset}set inset(t){this._inset=Object(n.c)(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(r.Db("aria-orientation",e.vertical?"vertical":"horizontal"),r.Fb("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t})(),o=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.i],s.i]}),t})()},f6nW:function(t,e,i){"use strict";i.d(e,"a",function(){return x}),i.d(e,"b",function(){return j}),i.d(e,"c",function(){return k}),i.d(e,"d",function(){return q}),i.d(e,"e",function(){return D}),i.d(e,"f",function(){return R}),i.d(e,"g",function(){return O}),i.d(e,"h",function(){return W}),i.d(e,"i",function(){return U}),i.d(e,"j",function(){return T}),i.d(e,"k",function(){return S}),i.d(e,"l",function(){return $}),i.d(e,"m",function(){return z}),i.d(e,"n",function(){return G}),i.d(e,"o",function(){return K}),i.d(e,"p",function(){return X}),i.d(e,"q",function(){return it}),i.d(e,"r",function(){return rt}),i.d(e,"s",function(){return st}),i.d(e,"t",function(){return Z}),i.d(e,"u",function(){return tt}),i.d(e,"v",function(){return J}),i.d(e,"w",function(){return et}),i.d(e,"x",function(){return N}),i.d(e,"y",function(){return P});var n=i("8LU1"),s=i("0EQZ"),r=i("fXoL"),a=i("cH1L"),o=i("nLfN"),l=i("vxfF"),c=i("ofXK"),h=i("XNiG"),u=i("Cfvw"),d=i("2Vo4"),p=i("7+OI"),m=i("LRne"),f=i("1G5W"),g=i("IzEk");const b=[[["caption"]],[["colgroup"],["col"]]],_=["caption","colgroup, col"];function y(t,e){if(1&t&&(r.Tb(0,"th",3),r.Ec(1),r.Sb()),2&t){const t=r.fc();r.Ac("text-align",t.justify),r.Cb(1),r.Gc(" ",t.headerText," ")}}function v(t,e){if(1&t&&(r.Tb(0,"td",4),r.Ec(1),r.Sb()),2&t){const t=e.$implicit,i=r.fc();r.Ac("text-align",i.justify),r.Cb(1),r.Gc(" ",i.dataAccessor(t,i.name)," ")}}function w(t){return class extends t{constructor(...t){super(...t),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(t){const e=this._sticky;this._sticky=Object(n.c)(t),this._hasStickyChanged=e!==this._sticky}hasStickyChanged(){const t=this._hasStickyChanged;return this._hasStickyChanged=!1,t}resetStickyChanged(){this._hasStickyChanged=!1}}}const x=new r.s("CDK_TABLE"),C=new r.s("text-column-options");let k=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkCellDef",""]]}),t})(),S=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkHeaderCellDef",""]]}),t})(),O=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkFooterCellDef",""]]}),t})();class E{}const A=w(E);let D=(()=>{class t extends A{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(n.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.Nb(x,8))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,e,i){if(1&t&&(r.Gb(i,k,!0),r.Gb(i,S,!0),r.Gb(i,O,!0)),2&t){let t;r.rc(t=r.cc())&&(e.cell=t.first),r.rc(t=r.cc())&&(e.headerCell=t.first),r.rc(t=r.cc())&&(e.footerCell=t.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[r.Bb([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),r.zb]}),t})();class I{constructor(t,e){const i=e.nativeElement.classList;for(const n of t._columnCssClassName)i.add(n)}}let T=(()=>{class t extends I{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(D),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[r.zb]}),t})(),R=(()=>{class t extends I{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(D),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:["role","gridcell",1,"cdk-footer-cell"],features:[r.zb]}),t})(),j=(()=>{class t extends I{constructor(t,e){super(t,e)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(D),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:["role","gridcell",1,"cdk-cell"],features:[r.zb]}),t})();class L{constructor(){this.tasks=[],this.endTasks=[]}}const N=new r.s("_COALESCED_STYLE_SCHEDULER");let P=(()=>{class t{constructor(t){this._ngZone=t,this._currentSchedule=null,this._destroyed=new h.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 L,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 L;for(const e of t.tasks)e();for(const e of t.endTasks)e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?Object(u.a)(Promise.resolve(void 0)):this._ngZone.onStable.pipe(Object(g.a)(1))}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.B))},t.\u0275prov=r.Jb({token:t,factory:t.\u0275fac}),t})(),F=(()=>{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 z?t.headerCell.template:this instanceof U?t.footerCell.template:t.cell.template}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N),r.Nb(r.u))},t.\u0275dir=r.Ib({type:t,features:[r.Ab]}),t})();class M extends F{}const V=w(M);let z=(()=>{class t extends V{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N),r.Nb(r.u),r.Nb(x,8))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[r.zb,r.Ab]}),t})();class B extends F{}const H=w(B);let U=(()=>{class t extends H{constructor(t,e,i){super(t,e),this._table=i}ngOnChanges(t){super.ngOnChanges(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N),r.Nb(r.u),r.Nb(x,8))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[r.zb,r.Ab]}),t})(),X=(()=>{class t extends F{constructor(t,e,i){super(t,e),this._table=i}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N),r.Nb(r.u),r.Nb(x,8))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[r.zb]}),t})(),q=(()=>{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.Nb(r.R))},t.\u0275dir=r.Ib({type:t,selectors:[["","cdkCellOutlet",""]]}),t.mostRecentCellOutlet=null,t})(),$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({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.Pb(0,0)},directives:[q],encapsulation:2}),t})(),W=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({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.Pb(0,0)},directives:[q],encapsulation:2}),t})(),K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Hb({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.Pb(0,0)},directives:[q],encapsulation:2}),t})(),G=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.N))},t.\u0275dir=r.Ib({type:t,selectors:[["ng-template","cdkNoDataRow",""]]}),t})();const Y=["top","bottom","left","right"];class Q{constructor(t,e,i,n,s=!0,r=!0){this._isNativeHtmlTable=t,this._stickCellCss=e,this.direction=i,this._coalescedStyleScheduler=n,this._isBrowser=s,this._needsPositionStickyOnElement=r,this._cachedCellWidths=[]}clearStickyPositioning(t,e){const i=[];for(const n of t)if(n.nodeType===n.ELEMENT_NODE){i.push(n);for(let t=0;t{for(const t of i)this._removeStickyStyle(t,e)})}updateStickyColumns(t,e,i,n=!0){if(!t.length||!this._isBrowser||!e.some(t=>t)&&!i.some(t=>t))return;const s=t[0],r=s.children.length,a=this._getCellWidths(s,n),o=this._getStickyStartColumnPositions(a,e),l=this._getStickyEndColumnPositions(a,i);this._scheduleStyleChanges(()=>{const n="rtl"===this.direction,s=n?"right":"left",a=n?"left":"right";for(const c of t)for(let t=0;t{for(let t=0;t{e.some(t=>!t)?this._removeStickyStyle(i,["bottom"]):this._addStickyStyle(i,"bottom",0)})}_removeStickyStyle(t,e){for(const i of e)t.style[i]="";Y.some(i=>-1===e.indexOf(i)&&t.style[i])?t.style.zIndex=this._getCalculatedZIndex(t):(t.style.zIndex="",this._needsPositionStickyOnElement&&(t.style.position=""),t.classList.remove(this._stickCellCss))}_addStickyStyle(t,e,i){t.classList.add(this._stickCellCss),t.style[e]=i+"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 i=0;for(const n of Y)t.style[n]&&(i+=e[n]);return i?""+i:""}_getCellWidths(t,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;const i=[],n=t.children;for(let s=0;s0;s--)e[s]&&(i[s]=n,n+=t[s]);return i}_scheduleStyleChanges(t){this._coalescedStyleScheduler?this._coalescedStyleScheduler.schedule(t):t()}}let Z=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.R),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["","rowOutlet",""]]}),t})(),J=(()=>{class t{constructor(t,e){this.viewContainer=t,this.elementRef=e}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.R),r.Nb(r.l))},t.\u0275dir=r.Ib({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.Nb(r.R),r.Nb(r.l))},t.\u0275dir=r.Ib({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.Nb(r.R),r.Nb(r.l))},t.\u0275dir=r.Ib({type:t,selectors:[["","noDataRowOutlet",""]]}),t})(),it=(()=>{class t{constructor(t,e,i,n,s,r,a,o,l,c){this._differs=t,this._changeDetectorRef=e,this._elementRef=i,this._dir=s,this._platform=a,this._viewRepeater=o,this._coalescedStyleScheduler=l,this._viewportRuler=c,this._onDestroy=new h.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._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new d.a({start:0,end:Number.MAX_VALUE}),n||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(n.c)(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(t){this._fixedLayout=Object(n.c)(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((t,e)=>this.trackBy?this.trackBy(e.dataIndex,e.data):e),this._viewportRuler&&this._viewportRuler.change().pipe(Object(f.a)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),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,i)=>this._getEmbeddedViewArgs(t.item,i),t=>t.item.data,t=>{1===t.operation&&t.context&&this._renderCellTemplateForItem(t.record.item.rowDef,t.context)}):t.forEachOperation((t,i,n)=>{if(null==t.previousIndex){const e=t.item;this._renderRow(this._rowOutlet,e.rowDef,n,{$implicit:e.data})}else if(null==n)e.remove(i);else{const t=e.get(i);e.move(t,n)}}),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}setNoDataRow(t){this._customNoDataRow=t}updateStickyHeaderRowStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");const i=this._headerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,i,"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 i=this._footerRowDefs.map(t=>t.sticky);this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,i,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,i),this._footerRowDefs.forEach(t=>t.resetStickyChanged())}updateStickyColumnStyles(){const t=this._getRenderedRows(this._headerRowOutlet),e=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...t,...e,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),t.forEach((t,e)=>{this._addStickyColumnStyles([t],this._headerRowDefs[e])}),this._rowDefs.forEach(t=>{const i=[];for(let n=0;n{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 i=0;i{const s=i&&i.has(n)?i.get(n):[];if(s.length){const t=s.shift();return t.dataIndex=e,t}return{data:t,rowDef:n,dataIndex:e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),nt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=nt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=nt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=nt(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 i=this._headerRowDefs.reduce(t,!1);i&&this._forceRenderHeaderRows();const n=this._footerRowDefs.reduce(t,!1);return n&&this._forceRenderFooterRows(),e||i||n}_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(p.a)(this.dataSource)?t=this.dataSource:Array.isArray(this.dataSource)&&(t=Object(m.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 i=Array.from(e.columns||[]).map(t=>this._columnDefsByName.get(t)),n=i.map(t=>t.sticky),s=i.map(t=>t.stickyEnd);this._stickyStyler.updateStickyColumns(t,n,s,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(t){const e=[];for(let i=0;i!i.when||i.when(e,t));else{let n=this._rowDefs.find(i=>i.when&&i.when(e,t))||this._defaultRowDef;n&&i.push(n)}return i}_getEmbeddedViewArgs(t,e){return{templateRef:t.rowDef.template,context:{$implicit:t.data},index:e}}_renderRow(t,e,i,n={}){const s=t.viewContainer.createEmbeddedView(e.template,n,i);return this._renderCellTemplateForItem(e,n),s}_renderCellTemplateForItem(t,e){for(let i of this._getCellTemplates(t))q.mostRecentCellOutlet&&q.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const t=this._rowOutlet.viewContainer;for(let e=0,i=t.length;e{const i=this._columnDefsByName.get(e);return t.extractCellTemplate(i)}):[]}_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 i of e){const e=this._document.createElement(i.tag);e.setAttribute("role","rowgroup");for(const t of i.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._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Q(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement),(this._dir?this._dir.change:Object(m.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(){const t=this._customNoDataRow||this._noDataRow;if(t){const e=0===this._rowOutlet.viewContainer.length;if(e!==this._isShowingNoDataRow){const i=this._noDataRowOutlet.viewContainer;e?i.createEmbeddedView(t.templateRef):i.clear(),this._isShowingNoDataRow=e}}}}return t.\u0275fac=function(e){return new(e||t)(r.Nb(r.u),r.Nb(r.h),r.Nb(r.l),r.Yb("role"),r.Nb(a.b,8),r.Nb(c.d),r.Nb(o.a),r.Nb(s.g,8),r.Nb(N,8),r.Nb(l.e,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,e,i){if(1&t&&(r.Gb(i,G,!0),r.Gb(i,D,!0),r.Gb(i,X,!0),r.Gb(i,z,!0),r.Gb(i,U,!0)),2&t){let t;r.rc(t=r.cc())&&(e._noDataRow=t.first),r.rc(t=r.cc())&&(e._contentColumnDefs=t),r.rc(t=r.cc())&&(e._contentRowDefs=t),r.rc(t=r.cc())&&(e._contentHeaderRowDefs=t),r.rc(t=r.cc())&&(e._contentFooterRowDefs=t)}},viewQuery:function(t,e){if(1&t&&(r.zc(Z,!0),r.zc(J,!0),r.zc(tt,!0),r.zc(et,!0)),2&t){let t;r.rc(t=r.cc())&&(e._rowOutlet=t.first),r.rc(t=r.cc())&&(e._headerRowOutlet=t.first),r.rc(t=r.cc())&&(e._footerRowOutlet=t.first),r.rc(t=r.cc())&&(e._noDataRowOutlet=t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,e){2&t&&r.Fb("cdk-table-fixed-layout",e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},exportAs:["cdkTable"],features:[r.Bb([{provide:x,useExisting:t},{provide:s.g,useClass:s.e},{provide:N,useClass:P}])],ngContentSelectors:_,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,e){1&t&&(r.kc(b),r.jc(0),r.jc(1,1),r.Pb(2,0),r.Pb(3,1),r.Pb(4,2),r.Pb(5,3))},directives:[J,Z,et,tt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),t})();function nt(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.Nb(it,8),r.Nb(C,8))},t.\u0275cmp=r.Hb({type:t,selectors:[["cdk-text-column"]],viewQuery:function(t,e){if(1&t&&(r.zc(D,!0),r.zc(k,!0),r.zc(S,!0)),2&t){let t;r.rc(t=r.cc())&&(e.columnDef=t.first),r.rc(t=r.cc())&&(e.cell=t.first),r.rc(t=r.cc())&&(e.headerCell=t.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.Rb(0,0),r.Dc(1,y,2,3,"th",1),r.Dc(2,v,2,3,"td",2),r.Qb())},directives:[D,S,k,T,j],encapsulation:2}),t})(),rt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[l.d]]}),t})()},fXoL:function(t,e,i){"use strict";i.d(e,"a",function(){return ci}),i.d(e,"b",function(){return nc}),i.d(e,"c",function(){return Zl}),i.d(e,"d",function(){return Yl}),i.d(e,"e",function(){return Ql}),i.d(e,"f",function(){return Zc}),i.d(e,"g",function(){return zc}),i.d(e,"h",function(){return Bo}),i.d(e,"i",function(){return mc}),i.d(e,"j",function(){return mo}),i.d(e,"k",function(){return ac}),i.d(e,"l",function(){return _o}),i.d(e,"m",function(){return Kc}),i.d(e,"n",function(){return On}),i.d(e,"o",function(){return Ol}),i.d(e,"p",function(){return mr}),i.d(e,"q",function(){return yi}),i.d(e,"r",function(){return O}),i.d(e,"s",function(){return li}),i.d(e,"t",function(){return Ir}),i.d(e,"u",function(){return No}),i.d(e,"v",function(){return Po}),i.d(e,"w",function(){return rc}),i.d(e,"x",function(){return Zo}),i.d(e,"y",function(){return Hc}),i.d(e,"z",function(){return Qo}),i.d(e,"A",function(){return Nc}),i.d(e,"B",function(){return bc}),i.d(e,"C",function(){return vi}),i.d(e,"D",function(){return ic}),i.d(e,"E",function(){return ec}),i.d(e,"F",function(){return Al}),i.d(e,"G",function(){return vo}),i.d(e,"H",function(){return yo}),i.d(e,"I",function(){return Tn}),i.d(e,"J",function(){return xo}),i.d(e,"K",function(){return yn}),i.d(e,"L",function(){return xi}),i.d(e,"M",function(){return qc}),i.d(e,"N",function(){return Wo}),i.d(e,"O",function(){return kc}),i.d(e,"P",function(){return hi}),i.d(e,"Q",function(){return Co}),i.d(e,"R",function(){return tl}),i.d(e,"S",function(){return R}),i.d(e,"T",function(){return Pc}),i.d(e,"U",function(){return b}),i.d(e,"V",function(){return jc}),i.d(e,"W",function(){return p}),i.d(e,"X",function(){return Ti}),i.d(e,"Y",function(){return Rc}),i.d(e,"Z",function(){return Yc}),i.d(e,"ab",function(){return Ec}),i.d(e,"bb",function(){return sc}),i.d(e,"cb",function(){return gr}),i.d(e,"db",function(){return Ja}),i.d(e,"eb",function(){return bn}),i.d(e,"fb",function(){return Ji}),i.d(e,"gb",function(){return Hi}),i.d(e,"hb",function(){return Xi}),i.d(e,"ib",function(){return Ki}),i.d(e,"jb",function(){return $i}),i.d(e,"kb",function(){return qi}),i.d(e,"lb",function(){return Wi}),i.d(e,"mb",function(){return Ga}),i.d(e,"nb",function(){return Gc}),i.d(e,"ob",function(){return Ya}),i.d(e,"pb",function(){return Qa}),i.d(e,"qb",function(){return Ui}),i.d(e,"rb",function(){return F}),i.d(e,"sb",function(){return zr}),i.d(e,"tb",function(){return oa}),i.d(e,"ub",function(){return aa}),i.d(e,"vb",function(){return Ka}),i.d(e,"wb",function(){return Ot}),i.d(e,"xb",function(){return h}),i.d(e,"yb",function(){return Bi}),i.d(e,"zb",function(){return Rr}),i.d(e,"Ab",function(){return yt}),i.d(e,"Bb",function(){return ho}),i.d(e,"Cb",function(){return bs}),i.d(e,"Db",function(){return qr}),i.d(e,"Eb",function(){return Ha}),i.d(e,"Fb",function(){return Ea}),i.d(e,"Gb",function(){return Hl}),i.d(e,"Hb",function(){return K}),i.d(e,"Ib",function(){return et}),i.d(e,"Jb",function(){return g}),i.d(e,"Kb",function(){return _}),i.d(e,"Lb",function(){return Z}),i.d(e,"Mb",function(){return it}),i.d(e,"Nb",function(){return Gr}),i.d(e,"Ob",function(){return ea}),i.d(e,"Pb",function(){return sa}),i.d(e,"Qb",function(){return na}),i.d(e,"Rb",function(){return ia}),i.d(e,"Sb",function(){return ta}),i.d(e,"Tb",function(){return Jr}),i.d(e,"Ub",function(){return ra}),i.d(e,"Vb",function(){return si}),i.d(e,"Wb",function(){return Ua}),i.d(e,"Xb",function(){return Ii}),i.d(e,"Yb",function(){return ri}),i.d(e,"Zb",function(){return Gl}),i.d(e,"ac",function(){return Yr}),i.d(e,"bc",function(){return la}),i.d(e,"cc",function(){return ql}),i.d(e,"dc",function(){return we}),i.d(e,"ec",function(){return ve}),i.d(e,"fc",function(){return pa}),i.d(e,"gc",function(){return wl}),i.d(e,"hc",function(){return xl}),i.d(e,"ic",function(){return Cl}),i.d(e,"jc",function(){return ga}),i.d(e,"kc",function(){return fa}),i.d(e,"lc",function(){return Qr}),i.d(e,"mc",function(){return ba}),i.d(e,"nc",function(){return _a}),i.d(e,"oc",function(){return fl}),i.d(e,"pc",function(){return gl}),i.d(e,"qc",function(){return bl}),i.d(e,"rc",function(){return Ml}),i.d(e,"sc",function(){return Kr}),i.d(e,"tc",function(){return Dn}),i.d(e,"uc",function(){return $t}),i.d(e,"vc",function(){return vn}),i.d(e,"wc",function(){return wn}),i.d(e,"xc",function(){return J}),i.d(e,"yc",function(){return Ul}),i.d(e,"zc",function(){return Vl}),i.d(e,"Ac",function(){return Oa}),i.d(e,"Bc",function(){return ca}),i.d(e,"Cc",function(){return Xa}),i.d(e,"Dc",function(){return Wr}),i.d(e,"Ec",function(){return Ma}),i.d(e,"Fc",function(){return Va}),i.d(e,"Gc",function(){return za}),i.d(e,"Hc",function(){return Ba}),i.d(e,"Ic",function(){return zl});var n=i("XNiG"),s=i("quSY"),r=i("HDdC"),a=i("VRyK"),o=i("w1tV");function l(t){for(let e in t)if(t[e]===l)return e;throw Error("Could not find renamed property on target object.")}function c(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function h(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(h).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 i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function u(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const d=l({__forward_ref__:l});function p(t){return t.__forward_ref__=p,t.toString=function(){return h(this())},t}function m(t){return f(t)?t():t}function f(t){return"function"==typeof t&&t.hasOwnProperty(d)&&t.__forward_ref__===p}function g(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}const b=g;function _(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function y(t){return v(t,x)||v(t,k)}function v(t,e){return t.hasOwnProperty(e)?t[e]:null}function w(t){return t&&(t.hasOwnProperty(C)||t.hasOwnProperty(S))?t[C]:null}const x=l({"\u0275prov":l}),C=l({"\u0275inj":l}),k=l({ngInjectableDef:l}),S=l({ngInjectorDef:l});var O=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});let E;function A(t){const e=E;return E=t,e}function D(t,e,i){const n=y(t);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(i&O.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${h(t)}]`)}function I(t){return{toString:t}.toString()}var T=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),R=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const j="undefined"!=typeof globalThis&&globalThis,L="undefined"!=typeof window&&window,N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,P="undefined"!=typeof global&&global,F=j||P||L||N,M={},V=[],z=l({"\u0275cmp":l}),B=l({"\u0275dir":l}),H=l({"\u0275pipe":l}),U=l({"\u0275mod":l}),X=l({"\u0275loc":l}),q=l({"\u0275fac":l}),$=l({__NG_ELEMENT_ID__:l});let W=0;function K(t){return I(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===T.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||V,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||R.Emulated,id:"c",styles:t.styles||V,_:null,setInput:null,schemas:t.schemas||null,tView:null},n=t.directives,s=t.features,r=t.pipes;return i.id+=W++,i.inputs=tt(t.inputs,e),i.outputs=tt(t.outputs),s&&s.forEach(t=>t(i)),i.directiveDefs=n?()=>("function"==typeof n?n():n).map(G):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(Y):null,i})}function G(t){return nt(t)||function(t){return t[B]||null}(t)}function Y(t){return function(t){return t[H]||null}(t)}const Q={};function Z(t){const e={type:t.type,bootstrap:t.bootstrap||V,declarations:t.declarations||V,imports:t.imports||V,exports:t.exports||V,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&I(()=>{Q[t.id]=t.type}),e}function J(t,e){return I(()=>{const i=st(t,!0);i.declarations=e.declarations||V,i.imports=e.imports||V,i.exports=e.exports||V})}function tt(t,e){if(null==t)return M;const i={};for(const n in t)if(t.hasOwnProperty(n)){let s=t[n],r=s;Array.isArray(s)&&(r=s[1],s=s[0]),i[s]=n,e&&(e[s]=r)}return i}const et=K;function it(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function nt(t){return t[z]||null}function st(t,e){const i=t[U]||null;if(!i&&!0===e)throw new Error(`Type ${h(t)} does not have '\u0275mod' property.`);return i}const rt=20,at=10;function ot(t){return Array.isArray(t)&&"object"==typeof t[1]}function lt(t){return Array.isArray(t)&&!0===t[1]}function ct(t){return 0!=(8&t.flags)}function ht(t){return 2==(2&t.flags)}function ut(t){return 1==(1&t.flags)}function dt(t){return null!==t.template}function pt(t,e){return t.hasOwnProperty(q)?t[q]:null}class mt extends Error{constructor(t,e){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(t,e)),this.code=t}}function ft(t){return"string"==typeof t?t:null==t?"":String(t)}function gt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():ft(t)}function bt(t,e){const i=e?" in "+e:"";throw new mt("201",`No provider for ${gt(t)} found${i}`)}class _t{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function yt(){return vt}function vt(t){return t.type.prototype.ngOnChanges&&(t.setInput=xt),wt}function wt(){const t=Ct(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===M)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function xt(t,e,i,n){const s=Ct(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:M,current:null}),r=s.current||(s.current={}),a=s.previous,o=this.declaredInputs[i],l=a[o];r[o]=new _t(l&&l.currentValue,e,a===M),t[n]=e}function Ct(t){return t.__ngSimpleChanges__||null}yt.ngInherit=!0;const kt="http://www.w3.org/2000/svg";let St=void 0;function Ot(t){St=t}function Et(){return void 0!==St?St:"undefined"!=typeof document?document:void 0}function At(t){return!!t.listen}const Dt={createRenderer:(t,e)=>Et()};function It(t){for(;Array.isArray(t);)t=t[0];return t}function Tt(t,e){return It(e[t])}function Rt(t,e){return It(e[t.index])}function jt(t,e){return t.data[e]}function Lt(t,e){return t[e]}function Nt(t,e){const i=e[t];return ot(i)?i:i[0]}function Pt(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ft(t){return 4==(4&t[2])}function Mt(t){return 128==(128&t[2])}function Vt(t,e){return null==e?null:t[e]}function zt(t){t[18]=0}function Bt(t,e){t[5]+=e;let i=t,n=t[3];for(;null!==n&&(1===e&&1===i[5]||-1===e&&0===i[5]);)n[5]+=e,i=n,n=n[3]}const Ht={lFrame:pe(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ut(){return Ht.bindingsEnabled}function Xt(){return Ht.lFrame.lView}function qt(){return Ht.lFrame.tView}function $t(t){Ht.lFrame.contextLView=t}function Wt(){let t=Kt();for(;null!==t&&64===t.type;)t=t.parent;return t}function Kt(){return Ht.lFrame.currentTNode}function Gt(t,e){const i=Ht.lFrame;i.currentTNode=t,i.isParent=e}function Yt(){return Ht.lFrame.isParent}function Qt(){Ht.lFrame.isParent=!1}function Zt(){return Ht.isInCheckNoChangesMode}function Jt(t){Ht.isInCheckNoChangesMode=t}function te(){const t=Ht.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function ee(){return Ht.lFrame.bindingIndex}function ie(){return Ht.lFrame.bindingIndex++}function ne(t){const e=Ht.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function se(t,e){const i=Ht.lFrame;i.bindingIndex=i.bindingRootIndex=t,re(e)}function re(t){Ht.lFrame.currentDirectiveIndex=t}function ae(t){const e=Ht.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function oe(){return Ht.lFrame.currentQueryIndex}function le(t){Ht.lFrame.currentQueryIndex=t}function ce(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function he(t,e,i){if(i&O.SkipSelf){let n=e,s=t;for(;n=n.parent,!(null!==n||i&O.Host||(n=ce(s),null===n)||(s=s[15],10&n.type)););if(null===n)return!1;e=n,t=s}const n=Ht.lFrame=de();return n.currentTNode=e,n.lView=t,!0}function ue(t){const e=de(),i=t[1];Ht.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex,e.inI18n=!1}function de(){const t=Ht.lFrame,e=null===t?null:t.child;return null===e?pe(t):e}function pe(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function me(){const t=Ht.lFrame;return Ht.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const fe=me;function ge(){const t=me();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function be(){return Ht.lFrame.selectedIndex}function _e(t){Ht.lFrame.selectedIndex=t}function ye(){const t=Ht.lFrame;return jt(t.tView,t.selectedIndex)}function ve(){Ht.lFrame.currentNamespace=kt}function we(){Ht.lFrame.currentNamespace=null}function xe(t,e){for(let i=e.directiveStart,n=e.directiveEnd;i=n)break}else e[a]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(a)):r.call(a)}const Ae=-1;class De{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Ie(t,e,i){const n=At(t);let s=0;for(;se){a=r-1;break}}}for(;r>16,n=e;for(;i>0;)n=n[15],i--;return n}let Me=!0;function Ve(t){const e=Me;return Me=t,e}let ze=0;function Be(t,e){const i=Ue(t,e);if(-1!==i)return i;const n=e[1];n.firstCreatePass&&(t.injectorIndex=e.length,He(n.data,t),He(e,null),He(n.blueprint,null));const s=Xe(t,e),r=t.injectorIndex;if(Ne(s)){const t=Pe(s),i=Fe(s,e),n=i[1].data;for(let s=0;s<8;s++)e[r+s]=i[t+s]|n[t+s]}return e[r+8]=s,r}function He(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Ue(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Xe(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,n=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(n=2===e?t.declTNode:1===e?s[6]:null,null===n)return Ae;if(i++,s=s[15],-1!==n.injectorIndex)return n.injectorIndex|i<<16}return Ae}function qe(t,e,i){!function(t,e,i){let n;"string"==typeof i?n=i.charCodeAt(0)||0:i.hasOwnProperty($)&&(n=i[$]),null==n&&(n=i[$]=ze++);const s=255&n,r=1<=0?255&e:Ye:e}(i);if("function"==typeof r){if(!he(e,t,n))return n&O.Host?$e(s,i,n):We(e,i,n,s);try{const t=r();if(null!=t||n&O.Optional)return t;bt(i)}finally{fe()}}else if("number"==typeof r){let s=null,a=Ue(t,e),o=Ae,l=n&O.Host?e[16][6]:null;for((-1===a||n&O.SkipSelf)&&(o=-1===a?Xe(t,e):e[a+8],o!==Ae&&ei(n,!1)?(s=e[1],a=Pe(o),e=Fe(o,e)):a=-1);-1!==a;){const t=e[1];if(ti(r,a,t.data)){const t=Qe(a,e,i,s,n,l);if(t!==Ge)return t}o=e[a+8],o!==Ae&&ei(n,e[1].data[a+8]===l)&&ti(r,a,e)?(s=t,a=Pe(o),e=Fe(o,e)):a=-1}}}return We(e,i,n,s)}const Ge={};function Ye(){return new ii(Wt(),Xt())}function Qe(t,e,i,n,s,r){const a=e[1],o=a.data[t+8],l=Ze(o,a,i,null==n?ht(o)&&Me:n!=a&&0!=(3&o.type),s&O.Host&&r===o);return null!==l?Je(e,a,l,o):Ge}function Ze(t,e,i,n,s){const r=t.providerIndexes,a=e.data,o=1048575&r,l=t.directiveStart,c=r>>20,h=s?o+c:t.directiveEnd;for(let u=n?o:o+c;u=l&&t.type===i)return u}if(s){const t=a[l];if(t&&dt(t)&&t.type===i)return l}return null}function Je(t,e,i,n){let s=t[i];const r=e.data;if(s instanceof De){const a=s;a.resolving&&function(t,e){throw new mt("200","Circular dependency in DI detected for "+t)}(gt(r[i]));const o=Ve(a.canSeeViewProviders);a.resolving=!0;const l=a.injectImpl?A(a.injectImpl):null;he(t,n,O.Default);try{s=t[i]=a.factory(void 0,r,t,n),e.firstCreatePass&&i>=n.directiveStart&&function(t,e,i){const{ngOnChanges:n,ngOnInit:s,ngDoCheck:r}=e.type.prototype;if(n){const n=vt(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,n),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,n)}s&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,s),r&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,r),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,r))}(i,r[i],e)}finally{null!==l&&A(l),Ve(o),a.resolving=!1,fe()}}return s}function ti(t,e,i){const n=64&t,s=32&t;let r;return r=128&t?n?s?i[e+7]:i[e+6]:s?i[e+5]:i[e+4]:n?s?i[e+3]:i[e+2]:s?i[e+1]:i[e],!!(r&1<{const t=ni(m(e));return t?t():null};let i=pt(e);if(null===i){const t=w(e);i=t&&t.factory}return i||null}function si(t){return I(()=>{const e=t.prototype.constructor,i=e[q]||ni(e),n=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==n;){const t=s[q]||ni(s);if(t&&t!==i)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function ri(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const i=t.attrs;if(i){const t=i.length;let n=0;for(;n{const n=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function s(...t){if(this instanceof s)return n.apply(this,t),this;const e=new s(...t);return i.annotation=e,i;function i(t,i,n){const s=t.hasOwnProperty(ai)?t[ai]:Object.defineProperty(t,ai,{value:[]})[ai];for(;s.length<=n;)s.push(null);return(s[n]=s[n]||[]).push(e),t}}return i&&(s.prototype=Object.create(i.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}class li{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=g({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const ci=new li("AnalyzeForEntryComponents"),hi=Function;function ui(t,e){void 0===e&&(e=t);for(let i=0;iArray.isArray(t)?di(t,e):e(t))}function pi(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function mi(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function fi(t,e){const i=[];for(let n=0;n=0?t[1|n]=i:(n=~n,function(t,e,i,n){let s=t.length;if(s==e)t.push(i,n);else if(1===s)t.push(n,t[0]),t[0]=i;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=i,t[e+1]=n}}(t,n,e,i)),n}function bi(t,e){const i=_i(t,e);if(i>=0)return t[1|i]}function _i(t,e){return function(t,e,i){let n=0,s=t.length>>1;for(;s!==n;){const i=n+(s-n>>1),r=t[i<<1];if(e===r)return i<<1;r>e?s=i:n=i+1}return~(s<<1)}(t,e)}const yi=oi("Inject",t=>({token:t})),vi=oi("Optional"),wi=oi("Self"),xi=oi("SkipSelf"),Ci={},ki=/\n/gm,Si="__source",Oi=l({provide:String,useValue:l});let Ei=void 0;function Ai(t){const e=Ei;return Ei=t,e}function Di(t,e=O.Default){if(void 0===Ei)throw new Error("inject() must be called from an injection context");return null===Ei?D(t,void 0,e):Ei.get(t,e&O.Optional?null:void 0,e)}function Ii(t,e=O.Default){return(E||Di)(m(t),e)}const Ti=Ii;function Ri(t){const e=[];for(let i=0;it,createScript:t=>t,createScriptURL:t=>t})}catch(e){}return ji}())||void 0===e?void 0:e.createHTML(t))||t}class Ni{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see https://g.co/ng/security#xss)"}}class Pi extends Ni{getTypeName(){return"HTML"}}class Fi extends Ni{getTypeName(){return"Style"}}class Mi extends Ni{getTypeName(){return"Script"}}class Vi extends Ni{getTypeName(){return"URL"}}class zi extends Ni{getTypeName(){return"ResourceURL"}}function Bi(t){return t instanceof Ni?t.changingThisBreaksApplicationSecurity:t}function Hi(t,e){const i=Ui(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===e}function Ui(t){return t instanceof Ni&&t.getTypeName()||null}function Xi(t){return new Pi(t)}function qi(t){return new Fi(t)}function $i(t){return new Mi(t)}function Wi(t){return new Vi(t)}function Ki(t){return new zi(t)}class Gi{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Li(t),"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Yi{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=Li(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Li(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let n=e.length-1;0Ji(t.trim())).join(", ")),this.buf.push(" ",e,'="',fn(a),'"')}var n;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();on.hasOwnProperty(e)&&!nn.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(fn(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 pn=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,mn=/([^\#-~ |!])/g;function fn(t){return t.replace(/&/g,"&").replace(pn,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(mn,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let gn;function bn(t,e){let i=null;try{gn=gn||function(t){return function(){try{return!!(new window.DOMParser).parseFromString(Li(""),"text/html")}catch(t){return!1}}()?new Gi:new Yi(t)}(t);let n=e?String(e):"";i=gn.getInertBodyElement(n);let s=5,r=n;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,n=r,r=i.innerHTML,i=gn.getInertBodyElement(n)}while(n!==r);return(new dn).sanitizeChildren(_n(i)||i)}finally{if(i){const t=_n(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function _n(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var yn=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 vn(t){const e=xn();return e?e.sanitize(yn.HTML,t)||"":Hi(t,"HTML")?Bi(t):bn(Et(),ft(t))}function wn(t){const e=xn();return e?e.sanitize(yn.URL,t)||"":Hi(t,"URL")?Bi(t):Ji(ft(t))}function xn(){const t=Xt();return t&&t[12]}function Cn(t){return t.ngDebugContext}function kn(t){return t.ngOriginalError}function Sn(t,...e){t.error(...e)}class On{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),n=function(t){return t.ngErrorLogger||Sn}(t);n(this._console,"ERROR",t),e&&n(this._console,"ORIGINAL ERROR",e),i&&n(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?Cn(t)?Cn(t):this._findContext(kn(t)):null}_findOriginalError(t){let e=kn(t);for(;e&&kn(e);)e=kn(e);return e}}function En(t,e){t.__ngContext__=e}const An=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(F))();function Dn(t){return{name:"body",target:t.ownerDocument.body}}function In(t){return t instanceof Function?t():t}var Tn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});function Rn(t,e){return(void 0)(t,e)}function jn(t){const e=t[3];return lt(e)?e[3]:e}function Ln(t){return Pn(t[13])}function Nn(t){return Pn(t[4])}function Pn(t){for(;null!==t&&!lt(t);)t=t[4];return t}function Fn(t,e,i,n,s){if(null!=n){let r,a=!1;lt(n)?r=n:ot(n)&&(a=!0,n=n[0]);const o=It(n);0===t&&null!==i?null==s?qn(e,i,o):Xn(e,i,o,s||null,!0):1===t&&null!==i?Xn(e,i,o,s||null,!0):2===t?function(t,e,i){const n=Wn(t,e);n&&function(t,e,i,n){At(t)?t.removeChild(e,i,n):e.removeChild(i)}(t,n,e,i)}(e,o,a):3===t&&e.destroyNode(o),null!=r&&function(t,e,i,n,s){const r=i[7];r!==It(i)&&Fn(e,t,n,r,s);for(let a=at;a0&&(t[i-1][4]=n[4]);const a=mi(t,at+e);ts(n[1],s=n,s[11],2,null,null),s[0]=null,s[6]=null;const o=a[19];null!==o&&o.detachView(a[1]),n[3]=null,n[4]=null,n[2]&=-129}var s;return n}function Bn(t,e){if(!(256&e[2])){const i=e[11];At(i)&&i.destroyNode&&ts(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return Hn(t[1],t);for(;e;){let i=null;if(ot(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)ot(e)&&Hn(e[1],e),e=e[3];null===e&&(e=t),ot(e)&&Hn(e[1],e),i=e&&e[4]}e=i}}(e)}}function Hn(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let n=0;n=0?n[s=l]():n[s=-l].unsubscribe(),t+=2}else{const e=n[s=i[t+1]];i[t].call(e)}if(null!==n)for(let t=s+1;tr?"":s[h+1].toLowerCase();const e=8&n?t:null;if(e&&-1!==ss(e,c,0)||2&n&&c!==t){if(hs(n))return!1;a=!0}}}}else{if(!a&&!hs(n)&&!hs(l))return!1;if(a&&hs(l))continue;a=!1,n=l|1&n}}return hs(n)||a}function hs(t){return 0==(1&t)}function us(t,e,i,n){if(null===e)return-1;let s=0;if(n||!i){let i=!1;for(;s-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&n?s+="."+a:4&n&&(s+=" "+a);else""===s||hs(a)||(e+=ms(r,s),s=""),n=a,r=r||!hs(n);i++}return""!==s&&(e+=ms(r,s)),e}const gs={};function bs(t){_s(qt(),Xt(),be()+t,Zt())}function _s(t,e,i,n){if(!n)if(3==(3&e[2])){const n=t.preOrderCheckHooks;null!==n&&Ce(e,n,i)}else{const n=t.preOrderHooks;null!==n&&ke(e,n,0,i)}_e(i)}function ys(t,e){return t<<17|e<<2}function vs(t){return t>>17&32767}function ws(t){return 2|t}function xs(t){return(131068&t)>>2}function Cs(t,e){return-131069&t|e<<2}function ks(t){return 1|t}function Ss(t,e){const i=t.contentQueries;if(null!==i)for(let n=0;nrt&&_s(t,e,rt,Zt()),i(n,s)}finally{_e(r)}}function js(t,e,i){if(ct(e)){const n=e.directiveEnd;for(let s=e.directiveStart;s0;){const i=t[--e];if("number"==typeof i&&i<0)return i}return 0})(i)!=r&&i.push(r),i.push(n,s,a)}}function Us(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Xs(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function qs(t,e,i){if(i){if(e.exportAs)for(let n=0;n0&&Js(i)}}function Js(t){for(let i=Ln(t);null!==i;i=Nn(i))for(let t=at;t0&&Js(e)}const e=t[1].components;if(null!==e)for(let i=0;i0&&Js(n)}}function tr(t,e){const i=Nt(e,t),n=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function or(t){return t[7]||(t[7]=[])}function lr(t){return t.cleanup||(t.cleanup=[])}function cr(t,e,i){return(null===t||dt(t))&&(i=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(i[e.index])),i[11]}function hr(t,e){const i=t[9],n=i?i.get(On,null):null;n&&n.handleError(e)}function ur(t,e,i,n,s){for(let r=0;rthis.processProvider(i,t,e)),di([t],t=>this.processInjectorType(t,[],s)),this.records.set(mr,Or(void 0,this));const r=this.records.get(gr);this.scope=null!=r?r.value:null,this.source=n||("object"==typeof t?null:h(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=Ci,i=O.Default){this.assertNotDestroyed();const n=Ai(this);try{if(!(i&O.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(s=t)||"object"==typeof s&&s instanceof li)&&y(t);e=i&&this.injectableDefInScope(i)?Or(kr(t),br):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&O.Self?wr():this.parent).get(t,e=i&O.Optional&&e===Ci?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(h(t)),n)throw r;return function(t,e,i,n){const s=t.ngTempTokenPath;throw e[Si]&&s.unshift(e[Si]),t.message=function(t,e,i,n=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=h(e);if(Array.isArray(e))s=e.map(h).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i];t.push(i+":"+("string"==typeof n?JSON.stringify(n):h(n)))}s=`{${t.join(", ")}}`}return`${i}${n?"("+n+")":""}[${s}]: ${t.replace(ki,"\n ")}`}("\n"+t.message,s,i,n),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Ai(n)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(h(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=m(t)))return!1;let n=w(t);const s=null==n&&t.ngModule||void 0,r=void 0===s?t:s,a=-1!==i.indexOf(r);if(void 0!==s&&(n=w(s)),null==n)return!1;if(null!=n.imports&&!a){let t;i.push(r);try{di(n.imports,n=>{this.processInjectorType(n,e,i)&&(void 0===t&&(t=[]),t.push(n))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,n||yr))}}this.injectorDefTypes.add(r),this.records.set(r,Or(n.factory,br));const o=n.providers;if(null!=o&&!a){const e=t;di(o,t=>this.processProvider(t,e,o))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,i){let n=Ar(t=m(t))?t:m(t&&t.provide);const s=function(t,e,i){return Er(t)?Or(void 0,t.useValue):Or(Sr(t),br)}(t);if(Ar(t)||!0!==t.multi)this.records.get(n);else{let e=this.records.get(n);e||(e=Or(void 0,br,!0),e.factory=()=>Ri(e.multi),this.records.set(n,e)),n=t,e.multi.push(t)}this.records.set(n,s)}hydrate(t,e){var i;return e.value===br&&(e.value=_r,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.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 kr(t){const e=y(t),i=null!==e?e.factory:pt(t);if(null!==i)return i;const n=w(t);if(null!==n)return n.factory;if(t instanceof li)throw new Error(`Token ${h(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=fi(e,"?");throw new Error(`Can't resolve all parameters for ${h(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[x]||t[k]);if(e){const i=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 "${i}" 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 "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function Sr(t,e,i){let n=void 0;if(Ar(t)){const e=m(t);return pt(e)||kr(e)}if(Er(t))n=()=>m(t.useValue);else if((s=t)&&s.useFactory)n=()=>t.useFactory(...Ri(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))n=()=>Ii(m(t.useExisting));else{const e=m(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return pt(e)||kr(e);n=()=>new e(...Ri(t.deps))}var s;return n}function Or(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Er(t){return null!==t&&"object"==typeof t&&Oi in t}function Ar(t){return"function"==typeof t}const Dr=function(t,e,i){return function(t,e=null,i=null,n){const s=xr(t,e,i,n);return s._resolveInjectorDefTypes(),s}({name:i},e,t,i)};let Ir=(()=>{class t{static create(t,e){return Array.isArray(t)?Dr(t,e,""):Dr(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Ci,t.NULL=new fr,t.\u0275prov=g({token:t,providedIn:"any",factory:()=>Ii(mr)}),t.__NG_ELEMENT_ID__=-1,t})();function Tr(t,e){xe(Pt(t)[1],Wt())}function Rr(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,i=!0;const n=[t];for(;e;){let s=void 0;if(dt(t))s=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");s=e.\u0275dir}if(s){if(i){n.push(s);const e=t;e.inputs=jr(t.inputs),e.declaredInputs=jr(t.declaredInputs),e.outputs=jr(t.outputs);const i=s.hostBindings;i&&Pr(t,i);const r=s.viewQuery,a=s.contentQueries;if(r&&Lr(t,r),a&&Nr(t,a),c(t.inputs,s.inputs),c(t.declaredInputs,s.declaredInputs),c(t.outputs,s.outputs),dt(s)&&s.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(s.data.animation)}}const e=s.features;if(e)for(let n=0;n=0;n--){const s=t[n];s.hostVars=e+=s.hostVars,s.hostAttrs=je(s.hostAttrs,i=je(i,s.hostAttrs))}}(n)}function jr(t){return t===M?{}:t===V?[]:t}function Lr(t,e){const i=t.viewQuery;t.viewQuery=i?(t,n)=>{e(t,n),i(t,n)}:e}function Nr(t,e){const i=t.contentQueries;t.contentQueries=i?(t,n,s)=>{e(t,n,s),i(t,n,s)}:e}function Pr(t,e){const i=t.hostBindings;t.hostBindings=i?(t,n)=>{e(t,n),i(t,n)}:e}let Fr=null;function Mr(){if(!Fr){const t=F.Symbol;if(t&&t.iterator)Fr=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;eo(It(t[n.index])).target:n.index;if(At(i)){let a=null;if(!o&&l&&(a=function(t,e,i,n){const s=t.cleanup;if(null!=s)for(let r=0;ri?t[i]:null}"string"==typeof t&&(r+=2)}return null}(t,e,s,n.index)),null!==a)(a.__ngLastListenerFn__||a).__ngNextListenerFn__=r,a.__ngLastListenerFn__=r,u=!1;else{r=da(n,e,r,!1);const t=i.listen(p.name||m,s,r);h.push(r,t),c&&c.push(s,g,f,f+1)}}else r=da(n,e,r,!0),m.addEventListener(s,r,a),h.push(r),c&&c.push(s,g,f,a)}else r=da(n,e,r,!1);const d=n.outputs;let p;if(u&&null!==d&&(p=d[s])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,Ht.lFrame.contextLView))[8]}(t)}function ma(t,e){let i=null;const n=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 xa={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ca(t){return t.substring(xa.key,xa.keyEnd)}function ka(t,e){const i=xa.textEnd;return i===e?-1:(e=xa.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,xa.key=e,i),Sa(t,e,i))}function Sa(t,e,i){for(;e=0;i=ka(e,i))gi(t,Ca(e),!0)}function Da(t,e,i,n){const s=Xt(),r=qt(),a=ne(2);r.firstUpdatePass&&Ta(r,t,a,n),e!==gs&&Ur(s,a,e)&&La(r,r.data[be()],s,s[11],t,s[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=h(Bi(t)))),t}(e,i),n,a)}function Ia(t,e){return e>=t.expandoStartIndex}function Ta(t,e,i,n){const s=t.data;if(null===s[i+1]){const r=s[be()],a=Ia(t,i);Fa(r,n)&&null===e&&!a&&(e=!1),e=function(t,e,i,n){const s=ae(t);let r=n?e.residualClasses:e.residualStyles;if(null===s)0===(n?e.classBindings:e.styleBindings)&&(i=ja(i=Ra(null,t,e,i,n),e.attrs,n),r=null);else{const a=e.directiveStylingLast;if(-1===a||t[a]!==s)if(i=Ra(s,t,e,i,n),null===r){let i=function(t,e,i){const n=i?e.classBindings:e.styleBindings;if(0!==xs(n))return t[vs(n)]}(t,e,n);void 0!==i&&Array.isArray(i)&&(i=Ra(null,t,e,i[1],n),i=ja(i,e.attrs,n),function(t,e,i,n){t[vs(i?e.classBindings:e.styleBindings)]=n}(t,e,n,i))}else r=function(t,e,i){let n=void 0;const s=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(h=!0)}else c=i;if(s)if(0!==l){const e=vs(t[o+1]);t[n+1]=ys(e,o),0!==e&&(t[e+1]=Cs(t[e+1],n)),t[o+1]=131071&t[o+1]|n<<17}else t[n+1]=ys(o,0),0!==o&&(t[o+1]=Cs(t[o+1],n)),o=n;else t[n+1]=ys(l,0),0===o?o=n:t[l+1]=Cs(t[l+1],n),l=n;h&&(t[n+1]=ws(t[n+1])),va(t,c,n,!0),va(t,c,n,!1),function(t,e,i,n,s){const r=s?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&_i(r,e)>=0&&(i[n+1]=ks(i[n+1]))}(e,c,t,n,r),a=ys(o,l),r?e.classBindings=a:e.styleBindings=a}(s,r,e,i,a,n)}}function Ra(t,e,i,n,s){let r=null;const a=i.directiveEnd;let o=i.directiveStylingLast;for(-1===o?o=i.directiveStart:o++;o0;){const e=t[s],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=i[s+1];h===gs&&(h=c?ya:void 0);let u=c?bi(h,n):l===n?h:void 0;if(r&&!Pa(u)&&(u=bi(e,n)),Pa(u)&&(o=u,a))return o;const d=t[s+1];s=a?vs(d):xs(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(o=bi(t,n))}return o}function Pa(t){return void 0!==t}function Fa(t,e){return 0!=(t.flags&(e?16:32))}function Ma(t,e=""){const i=Xt(),n=qt(),s=t+rt,r=n.firstCreatePass?Es(n,s,1,e,null):n.data[s],a=i[s]=function(t,e){return At(t)?t.createText(e):t.createTextNode(e)}(i[11],e);Yn(n,i,a,r),Gt(r,!1)}function Va(t){return za("",t,""),Va}function za(t,e,i){const n=Xt(),s=$r(n,t,e,i);return s!==gs&&dr(n,be(),s),za}function Ba(t,e,i,n,s){const r=Xt(),a=function(t,e,i,n,s,r){const a=Xr(t,ee(),i,s);return ne(2),a?e+ft(i)+n+ft(s)+r:gs}(r,t,e,i,n,s);return a!==gs&&dr(r,be(),a),Ba}function Ha(t,e,i){!function(t,e,i,n){const s=qt(),r=ne(2);s.firstUpdatePass&&Ta(s,null,r,n);const a=Xt();if(i!==gs&&Ur(a,r,i)){const o=s.data[be()];if(Fa(o,n)&&!Ia(s,r)){let t=o.classesWithoutHost;null!==t&&(i=u(t,i||"")),Zr(s,o,a,i,n)}else!function(t,e,i,n,s,r,a,o){s===gs&&(s=ya);let l=0,c=0,h=0 null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(eo=t.toLowerCase().replace(/_/g,"-"))}function no(t,e,i,n,s){if(t=m(t),Array.isArray(t))for(let r=0;r>20;if(Ar(t)||!t.multi){const n=new De(l,s,Gr),p=ao(o,e,s?h:h+d,u);-1===p?(qe(Be(c,a),r,o),so(r,t,e.length),e.push(o),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),i.push(n),a.push(n)):(i[p]=n,a[p]=n)}else{const p=ao(o,e,h+d,u),m=ao(o,e,h,h+d),f=p>=0&&i[p],g=m>=0&&i[m];if(s&&!g||!s&&!f){qe(Be(c,a),r,o);const h=function(t,e,i,n,s){const r=new De(t,i,Gr);return r.multi=[],r.index=e,r.componentProviders=0,ro(r,s,n&&!i),r}(s?lo:oo,i.length,s,n,l);!s&&g&&(i[m].providerFactory=h),so(r,t,e.length,0),e.push(o),c.directiveStart++,c.directiveEnd++,s&&(c.providerIndexes+=1048576),i.push(h),a.push(h)}else so(r,t,p>-1?p:m,ro(i[s?m:p],l,!s&&n));!s&&n&&g&&i[m].componentProviders++}}}function so(t,e,i,n){const s=Ar(e);if(s||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const a=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=a.indexOf(i);-1===t?a.push(i,[n,r]):a[t+1].push(n,r)}else a.push(i,r)}}}function ro(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ao(t,e,i,n){for(let s=i;s{i.providersResolver=(i,n)=>function(t,e,i){const n=qt();if(n.firstCreatePass){const s=dt(t);no(i,n.data,n.blueprint,s,!0),no(e,n.data,n.blueprint,s,!1)}}(i,n?n(t):t,e)}}class uo{}class po{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${h(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let mo=(()=>{class t{}return t.NULL=new po,t})();function fo(...t){}function go(t,e){return new _o(Rt(t,e))}const bo=function(){return go(Wt(),Xt())};let _o=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=bo,t})();class yo{}let vo=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>wo(),t})();const wo=function(){const t=Xt(),e=Nt(Wt().index,t);return function(t){return t[11]}(ot(e)?e:t)};let xo=(()=>{class t{}return t.\u0275prov=g({token:t,providedIn:"root",factory:()=>null}),t})();class Co{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ko=new Co("11.0.5");class So{constructor(){}supports(t){return zr(t)}create(t){return new Eo(t)}}const Oo=(t,e)=>e;class Eo{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||Oo}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){const r=!i||e&&e.currentIndex{n=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,n)?(r&&(s=this._verifyReinsertion(s,t,n,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,n,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;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,n))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):t=this._addAfter(new Ao(e,i),s,n),t}_verifyReinsertion(t,e,i,n){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),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,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const n=t._prevRemoved,s=t._nextRemoved;return null===n?this._removalsHead=s:n._nextRemoved=s,null===s?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const n=null===e?this._itHead:e._next;return t._next=n,t._prev=e,null===n?this._itTail=t:n._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Io),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._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 Io),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 Ao{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 Do{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 i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Io{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Do,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.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 To(t,e,i){const n=t.previousIndex;if(null===n)return n;let s=0;return i&&n{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const n=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,n)}}),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 i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._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 i=this._records.get(t);this._maybeAddToChanges(i,e);const n=i._prev,s=i._next;return n&&(n._next=s),s&&(s._prev=n),i._next=null,i._prev=null,i}const i=new Lo(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_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(i=>e(t[i],i))}}class Lo{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 No=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,i)},deps:[[t,new xi,new vi]]}}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 '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=g({token:t,providedIn:"root",factory:()=>new t([new So])}),t})(),Po=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,i)},deps:[[t,new xi,new vi]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=g({token:t,providedIn:"root",factory:()=>new t([new Ro])}),t})();function Fo(t,e,i,n,s=!1){for(;null!==i;){const r=e[i.index];if(null!==r&&n.push(It(r)),lt(r))for(let t=at;t-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Bn(this._lView[1],this._lView)}onDestroy(t){Ms(this._lView[1],this._lView,null,t)}markForCheck(){ir(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){nr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){Jt(!0);try{nr(t,e,i)}finally{Jt(!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,ts(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 Vo extends Mo{constructor(t){super(t),this._view=t}detectChanges(){sr(this._view)}checkNoChanges(){!function(t){Jt(!0);try{sr(t)}finally{Jt(!1)}}(this._view)}get context(){return null}}const zo=Ho;let Bo=(()=>{class t{}return t.__NG_ELEMENT_ID__=zo,t.__ChangeDetectorRef__=!0,t})();function Ho(t=!1){return function(t,e,i){if(!i&&ht(t)){const i=Nt(t.index,e);return new Mo(i,i)}return 47&t.type?new Mo(e[16],e):null}(Wt(),Xt(),t)}const Uo=[new Ro],Xo=new No([new So]),qo=new Po(Uo),$o=function(){return Yo(Wt(),Xt())};let Wo=(()=>{class t{}return t.__NG_ELEMENT_ID__=$o,t})();const Ko=Wo,Go=class extends Ko{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=Os(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const n=this._declarationLView[19];return null!==n&&(i[19]=n.createEmbeddedView(e)),Ds(e,i,t),new Mo(i)}};function Yo(t,e){return 4&t.type?new Go(e,t,go(t,e)):null}class Qo{}class Zo{}const Jo=function(){return rl(Wt(),Xt())};let tl=(()=>{class t{}return t.__NG_ELEMENT_ID__=Jo,t})();const el=tl,il=class extends el{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return go(this._hostTNode,this._hostLView)}get injector(){return new ii(this._hostTNode,this._hostLView)}get parentInjector(){const t=Xe(this._hostTNode,this._hostLView);if(Ne(t)){const e=Fe(t,this._hostLView),i=Pe(t);return new ii(e[1].data[i+8],e)}return new ii(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=nl(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-at}createEmbeddedView(t,e,i){const n=t.createEmbeddedView(e||{});return this.insert(n,i),n}createComponent(t,e,i,n,s){const r=i||this.parentInjector;if(!s&&null==t.ngModule&&r){const t=r.get(Qo,null);t&&(s=t)}const a=t.create(r,n,void 0,s);return this.insert(a.hostView,e),a}insert(t,e){const i=t._lView,n=i[1];if(lt(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],n=new il(e,e[6],e[3]);n.detach(n.indexOf(t))}}const s=this._adjustIndex(e),r=this._lContainer;!function(t,e,i,n){const s=at+n,r=i.length;n>0&&(i[s-1][4]=e),nAn});class hl extends uo{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(fs).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return ll(this.componentDef.inputs)}get outputs(){return ll(this.componentDef.outputs)}create(t,e,i,n){const s=(n=n||this.ngModule)?function(t,e){return{get:(i,n,s)=>{const r=t.get(i,al,s);return r!==al||n===al?r:e.get(i,n,s)}}}(t,n.injector):t,r=s.get(yo,Dt),a=s.get(xo,null),o=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=i?function(t,e,i){if(At(t))return t.selectRootElement(e,i===R.ShadowDom);let n="string"==typeof e?t.querySelector(e):e;return n.textContent="",n}(o,i,this.componentDef.encapsulation):Mn(r.createRenderer(null,this.componentDef),l,function(t){const e=t.toLowerCase();return"svg"===e?kt:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:An,clean:ar,playerHandler:null,flags:0},d=Fs(0,null,null,1,0,null,null,null,null,null),p=Os(null,d,u,h,null,null,r,o,a,s);let m,f;ue(p);try{const t=function(t,e,i,n,s,r){const a=i[1];i[20]=t;const o=Es(a,20,2,"#host",null),l=o.mergedAttrs=e.hostAttrs;null!==l&&(pr(o,l,!0),null!==t&&(Ie(s,t,l),null!==o.classes&&ns(s,t,o.classes),null!==o.styles&&is(s,t,o.styles)));const c=n.createRenderer(t,e),h=Os(i,Ps(e),null,e.onPush?64:16,i[20],o,n,c,null,null);return a.firstCreatePass&&(qe(Be(o,i),a,e.type),Xs(a,o),$s(o,i.length,1)),er(i,h),i[20]=h}(c,this.componentDef,p,r,o);if(c)if(i)Ie(o,c,["ng-version",ko.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let n=1,s=2;for(;n0&&ns(o,c,e.join(" "))}if(f=jt(d,rt),void 0!==e){const t=f.projection=[];for(let i=0;it(a,e)),e.contentQueries){const t=Wt();e.contentQueries(1,a,t.directiveStart)}const o=Wt();return!r.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(_e(o.index),Hs(i[1],o,0,o.directiveStart,o.directiveEnd,e),Us(e,a)),a}(t,this.componentDef,p,u,[Tr]),Ds(d,p,null)}finally{ge()}return new ul(this.componentType,m,go(f,p),p,f)}}class ul extends class{}{constructor(t,e,i,n,s){super(),this.location=i,this._rootLView=n,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new Vo(n),this.componentType=t}get injector(){return new ii(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const dl=new Map;class pl extends Qo{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ol(this);const i=st(t),n=t[X]||null;n&&io(n),this._bootstrapComponents=In(i.bootstrap),this._r3Injector=xr(t,e,[{provide:Qo,useValue:this},{provide:mo,useValue:this.componentFactoryResolver}],h(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ir.THROW_IF_NOT_FOUND,i=O.Default){return t===Ir||t===Qo||t===mr?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ml extends Zo{constructor(t){super(),this.moduleType=t,null!==st(t)&&function(t){const e=new Set;!function t(i){const n=st(i,!0),s=n.id;null!==s&&(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${h(e)} vs ${h(e.name)}`)}(s,dl.get(s),i),dl.set(s,i));const r=In(n.imports);for(const a of r)e.has(a)||(e.add(a),t(a))}(t)}(t)}create(t){return new pl(this.moduleType,t)}}function fl(t,e,i){const n=te()+t,s=Xt();return s[n]===gs?Hr(s,n,i?e.call(i):e()):function(t,e){return t[e]}(s,n)}function gl(t,e,i,n){return yl(Xt(),te(),t,e,i,n)}function bl(t,e,i,n,s){return vl(Xt(),te(),t,e,i,n,s)}function _l(t,e){const i=t[e];return i===gs?void 0:i}function yl(t,e,i,n,s,r){const a=e+i;return Ur(t,a,s)?Hr(t,a+1,r?n.call(r,s):n(s)):_l(t,a+1)}function vl(t,e,i,n,s,r,a){const o=e+i;return Xr(t,o,s,r)?Hr(t,o+2,a?n.call(a,s,r):n(s,r)):_l(t,o+2)}function wl(t,e){const i=qt();let n;const s=t+rt;i.firstCreatePass?(n=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const n=e[i];if(t===n.name)return n}throw new mt("302",`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[s]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(s,n.onDestroy)):n=i.data[s];const r=n.factory||(n.factory=pt(n.type)),a=A(Gr);try{const t=Ve(!1),e=r();return Ve(t),function(t,e,i,n){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),e[i]=n}(i,Xt(),s,e),e}finally{A(a)}}function xl(t,e,i){const n=t+rt,s=Xt(),r=Lt(s,n);return Sl(s,kl(s,n)?yl(s,te(),e,r.transform,i,r):r.transform(i))}function Cl(t,e,i,n){const s=t+rt,r=Xt(),a=Lt(r,s);return Sl(r,kl(r,s)?vl(r,te(),e,a.transform,i,n,a):a.transform(i,n))}function kl(t,e){return t[1].data[e].pure}function Sl(t,e){return Vr.isWrapped(e)&&(e=Vr.unwrap(e),t[ee()]=gs),e}const Ol=class extends n.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let n,r=t=>null,a=()=>null;t&&"object"==typeof t?(n=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&&(a=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(n=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),i&&(a=this.__isAsync?()=>{setTimeout(()=>i())}:()=>{i()}));const o=super.subscribe(n,r,a);return t instanceof s.a&&t.add(o),o}};function El(){return this._results[Mr()]()}class Al{constructor(){this.dirty=!0,this._results=[],this.changes=new Ol,this.length=0;const t=Mr(),e=Al.prototype;e[t]||(e[t]=El)}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=ui(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Dl{constructor(t){this.queryList=t,this.matches=null}clone(){return new Dl(this.queryList)}setDirty(){this.queryList.setDirty()}}class Il{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,n=[];for(let t=0;t0)n.push(a[t/2]);else{const s=r[t+1],a=e[-i];for(let t=at;t{class t{constructor(t){this.appInits=t,this.resolve=fo,this.reject=fo,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 i=0;i{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Ii(Yl,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const Zl=new li("AppId"),Jl={provide:Zl,useFactory:function(){return`${tc()}${tc()}${tc()}`},deps:[]};function tc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ec=new li("Platform Initializer"),ic=new li("Platform ID"),nc=new li("appBootstrapListener");let sc=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const rc=new li("LocaleId"),ac=new li("DefaultCurrencyCode");class oc{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const lc=function(t){return new ml(t)},cc=lc,hc=function(t){return Promise.resolve(lc(t))},uc=function(t){const e=lc(t),i=In(st(t).declarations).reduce((t,e)=>{const i=nt(e);return i&&t.push(new hl(i)),t},[]);return new oc(e,i)},dc=uc,pc=function(t){return Promise.resolve(uc(t))};let mc=(()=>{class t{constructor(){this.compileModuleSync=cc,this.compileModuleAsync=hc,this.compileModuleAndAllComponentsSync=dc,this.compileModuleAndAllComponentsAsync=pc}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();const fc=(()=>Promise.resolve(0))();function gc(t){"undefined"==typeof Zone?fc.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class bc{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ol(!1),this.onMicrotaskEmpty=new Ol(!1),this.onStable=new Ol(!1),this.onError=new Ol(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=e,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=F.requestAnimationFrame,e=F.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(F,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,vc(t),yc(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),vc(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(i,n,s,r,a,o)=>{try{return wc(t),i.invokeTask(s,r,a,o)}finally{e&&"eventTask"===r.type&&e(),xc(t)}},onInvoke:(e,i,n,s,r,a,o)=>{try{return wc(t),e.invoke(n,s,r,a,o)}finally{xc(t)}},onHasTask:(e,i,n,s)=>{e.hasTask(n,s),i===n&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,vc(t),yc(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,n,s)=>(e.handleError(n,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!bc.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(bc.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){const s=this._inner,r=s.scheduleEventTask("NgZoneEvent: "+n,t,_c,fo,fo);try{return s.runTask(r,e,i)}finally{s.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const _c={};function yc(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 vc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function wc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function xc(t){t._nesting--,yc(t)}class Cc{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ol,this.onMicrotaskEmpty=new Ol,this.onStable=new Ol,this.onError=new Ol}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}}let kc=(()=>{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:()=>{bc.assertNotInAngularZone(),gc(()=>{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())gc(()=>{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,i){let n=-1;e&&e>0&&(n=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==n),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:n,updateCb:i})}whenStable(t,e,i){if(i&&!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,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(Ii(bc))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})(),Sc=(()=>{class t{constructor(){this._applications=new Map,Dc.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 Dc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();class Oc{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}function Ec(t){Dc=t}let Ac,Dc=new Oc,Ic=!0,Tc=!1;function Rc(){return Tc=!0,Ic}function jc(){if(Tc)throw new Error("Cannot enable prod mode after platform setup.");Ic=!1}const Lc=new li("AllowMultipleToken");class Nc{constructor(t,e){this.name=t,this.token=e}}function Pc(t,e,i=[]){const n="Platform: "+e,s=new li(n);return(e=[])=>{let r=Fc();if(!r||r.injector.get(Lc,!1))if(t)t(i.concat(e).concat({provide:s,useValue:!0}));else{const t=i.concat(e).concat({provide:s,useValue:!0},{provide:gr,useValue:"platform"});!function(t){if(Ac&&!Ac.destroyed&&!Ac.injector.get(Lc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ac=t.get(Mc);const e=t.get(ec,null);e&&e.forEach(t=>t())}(Ir.create({providers:t,name:n}))}return function(t){const e=Fc();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 Fc(){return Ac&&!Ac.destroyed?Ac:null}let Mc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new Cc:("zone.js"===t?void 0:t)||new bc({enableLongStackTrace:Rc(),shouldCoalesceEventChangeDetection:e}),i}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),n=[{provide:bc,useValue:i}];return i.run(()=>{const e=Ir.create({providers:n,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 i.runOutsideAngular(()=>{const t=i.onError.subscribe({next:t=>{r.handleError(t)}});s.onDestroy(()=>{Bc(this._modules,s),t.unsubscribe()})}),function(t,e,i){try{const n=i();return aa(n)?n.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):n}catch(n){throw e.runOutsideAngular(()=>t.handleError(n)),n}}(r,i,()=>{const t=s.injector.get(Ql);return t.runInitializers(),t.donePromise.then(()=>(io(s.injector.get(rc,to)||to),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const i=Vc({},e);return function(t,e,i){const n=new ml(i);return Promise.resolve(n)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(zc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${h(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)(Ii(Ir))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function Vc(t,e){return Array.isArray(e)?e.reduce(Vc,t):Object.assign(Object.assign({},t),e)}let zc=(()=>{class t{constructor(t,e,i,n,s,l){this._zone=t,this._console=e,this._injector=i,this._exceptionHandler=n,this._componentFactoryResolver=s,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new 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(()=>{bc.assertNotInAngularZone(),gc(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{bc.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=Object(a.a)(c,h.pipe(Object(o.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 i;i=t instanceof uo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const n=i.isBoundToModule?void 0:this._injector.get(Qo),s=i.create(Ir.NULL,[],e||i.selector,n),r=s.location.nativeElement,a=s.injector.get(kc,null),o=a&&s.injector.get(Sc);return a&&o&&o.registerApplication(r,a),s.onDestroy(()=>{this.detachView(s.hostView),Bc(this.components,s),o&&o.unregisterApplication(r)}),this._loadComponent(s),Rc()&&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()}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;Bc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(nc,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Ii(bc),Ii(sc),Ii(Ir),Ii(On),Ii(mo),Ii(Ql))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function Bc(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Hc{}class Uc{}const Xc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let qc=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Xc}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,n]=t.split("#");return void 0===n&&(n="default"),i("zn8P")(e).then(t=>t[n]).then(t=>$c(t,e,n)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,n]=t.split("#"),s="NgFactory";return void 0===n&&(n="default",s=""),i("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[n+s]).then(t=>$c(t,e,n))}}return t.\u0275fac=function(e){return new(e||t)(Ii(mc),Ii(Uc,8))},t.\u0275prov=g({token:t,factory:t.\u0275fac}),t})();function $c(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}class Wc extends Bo{}class Kc extends Wc{}const Gc=function(t){return null},Yc=Pc(null,"core",[{provide:ic,useValue:"unknown"},{provide:Mc,deps:[Ir]},{provide:Sc,deps:[]},{provide:sc,deps:[]}]),Qc=[{provide:zc,useClass:zc,deps:[bc,sc,Ir,On,mo,Ql]},{provide:cl,deps:[bc],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Ql,useClass:Ql,deps:[[new vi,Yl]]},{provide:mc,useClass:mc,deps:[]},Jl,{provide:No,useFactory:function(){return Xo},deps:[]},{provide:Po,useFactory:function(){return qo},deps:[]},{provide:rc,useFactory:function(t){return io(t=t||"undefined"!=typeof $localize&&$localize.locale||to),t},deps:[[new yi(rc),new vi,new xi]]},{provide:ac,useValue:"USD"}];let Zc=(()=>{class t{constructor(t){}}return t.\u0275mod=Z({type:t}),t.\u0275inj=_({factory:function(e){return new(e||t)(Ii(zc))},providers:Qc}),t})()},gRHU:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("2fFW"),s=i("NJ4a");const r={closed:!0,next(t){},error(t){if(n.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},iadO:function(t,e,i){"use strict";i.d(e,"a",function(){return bt}),i.d(e,"b",function(){return Ct}),i.d(e,"c",function(){return Ot}),i.d(e,"d",function(){return St});var n=i("u47x"),s=i("rDax"),r=i("+rOU"),a=i("ofXK"),o=i("fXoL"),l=i("bTqV"),c=i("0IaG"),h=i("vxfF"),u=i("FKr1"),d=i("XNiG"),p=i("quSY"),m=i("VRyK"),f=i("LRne"),g=i("FtGj"),b=i("IzEk"),_=i("JX91"),y=i("pLZG"),v=i("8LU1"),w=i("R0Ic"),x=i("3Pt+"),C=i("kmnG"),k=i("qFsG"),S=i("cH1L");const O=["mat-calendar-body",""];function E(t,e){if(1&t&&(o.Tb(0,"tr",2),o.Tb(1,"td",3),o.Ec(2),o.Sb(),o.Sb()),2&t){const t=o.fc();o.Cb(1),o.Ac("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),o.Db("colspan",t.numCols),o.Cb(1),o.Gc(" ",t.label," ")}}function A(t,e){if(1&t&&(o.Tb(0,"td",7),o.Ec(1),o.Sb()),2&t){const t=o.fc(2);o.Ac("padding-top",t._cellPadding)("padding-bottom",t._cellPadding),o.Db("colspan",t._firstRowOffset),o.Cb(1),o.Gc(" ",t._firstRowOffset>=t.labelMinRequiredCells?t.label:""," ")}}function D(t,e){if(1&t){const t=o.Ub();o.Tb(0,"td",8),o.bc("click",function(i){o.uc(t);const n=e.$implicit;return o.fc(2)._cellClicked(n,i)}),o.Tb(1,"div",9),o.Ec(2),o.Sb(),o.Ob(3,"div",10),o.Sb()}if(2&t){const t=e.$implicit,i=e.index,n=o.fc().index,s=o.fc();o.Ac("width",s._cellWidth)("padding-top",s._cellPadding)("padding-bottom",s._cellPadding),o.Fb("mat-calendar-body-disabled",!t.enabled)("mat-calendar-body-active",s._isActiveCell(n,i))("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,n,i))("mat-calendar-body-comparison-bridge-end",s._isComparisonBridgeEnd(t.compareValue,n,i))("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)),o.lc("ngClass",t.cssClasses)("tabindex",s._isActiveCell(n,i)?0:-1),o.Db("data-mat-row",n)("data-mat-col",i)("aria-label",t.ariaLabel)("aria-disabled",!t.enabled||null)("aria-selected",s._isSelected(t.compareValue)),o.Cb(1),o.Fb("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),o.Cb(1),o.Gc(" ",t.displayValue," ")}}function I(t,e){if(1&t&&(o.Tb(0,"tr",4),o.Dc(1,A,2,6,"td",5),o.Dc(2,D,4,46,"td",6),o.Sb()),2&t){const t=e.$implicit,i=e.index,n=o.fc();o.Cb(1),o.lc("ngIf",0===i&&n._firstRowOffset),o.Cb(1),o.lc("ngForOf",t)}}function T(t,e){if(1&t&&(o.Tb(0,"th",5),o.Ec(1),o.Sb()),2&t){const t=e.$implicit;o.Db("aria-label",t.long),o.Cb(1),o.Fc(t.narrow)}}const R=["*"];function j(t,e){}function L(t,e){if(1&t){const t=o.Ub();o.Tb(0,"mat-month-view",5),o.bc("activeDateChange",function(e){return o.uc(t),o.fc().activeDate=e})("_userSelection",function(e){return o.uc(t),o.fc()._dateSelected(e)}),o.Sb()}if(2&t){const t=o.fc();o.lc("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 N(t,e){if(1&t){const t=o.Ub();o.Tb(0,"mat-year-view",6),o.bc("activeDateChange",function(e){return o.uc(t),o.fc().activeDate=e})("monthSelected",function(e){return o.uc(t),o.fc()._monthSelectedInYearView(e)})("selectedChange",function(e){return o.uc(t),o.fc()._goToDateInView(e,"month")}),o.Sb()}if(2&t){const t=o.fc();o.lc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}function P(t,e){if(1&t){const t=o.Ub();o.Tb(0,"mat-multi-year-view",7),o.bc("activeDateChange",function(e){return o.uc(t),o.fc().activeDate=e})("yearSelected",function(e){return o.uc(t),o.fc()._yearSelectedInMultiYearView(e)})("selectedChange",function(e){return o.uc(t),o.fc()._goToDateInView(e,"year")}),o.Sb()}if(2&t){const t=o.fc();o.lc("activeDate",t.activeDate)("selected",t.selected)("dateFilter",t.dateFilter)("maxDate",t.maxDate)("minDate",t.minDate)("dateClass",t.dateClass)}}const F=["button"];function M(t,e){1&t&&(o.ec(),o.Tb(0,"svg",3),o.Ob(1,"path",4),o.Sb())}const V=[[["","matDatepickerToggleIcon",""]]],z=["[matDatepickerToggleIcon]"];let B=(()=>{class t{constructor(){this.changes=new d.a,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close 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(o.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();class H{constructor(t,e,i,n,s={},r=t,a){this.value=t,this.displayValue=e,this.ariaLabel=i,this.enabled=n,this.cssClasses=s,this.compareValue=r,this.rawValue=a}}let U=(()=>{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 o.o,this.previewChange=new o.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&&X(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:i,numCols:n}=this;(t.rows||e)&&(this._firstRowOffset=i&&i.length&&i[0].length?n-i[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/n+"%"),!e&&this._cellWidth||(this._cellWidth=100/n+"%")}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 i=t*this.numCols+e;return t&&(i-=this._firstRowOffset),i==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 q(t,this.startValue,this.endValue)}_isRangeEnd(t){return $(t,this.startValue,this.endValue)}_isInRange(t){return W(t,this.startValue,this.endValue,this.isRange)}_isComparisonStart(t){return q(t,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(t,e,i){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;let n=this.rows[e][i-1];if(!n){const t=this.rows[e-1];n=t&&t[t.length-1]}return n&&!this._isRangeEnd(n.compareValue)}_isComparisonBridgeEnd(t,e,i){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;let n=this.rows[e][i+1];if(!n){const t=this.rows[e+1];n=t&&t[0]}return n&&!this._isRangeStart(n.compareValue)}_isComparisonEnd(t){return $(t,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(t){return W(t,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}_isPreviewStart(t){return q(t,this.previewStart,this.previewEnd)}_isPreviewEnd(t){return $(t,this.previewStart,this.previewEnd)}_isInPreview(t){return W(t,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(t){let e;if(X(t)?e=t:X(t.parentNode)&&(e=t.parentNode),e){const t=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)][parseInt(i)]}return null}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(o.l),o.Nb(o.B))},t.\u0275cmp=o.Hb({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:[o.Ab],attrs:O,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&&(o.Dc(0,E,3,6,"tr",0),o.Dc(1,I,3,2,"tr",1)),2&t&&(o.lc("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 X(t){return"TD"===t.nodeName}function q(t,e,i){return null!==i&&e!==i&&t=e&&t===i}function W(t,e,i,n){return n&&null!==e&&null!==i&&e!==i&&t>=e&&t<=i}class K{constructor(t,e){this.start=t,this.end=e}}let G=(()=>{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)(o.Nb(void 0),o.Nb(u.c))},t.\u0275dir=o.Ib({type:t}),t})(),Y=(()=>{class t extends G{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)(o.Xb(u.c))},t.\u0275prov=o.Jb({token:t,factory:t.\u0275fac}),t})();const Q={provide:G,deps:[[new o.C,new o.L,G],u.c],useFactory:function(t,e){return t||new Y(e)}},Z=new o.s("MAT_DATE_RANGE_SELECTION_STRATEGY");let J=(()=>{class t{constructor(t,e,i,n,s){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rangeStrategy=s,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new o.o,this._userSelection=new o.o,this.activeDateChange=new o.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){const e=this._activeDate,i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof K?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,i=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),s=this._dateAdapter.createDate(i,n,e);let r,a;this._selected instanceof K?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),r===e&&a===e||this.selectedChange.emit(s),this._userSelection.emit({value:s,event:t.event})}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case g.j:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?1:-1);break;case g.n:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,i?-1:1);break;case g.q:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case g.e:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case g.i:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case g.f:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case g.m:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case g.l:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case g.g:case g.o:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case g.h:return void(null==this._previewEnd||Object(g.t)(t)||(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 i=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t);this._previewStart=this._getCellCompareValue(i.start),this._previewEnd=this._getCellCompareValue(i.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow");let i=this._dateAdapter.getDayOfWeekNames("long").map((t,i)=>({long:t,narrow:e[i]}));this._weekdays=i.slice(t).concat(i.slice(0,t))}_createWeekCells(){const t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(let i=0,n=this._firstWeekOffset;i=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),i=this._dateAdapter.getMonth(t),n=this._dateAdapter.getDate(t);return new Date(e,i,n).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(t){t instanceof K?(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)(o.Nb(o.h),o.Nb(u.e,8),o.Nb(u.c,8),o.Nb(S.b,8),o.Nb(Z,8))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){if(1&t&&o.Ic(U,!0),2&t){let t;o.rc(t=o.cc())&&(e._matCalendarBody=t.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:[o.Ab],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&&(o.Tb(0,"table",0),o.Tb(1,"thead",1),o.Tb(2,"tr"),o.Dc(3,T,2,2,"th",2),o.Sb(),o.Tb(4,"tr"),o.Ob(5,"th",3),o.Sb(),o.Sb(),o.Tb(6,"tbody",4),o.bc("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),o.Sb(),o.Sb()),2&t&&(o.Cb(3),o.lc("ngForOf",e._weekdays),o.Cb(3),o.lc("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:[a.l,U],encapsulation:2,changeDetection:0}),t})();const tt=24;let et=(()=>{class t{constructor(t,e,i){this._changeDetectorRef=t,this._dateAdapter=e,this._dir=i,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new o.o,this.yearSelected=new o.o,this.activeDateChange=new o.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,this.minDate,this.maxDate),it(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(t){this._selected=t instanceof K?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,i=[];ethis._createCellForYear(t))),i=[]);this._changeDetectorRef.markForCheck()}_yearSelected(t){const e=t.value;this.yearSelected.emit(this._dateAdapter.createDate(e,0,1));let i=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,i,1));this.selectedChange.emit(this._dateAdapter.createDate(e,i,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case g.j:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?1:-1);break;case g.n:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,i?-1:1);break;case g.q:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case g.e:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case g.i:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case g.f:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,tt-nt(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case g.m:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case g.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:tt);break;case g.g:case g.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),i=this._dateAdapter.getYearName(e),n=this.dateClass?this.dateClass(e,"multi-year"):void 0;return new H(t,i,i,this._shouldEnableYear(t),n)}_shouldEnableYear(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&t{class t{constructor(t,e,i,n){this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=i,this._dir=n,this._rerenderSubscription=p.a.EMPTY,this.selectedChange=new o.o,this.monthSelected=new o.o,this.activeDateChange=new o.o,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(t){let e=this._activeDate;const i=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(i,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 K?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,i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1);this.monthSelected.emit(i);const n=this._dateAdapter.getNumDaysInMonth(i);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))}_handleCalendarBodyKeydown(t){const e=this._activeDate,i=this._isRtl();switch(t.keyCode){case g.j:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?1:-1);break;case g.n:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,i?-1:1);break;case g.q:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case g.e:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case g.i:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case g.f:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case g.m:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case g.l:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case g.g:case g.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 i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),n=this._dateAdapter.format(i,this._dateFormats.display.monthYearA11yLabel),s=this.dateClass?this.dateClass(i,"year"):void 0;return new H(t,e.toLocaleUpperCase(),n,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 i=this._dateAdapter.createDate(e,t,1);this._dateAdapter.getMonth(i)==t;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(t,e){if(this.maxDate){const i=this._dateAdapter.getYear(this.maxDate),n=this._dateAdapter.getMonth(this.maxDate);return t>i||t===i&&e>n}return!1}_isYearAndMonthBeforeMinDate(t,e){if(this.minDate){const i=this._dateAdapter.getYear(this.minDate),n=this._dateAdapter.getMonth(this.minDate);return t{class t{constructor(t,e,i,n,s){this._intl=t,this.calendar=e,this._dateAdapter=i,this._dateFormats=n,this._buttonDescriptionId="mat-calendar-button-"+at++,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+tt-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),n=this._dateAdapter.getYearName(this._dateAdapter.createDate(e,0,1));return this._intl.formatYearRange(i,n)}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:tt)}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):it(this._dateAdapter,t,e,this.calendar.minDate,this.calendar.maxDate)}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(B),o.Nb(Object(o.W)(()=>lt)),o.Nb(u.c,8),o.Nb(u.e,8),o.Nb(o.h))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:R,decls:10,vars:10,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&&(o.kc(),o.Tb(0,"div",0),o.Tb(1,"div",1),o.Tb(2,"button",2),o.bc("click",function(){return e.currentPeriodClicked()}),o.Tb(3,"span"),o.Ec(4),o.Sb(),o.Ob(5,"div",3),o.Sb(),o.Ob(6,"div",4),o.jc(7),o.Tb(8,"button",5),o.bc("click",function(){return e.previousClicked()}),o.Sb(),o.Tb(9,"button",6),o.bc("click",function(){return e.nextClicked()}),o.Sb(),o.Sb(),o.Sb()),2&t&&(o.Cb(2),o.Db("aria-label",e.periodButtonLabel)("aria-describedby",e._buttonDescriptionId),o.Cb(1),o.Db("id",e._buttonDescriptionId),o.Cb(1),o.Fc(e.periodButtonText),o.Cb(1),o.Fb("mat-calendar-invert","month"!==e.calendar.currentView),o.Cb(3),o.lc("disabled",!e.previousEnabled()),o.Db("aria-label",e.prevButtonLabel),o.Cb(1),o.lc("disabled",!e.nextEnabled()),o.Db("aria-label",e.nextButtonLabel))},directives:[l.b,n.d],encapsulation:2,changeDetection:0}),t})(),lt=(()=>{class t{constructor(t,e,i,n){this._dateAdapter=e,this._dateFormats=i,this._changeDetectorRef=n,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new o.o,this.yearSelected=new o.o,this.monthSelected=new o.o,this.viewChanged=new o.o(!0),this._userSelection=new o.o,this.stateChanges=new d.a,this._intlChanges=t.changes.subscribe(()=>{n.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 K?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){const e=this._currentView!==t?t:null;this._currentView=t,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),e&&this.viewChanged.emit(e)}ngAfterContentInit(){this._calendarHeaderPortal=new r.d(this.headerComponent||ot),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 K||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)(o.Nb(B),o.Nb(u.c,8),o.Nb(u.e,8),o.Nb(o.h))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-calendar"]],viewQuery:function(t,e){if(1&t&&(o.Ic(J,!0),o.Ic(rt,!0),o.Ic(et,!0)),2&t){let t;o.rc(t=o.cc())&&(e.monthView=t.first),o.rc(t=o.cc())&&(e.yearView=t.first),o.rc(t=o.cc())&&(e.multiYearView=t.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",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[o.Bb([Q]),o.Ab],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&&(o.Dc(0,j,0,0,"ng-template",0),o.Tb(1,"div",1),o.Dc(2,L,1,8,"mat-month-view",2),o.Dc(3,N,1,6,"mat-year-view",3),o.Dc(4,P,1,6,"mat-multi-year-view",4),o.Sb()),2&t&&(o.lc("cdkPortalOutlet",e._calendarHeaderPortal),o.Cb(1),o.lc("ngSwitch",e.currentView),o.Cb(1),o.lc("ngSwitchCase","month"),o.Cb(1),o.lc("ngSwitchCase","year"),o.Cb(1),o.lc("ngSwitchCase","multi-year"))},directives:[r.c,n.e,a.o,a.p,J,rt,et],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 ct={transformPanel:Object(w.m)("transformPanel",[Object(w.j)("void",Object(w.k)({opacity:0,transform:"scale(1, 0.8)"})),Object(w.l)("void => enter",Object(w.e)("120ms cubic-bezier(0, 0, 0.2, 1)",Object(w.k)({opacity:1,transform:"scale(1, 1)"}))),Object(w.l)("* => void",Object(w.e)("100ms linear",Object(w.k)({opacity:0})))]),fadeInCalendar:Object(w.m)("fadeInCalendar",[Object(w.j)("void",Object(w.k)({opacity:0})),Object(w.j)("enter",Object(w.k)({opacity:1})),Object(w.l)("void => *",Object(w.e)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ht=0;const ut=new o.s("mat-datepicker-scroll-strategy"),dt={provide:ut,deps:[s.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};class pt{constructor(t){this._elementRef=t}}const mt=Object(u.w)(pt);let ft=(()=>{class t extends mt{constructor(t,e,i,n,s,r){super(t),this._changeDetectorRef=e,this._model=i,this._dateAdapter=n,this._rangeSelectionStrategy=s,this._subscriptions=new p.a,this._animationState="enter",this._animationDone=new d.a,this._closeButtonText=(null==r?void 0:r.closeCalendarLabel)||"Close calendar"}ngAfterViewInit(){this._subscriptions.add(this.datepicker._stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(t){const e=this._model.selection,i=t.value,n=e instanceof K;if(n&&this._rangeSelectionStrategy){const n=this._rangeSelectionStrategy.selectionFinished(i,e,t.event);this._model.updateSelection(n,this)}else!i||!n&&this._dateAdapter.sameDate(i,e)||this._model.add(i);this._model&&!this._model.isComplete()||this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(o.l),o.Nb(o.h),o.Nb(G),o.Nb(u.c),o.Nb(Z,8),o.Nb(B))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){if(1&t&&o.Ic(lt,!0),2&t){let t;o.rc(t=o.cc())&&(e._calendar=t.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&o.Bc("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(o.Cc("@transformPanel",e._animationState),o.Fb("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[o.zb],decls:4,vars:16,consts:[["cdkTrapFocus",""],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],["type","button","mat-raised-button","","color","primary",1,"mat-datepicker-close-button",3,"focus","blur","click"]],template:function(t,e){1&t&&(o.Tb(0,"div",0),o.Tb(1,"mat-calendar",1),o.bc("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),o.Sb(),o.Tb(2,"button",2),o.bc("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),o.Ec(3),o.Sb(),o.Sb()),2&t&&(o.Cb(1),o.lc("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"),o.Cb(1),o.Fb("cdk-visually-hidden",!e._closeButtonFocused),o.Cb(1),o.Fc(e._closeButtonText))},directives:[n.f,lt,a.k,l.b],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.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:[ct.transformPanel,ct.fadeInCalendar]},changeDetection:0}),t})(),gt=(()=>{class t{constructor(t,e,i,n,s,r,a,l,c){this._dialog=t,this._overlay=e,this._ngZone=i,this._viewContainerRef=n,this._dateAdapter=r,this._dir=a,this._document=l,this._model=c,this._inputStateChanges=p.a.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this.yearSelected=new o.o,this.monthSelected=new o.o,this.viewChanged=new o.o(!0),this.openedStream=new o.o,this.closedStream=new o.o,this._opened=!1,this.id="mat-datepicker-"+ht++,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 panelClass(){return this._panelClass}set panelClass(t){this._panelClass=Object(v.g)(t)}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)}_viewChanged(t){this.viewChanged.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(ft,{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(ft,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(m.a)(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Object(y.a)(t=>t.keyCode===g.h&&!Object(g.t)(t)||this._datepickerInput&&Object(g.t)(t,"altKey")&&t.keyCode===g.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",i="start"===e?"end":"start",n="above"===this.yPosition?"bottom":"top",s="top"===n?"bottom":"top";return t.withPositions([{originX:e,originY:s,overlayX:e,overlayY:n},{originX:e,originY:n,overlayX:e,overlayY:s},{originX:i,originY:s,overlayX:i,overlayY:n},{originX:i,originY:n,overlayX:i,overlayY:s}])}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(c.a),o.Nb(s.c),o.Nb(o.B),o.Nb(o.R),o.Nb(ut),o.Nb(u.c,8),o.Nb(S.b,8),o.Nb(a.d,8),o.Nb(G))},t.\u0275dir=o.Ib({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[o.Ab]}),t})(),bt=(()=>{class t extends gt{}return t.\u0275fac=function(e){return _t(e||t)},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[o.Bb([Q]),o.zb],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t})();const _t=o.Vb(bt);class yt{constructor(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}let vt=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dateAdapter=e,this._dateFormats=i,this.dateChange=new o.o,this.dateInput=new o.o,this._valueChange=new o.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));return!e||this._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMinDate();return!i||!e||this._dateAdapter.compareDate(i,e)<=0?null:{matDatepickerMin:{min:i,actual:e}}},this._maxValidator=t=>{const e=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t.value)),i=this._getMaxDate();return!i||!e||this._dateAdapter.compareDate(i,e)>=0?null:{matDatepickerMax:{max:i,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),i=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&i.blur&&i.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 yt(this,this._elementRef.nativeElement)),this.dateChange.emit(new yt(this,this._elementRef.nativeElement))),this._outsideValueChanged&&this._outsideValueChanged()}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(t){(function(t,e){const i=Object.keys(t);for(let n of i){const{previousValue:i,currentValue:s}=t[n];if(!e.isDateInstance(i)||!e.isDateInstance(s))return!0;if(!e.sameDate(i,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===g.e&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),t.preventDefault())}_onInput(t){const e=this._lastValueValid;let i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i),this._dateAdapter.sameDate(i,this.value)?(t&&!this.value&&this._cvaOnChange(i),e!==this._lastValueValid&&this._validatorOnChange()):(this._assignValue(i),this._cvaOnChange(i),this._valueChange.emit(i),this.dateInput.emit(new yt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new yt(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}_matchesFilter(t){const e=this._getDateFilter();return!e||e(t)}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(o.l),o.Nb(u.c,8),o.Nb(u.e,8))},t.\u0275dir=o.Ib({type:t,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[o.Ab]}),t})();const wt={provide:x.k,useExisting:Object(o.W)(()=>Ct),multi:!0},xt={provide:x.j,useExisting:Object(o.W)(()=>Ct),multi:!0};let Ct=(()=>{class t extends vt{constructor(t,e,i,n){super(t,e,i),this._formField=n,this._validator=x.t.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){const e=this._matchesFilter(this.value);this._dateFilter=t,this._matchesFilter(this.value)!==e&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}_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)(o.Nb(o.l),o.Nb(u.c,8),o.Nb(u.e,8),o.Nb(C.a,8))},t.\u0275dir=o.Ib({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,e){1&t&&o.bc("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&&(o.Wb("disabled",e.disabled),o.Db("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:[o.Bb([wt,xt,{provide:k.a,useExisting:t}]),o.zb]}),t})(),kt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=o.Ib({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t})(),St=(()=>{class t{constructor(t,e,i){this._intl=t,this._changeDetectorRef=e,this._stateChanges=p.a.EMPTY;const n=Number(i);this.tabIndex=n||0===n?n: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(f.a)(),e=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput.stateChanges:Object(f.a)(),i=this.datepicker?Object(m.a)(this.datepicker.openedStream,this.datepicker.closedStream):Object(f.a)();this._stateChanges.unsubscribe(),this._stateChanges=Object(m.a)(this._intl.changes,t,e,i).subscribe(()=>this._changeDetectorRef.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(o.Nb(B),o.Nb(o.h),o.Yb("tabindex"))},t.\u0275cmp=o.Hb({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,i){if(1&t&&o.Gb(i,kt,!0),2&t){let t;o.rc(t=o.cc())&&(e._customIcon=t.first)}},viewQuery:function(t,e){if(1&t&&o.Ic(F,!0),2&t){let t;o.rc(t=o.cc())&&(e._button=t.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,e){1&t&&o.bc("focus",function(){return e._button.focus()}),2&t&&(o.Db("tabindex",e.disabled?null:-1)("data-mat-calendar",e.datepicker?e.datepicker.id:null),o.Fb("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:[o.Ab],ngContentSelectors:z,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&&(o.kc(V),o.Tb(0,"button",0,1),o.bc("click",function(t){return e._open(t)}),o.Dc(2,M,2,0,"svg",2),o.jc(3),o.Sb()),2&t&&(o.lc("disabled",e.disabled)("disableRipple",e.disableRipple),o.Db("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),o.Cb(2),o.lc("ngIf",!e._customIcon))},directives:[l.b,a.m],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})(),Ot=(()=>{class t{}return t.\u0275mod=o.Lb({type:t}),t.\u0275inj=o.Kb({factory:function(e){return new(e||t)},providers:[B,dt],imports:[[a.c,l.c,c.e,s.f,n.a,r.g,u.i],h.b]}),t})()},itXk:function(t,e,i){"use strict";i.d(e,"b",function(){return p}),i.d(e,"a",function(){return m});var n=i("z+Ro"),s=i("DH7j"),r=i("7o/Q");class a extends r.a{notifyNext(t,e,i,n,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class o extends r.a{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var l=i("SeVD"),c=i("HDdC");function h(t,e,i,n,s=new o(t,i,n)){if(!s.closed)return e instanceof c.a?e.subscribe(s):Object(l.a)(e)(s)}var u=i("yCtX");const d={};function p(...t){let e=void 0,i=void 0;return Object(n.a)(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(s.a)(t[0])&&(t=t[0]),Object(u.a)(t,i).lift(new m(e))}class m{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new f(t,this.resultSelector))}}class f extends a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(d),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)}}),t})();var o=i("vxfF"),l=i("nLfN"),c=i("8LU1"),h=i("XNiG"),u=i("quSY"),d=i("HDdC"),p=i("D0XW"),m=i("Y7HM");function f(t){const{subscriber:e,counter:i,period:n}=t;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}var g=i("eNwd"),b=(i("VRyK"),i("1G5W"));function _(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function y(t,e){const i=e?"":"none";_(t.style,{touchAction:e?"":"none",webkitUserDrag:e?"":"none",webkitTapHighlightColor:e?"":"transparent",userSelect:i,msUserSelect:i,webkitUserSelect:i,MozUserSelect:i})}function v(t,e){const i=t.style;i.position=e?"":"fixed",i.top=i.opacity=e?"":"0",i.left=e?"":"-999em"}function w(t){const e=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*e}function x(t,e){return t.getPropertyValue(e).split(",").map(t=>t.trim())}function C(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 k(t,e,i){const{top:n,bottom:s,left:r,right:a}=t;return i>=n&&i<=s&&e>=r&&e<=a}function S(t,e,i){t.top+=e,t.bottom=t.top+t.height,t.left+=i,t.right=t.left+t.width}function O(t,e,i,n){const{top:s,right:r,bottom:a,left:o,width:l,height:c}=t,h=l*e,u=c*e;return n>s-u&&no-h&&i{this.positions.set(t,{scrollPosition:{top:t.scrollTop,left:t.scrollLeft},clientRect:C(t)})})}handleScroll(t){const e=t.target,i=this.positions.get(e);if(!i)return null;const n=e===this._document?e.documentElement:e,s=i.scrollPosition;let r,a;if(e===this._document){const t=this._viewportRuler.getViewportScrollPosition();r=t.top,a=t.left}else r=e.scrollTop,a=e.scrollLeft;const o=s.top-r,l=s.left-a;return this.positions.forEach((t,i)=>{t.clientRect&&e!==i&&n.contains(i)&&S(t.clientRect,o,l)}),s.top=r,s.left=a,{top:o,left:l}}}function A(t){const e=t.cloneNode(!0),i=e.querySelectorAll("[id]"),n=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 i=t.target;return!!i&&(i===e||e.contains(i))});!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){const e=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),i=this._dropContainer;if(!e)return void this._endDragSequence(t);i&&(i.isDragging()||i.isReceiving())||(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 i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{const t=this._activeTransform;t.x=i.x-this._pickupPositionOnPage.x+this._passiveTransform.x,t.y=i.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:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})},this._pointerUp=t=>{this._endDragSequence(t)},this.withRootElement(t),this._parentPositions=new E(i,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(),this._handles.forEach(t=>y(t,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(t=>Object(c.e)(t)),this._handles.forEach(t=>y(t,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,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,L),e.addEventListener("touchstart",this._pointerDown,j)}),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()&&M(this._rootElement),M(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._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),y(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),y(t,this.disabled))}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&&M(this._preview),this._previewRef&&this._previewRef.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder&&M(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){V(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const t=this._rootElement,i=t.parentNode,n=this._preview=this._createPreviewElement(),s=this._placeholder=this._createPlaceholderElement(),r=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();i.insertBefore(r,t),v(t,!1),this._document.body.appendChild(i.replaceChild(s,t)),function(t,e){return e||t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement||t.body}(this._document,a).appendChild(n),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;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){e.stopPropagation();const i=this.isDragging(),n=V(e),s=!n&&0!==e.button,r=this._rootElement,a=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now();if(e.target&&e.target.draggable&&"mousedown"===e.type&&e.preventDefault(),i||s||a)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=C(this._boundaryElement));const o=this._previewTemplate;this._pickupPositionInElement=o&&o.template&&!o.matchSize?{x:0,y:0}:this._getPointerPositionInElement(t,e);const l=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:l.x,y:l.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){v(this._rootElement,!0),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,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),s=this._getDragDistance(this._getPointerPositionOnPage(t)),r=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:s}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:r,distance:s}),e.drop(this,i,this._initialIndex,this._initialContainer,r,s),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){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(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this._preview.style.transform=P(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y)}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let n;if(i&&t){const e=t.matchSize?this._rootElement.getBoundingClientRect():null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),n=z(s,this._document),this._previewRef=s,t.matchSize?B(n,e):n.style.transform=P(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else{const t=this._rootElement;n=A(t),B(n,t.getBoundingClientRect())}return _(n.style,{pointerEvents:"none",margin:"0",position:"fixed",top:"0",left:"0",zIndex:""+(this._config.zIndex||1e3)}),y(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(t=>n.classList.add(t)):n.classList.add(e)),n}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._preview.style.transform=P(t.left,t.top);const e=function(t){const e=getComputedStyle(t),i=x(e,"transition-property"),n=i.find(t=>"transform"===t||"all"===t);if(!n)return 0;const s=i.indexOf(n),r=x(e,"transition-duration"),a=x(e,"transition-delay");return w(r[s])+w(a[s])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{const i=e=>{(!e||e.target===this._preview&&"transform"===e.propertyName)&&(this._preview.removeEventListener("transitionend",i),t(),clearTimeout(n))},n=setTimeout(i,1.5*e);this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=z(this._placeholderRef,this._document)):i=A(this._rootElement),i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e){const i=this._rootElement.getBoundingClientRect(),n=t===this._rootElement?null:t,s=n?n.getBoundingClientRect():i,r=V(e)?e.targetTouches[0]:e,a=this._getViewportScrollPosition();return{x:s.left-i.left+(r.pageX-s.left-a.left),y:s.top-i.top+(r.pageY-s.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=V(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,s=i.pageY-e.top;if(this._ownerSVGElement){const t=this._ownerSVGElement.getScreenCTM();if(t){const e=this._ownerSVGElement.createSVGPoint();return e.x=n,e.y=s,e.matrixTransform(t.inverse())}}return{x:n,y:s}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this):t;if("x"===this.lockAxis||"x"===e?n=this._pickupPositionOnPage.y:"y"!==this.lockAxis&&"y"!==e||(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:t,y:e}=this._pickupPositionInElement,s=this._boundaryRect,r=this._previewRect,a=s.top+e,o=s.bottom-(r.height-e);i=F(i,s.left+t,s.right-(r.width-t)),n=F(n,a,o)}return{x:i,y:n}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,n=this._pointerDirectionDelta,s=this._pointerPositionAtLastDirectionChange,r=Math.abs(e-s.x),a=Math.abs(i-s.y);return r>this._config.pointerDirectionChangeThreshold&&(n.x=e>s.x?1:-1,s.x=e),a>this._config.pointerDirectionChangeThreshold&&(n.y=i>s.y?1:-1,s.y=i),n}_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,L),t.removeEventListener("touchstart",this._pointerDown,j)}_applyRootElementTransform(t,e){const i=P(t,e);null==this._initialTransform&&(this._initialTransform=this._rootElement.style.transform||""),this._rootElement.style.transform=this._initialTransform?i+" "+this._initialTransform:i}_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 i=this._boundaryElement.getBoundingClientRect(),n=this._rootElement.getBoundingClientRect();if(0===i.width&&0===i.height||0===n.width&&0===n.height)return;const s=i.left-n.left,r=n.right-i.right,a=i.top-n.top,o=n.bottom-i.bottom;i.width>n.width?(s>0&&(t+=s),r>0&&(t-=r)):t=0,i.height>n.height?(a>0&&(e+=a),o>0&&(e-=o)):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:V(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=t.target;this._boundaryRect&&(i===this._document||i!==this._boundaryElement&&i.contains(this._boundaryElement))&&S(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()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=Object(l.c)(this._rootElement)),this._cachedShadowRoot}}function P(t,e){return`translate3d(${Math.round(t)}px, ${Math.round(e)}px, 0)`}function F(t,e,i){return Math.max(e,Math.min(i,t))}function M(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function V(t){return"t"===t.type[0]}function z(t,e){const i=t.rootNodes;if(1===i.length&&i[0].nodeType===e.ELEMENT_NODE)return i[0];const n=e.createElement("div");return i.forEach(t=>n.appendChild(t)),n}function B(t,e){t.style.width=e.width+"px",t.style.height=e.height+"px",t.style.transform=P(e.left,e.top)}function H(t,e){return Math.max(0,Math.min(e,t))}class U{constructor(t,e,i,n,s){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=s,this.disabled=!1,this.sortingDisabled=!1,this.autoScrollDisabled=!1,this.enterPredicate=()=>!0,this.sortPredicate=()=>!0,this.beforeStarted=new h.a,this.entered=new h.a,this.exited=new h.a,this.dropped=new h.a,this.sorted=new h.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=u.a.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new h.a,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function(t=0,e=p.a){return(!Object(m.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=p.a),new d.a(i=>(i.add(e.schedule(f,t,{subscriber:i,counter:0,period:t})),i))}(0,g.a).pipe(Object(b.a)(this._stopScrollTimers)).subscribe(()=>{const t=this._scrollNode;1===this._verticalScrollDirection?q(t,-2):2===this._verticalScrollDirection&&q(t,2),1===this._horizontalScrollDirection?$(t,-2):2===this._horizontalScrollDirection&&$(t,2)})},this.element=Object(c.e)(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new E(i,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,i,n){let s;this.start(),null==n?(s=this.sortingDisabled?this._draggables.indexOf(t):-1,-1===s&&(s=this._getItemIndexFromPointerPosition(t,e,i))):s=n;const r=this._activeDraggables,a=r.indexOf(t),o=t.getPlaceholderElement();let l=r[s];if(l===t&&(l=r[s+1]),a>-1&&r.splice(a,1),l&&!this._dragDropRegistry.isDragging(l)){const e=l.getRootElement();e.parentElement.insertBefore(o,e),r.splice(s,0,t)}else if(this._shouldEnterAsFirstChild(e,i)){const e=r[0].getRootElement();e.parentNode.insertBefore(o,e),r.unshift(t)}else Object(c.e)(this.element).appendChild(o),r.push(t);o.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,i,n,s,r){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:s,distance:r})}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?X("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,i,n){if(this.sortingDisabled||!O(this._clientRect,.05,e,i))return;const s=this._itemPositions,r=this._getItemIndexFromPointerPosition(t,e,i,n);if(-1===r&&s.length>0)return;const a="horizontal"===this._orientation,o=X(s,e=>e.drag===t),l=s[r],c=l.clientRect,h=o>r?1:-1,u=this._getItemOffsetPx(s[o].clientRect,c,h),d=this._getSiblingOffsetPx(o,s,h),p=s.slice();!function(t,e,i){const n=H(e,t.length-1),s=H(i,t.length-1);if(n===s)return;const r=t[n],a=s{if(p[i]===e)return;const n=e.drag===t,s=n?u:d,r=n?t.getPlaceholderElement():e.drag.getRootElement();e.offset+=s,a?(r.style.transform=`translate3d(${Math.round(e.offset)}px, 0, 0)`,S(e.clientRect,0,s)):(r.style.transform=`translate3d(0, ${Math.round(e.offset)}px, 0)`,S(e.clientRect,s,0))}),this._previousSwap.overlaps=k(c,e,i),this._previousSwap.drag=l.drag,this._previousSwap.delta=a?n.x:n.y}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=0,s=0;if(this._parentPositions.positions.forEach((r,a)=>{a!==this._document&&r.clientRect&&!i&&O(r.clientRect,.05,t,e)&&([n,s]=function(t,e,i,n){const s=W(e,n),r=K(e,i);let a=0,o=0;if(s){const e=t.scrollTop;1===s?e>0&&(a=1):t.scrollHeight-e>t.clientHeight&&(a=2)}if(r){const e=t.scrollLeft;1===r?e>0&&(o=1):t.scrollWidth-e>t.clientWidth&&(o=2)}return[a,o]}(a,r.clientRect,t,e),(n||s)&&(i=a))}),!n&&!s){const{width:r,height:a}=this._viewportRuler.getViewportSize(),o={width:r,height:a,top:0,right:r,bottom:a,left:0};n=W(o,e),s=K(o,t),i=window}!i||n===this._verticalScrollDirection&&s===this._horizontalScrollDirection&&i===this._scrollNode||(this._verticalScrollDirection=n,this._horizontalScrollDirection=s,this._scrollNode=i,(n||s)&&i?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:C(e)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.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,i){const n="horizontal"===this._orientation,s=e[t].clientRect,r=e[t+-1*i];let a=s[n?"width":"height"]*i;if(r){const t=n?"left":"top",e=n?"right":"bottom";-1===i?a-=r.clientRect[t]-s[e]:a+=s[t]-r.clientRect[e]}return a}_getItemOffsetPx(t,e,i){const n="horizontal"===this._orientation;let s=n?e.left-t.left:e.top-t.top;return-1===i&&(s+=n?e.width-t.width:e.height-t.height),s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,n="horizontal"===this._orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return n?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return n?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,n){const s="horizontal"===this._orientation,r=X(this._itemPositions,({drag:r,clientRect:a},o,l)=>{if(r===t)return l.length<2;if(n){const t=s?n.x:n.y;if(r===this._previousSwap.drag&&this._previousSwap.overlaps&&t===this._previousSwap.delta)return!1}return s?e>=Math.floor(a.left)&&e=Math.floor(a.top)&&in._canReceive(t,e,i))}_canReceive(t,e,i){if(!k(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const n=this._getShadowRoot().elementFromPoint(e,i);if(!n)return!1;const s=Object(c.e)(this.element);return n===s||s.contains(n)}_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})=>{S(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(l.c)(Object(c.e)(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}}function X(t,e){for(let i=0;i=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}function K(t,e){const{left:i,right:n,width:s}=t,r=.05*s;return e>=i-r&&e<=i+r?1:e>=n-r&&e<=n+r?2:0}const G=Object(l.f)({passive:!1,capture:!0});let Y=(()=>{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 h.a,this.pointerUp=new h.a,this.scroll=new h.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,G)})}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,G)}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:G}),t||this._globalListeners.set("mousemove",{handler:t=>this.pointerMove.next(t),options:G}),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)(r.Xb(r.B),r.Xb(s.d))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(r.B),Object(r.Xb)(s.d))},token:t,providedIn:"root"}),t})();const Q={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let Z=(()=>{class t{constructor(t,e,i,n){this._document=t,this._ngZone=e,this._viewportRuler=i,this._dragDropRegistry=n}createDrag(t,e=Q){return new N(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)(r.Xb(s.d),r.Xb(r.B),r.Xb(o.e),r.Xb(Y))},t.\u0275prov=Object(r.Jb)({factory:function(){return new t(Object(r.Xb)(s.d),Object(r.Xb)(r.B),Object(r.Xb)(o.e),Object(r.Xb)(Y))},token:t,providedIn:"root"}),t})(),J=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},providers:[Z],imports:[o.b]}),t})();var tt=i("+rOU"),et=i("B/XX"),it=i("f6nW");i("0EQZ"),i("7+OI"),i("2Vo4"),i("LRne"),i("pLZG");let nt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)}}),t})();var st=i("FKr1"),rt=(i("NXyV"),i("xgIS"),i("rDax"));i("FtGj"),i("3Pt+"),i("kmnG"),i("3E0/");const at={provide:new r.s("mat-autocomplete-scroll-strategy"),deps:[rt.c],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let ot=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},providers:[at],imports:[[rt.f,st.n,st.i,s.c],o.b,st.n,st.i]}),t})();i("R1ws");let lt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[n.a,st.i],st.i]}),t})();i("0MNC"),i("R0Ic");let ct=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[rt.f,st.i,tt.g],st.i]}),t})();var ht=i("bTqV");let ut=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[st.i,st.s],st.i]}),t})();var dt=i("Wp6s"),pt=i("bSwM"),mt=i("A5z7"),ft=i("xHqg"),gt=i("iadO"),bt=i("0IaG"),_t=i("f0Cb"),yt=i("7EHt");let vt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[st.k,st.i],st.k,st.i]}),t})();var wt=i("NFeN"),xt=i("qFsG"),Ct=i("MutI"),kt=i("STbY"),St=i("M9IT"),Ot=i("bv9b"),Et=i("Xa2L");let At=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[st.s,st.i],st.i]}),t})();var Dt=i("d3UM"),It=i("XhcP");let Tt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.c,st.i],st.i]}),t})();var Rt=i("1jcm"),jt=i("dNgK"),Lt=i("Dh3D"),Nt=i("+0xr"),Pt=i("GU7r");i("PqYM"),i("/uUt");let Ft=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.c,st.i,tt.g,st.s,Pt.c,n.a],st.i]}),t})();var Mt=i("/t3+"),Vt=i("Qu3c");let zt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[nt,st.i],st.i]}),t})();var Bt=i("pD6V");i("jhN1"),new Map,new WeakMap;let Ht=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[Bt.c]]}),t})();var Ut=i("XiUz");new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map,new Map;let Xt=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[Bt.c]]}),t})();new r.Q("11.0.0-beta.33");let qt=(()=>{class t{constructor(t,e){Object(s.w)(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,i=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:Bt.e,useValue:Object.assign(Object.assign({},Bt.d),e)},{provide:Bt.a,useValue:i,multi:!0},{provide:Bt.g,useValue:!0}]:[{provide:Bt.e,useValue:Object.assign(Object.assign({},Bt.d),e)},{provide:Bt.a,useValue:i,multi:!0}]}}}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)(r.Xb(Bt.g),r.Xb(r.D))},imports:[[Ut.d,Ht,Xt],Ut.d,Ht,Xt]}),t})(),$t=(()=>{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[n.a,a,et.e,it.r,nt,J,ot,lt,ct,ht.c,ut,dt.e,pt.b,mt.e,ft.d,gt.c,bt.e,_t.b,yt.a,vt,wt.b,xt.c,Ct.c,kt.c,st.l,St.b,Ot.b,Et.b,At,st.s,Dt.b,It.d,Tt,Rt.b,jt.b,Lt.b,Nt.k,Ft,Mt.b,Vt.b,zt,tt.g,o.d,qt]}),t})()},jZKg:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("HDdC"),s=i("quSY");function r(t,e){return new n.a(i=>{const n=new s.a;let r=0;return n.add(e.schedule(function(){r!==t.length?(i.next(t[r++]),i.closed||n.add(this.schedule())):i.complete()})),n})}},jhN1:function(t,e,i){"use strict";i.d(e,"a",function(){return F}),i.d(e,"b",function(){return T}),i.d(e,"c",function(){return N}),i.d(e,"d",function(){return w});var n=i("ofXK"),s=i("fXoL");class r extends n.x{constructor(){super()}supportsDOMEvents(){return!0}}class a extends r{static makeCurrent(){Object(n.B)(new a)}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,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=l||(l=document.querySelector("base"),l)?l.getAttribute("href"):null;return null==e?null:(i=e,o||(o=document.createElement("a")),o.setAttribute("href",i),"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname);var i}resetBaseElement(){l=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(n.A)(document.cookie,t)}}let o,l=null;const c=new s.s("TRANSITION_ID"),h=[{provide:s.d,useFactory:function(t,e,i){return()=>{i.get(s.e).donePromise.then(()=>{const i=Object(n.z)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[c,n.d,s.t],multi:!0}];class u{static init(){Object(s.ab)(new u)}addToWindow(t){s.rb.getAngularTestability=(e,i=!0)=>{const n=t.findTestabilityInTree(e,i);if(null==n)throw new Error("Could not find testability for element.");return n},s.rb.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.rb.getAllAngularRootElements=()=>t.getAllRootElements(),s.rb.frameworkStabilizers||(s.rb.frameworkStabilizers=[]),s.rb.frameworkStabilizers.push(t=>{const e=s.rb.getAllAngularTestabilities();let i=e.length,n=!1;const r=function(e){n=n||e,i--,0==i&&t(n)};e.forEach(function(t){t.whenStable(r)})})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?Object(n.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,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let n=0;n{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.Jb({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends f{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 i=this._doc.createElement("style");i.textContent=t,this._styleNodes.add(e.appendChild(i))})}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(n.z)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.d))},t.\u0275prov=s.Jb({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,i){for(let n=0;n{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new x(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.S.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new C(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case 1:case s.S.ShadowDom:return new k(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.Xb(p),s.Xb(g),s.Xb(s.c))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();class x{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,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+":"+e;const s=b[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const n=b[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){n&(s.I.DashCase|s.I.Important)?t.style.setProperty(e,i,n&s.I.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&s.I.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(i)):this.eventManager.addEventListener(t,e,v(i))}}class C extends x{constructor(t,e,i,n){super(t),this.component=i;const s=y(n+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(_,n+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(_,n+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class k extends x{constructor(t,e,i,n){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=y(n.id,n.styles,[]);for(let r=0;r{class t extends m{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.d))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const O=["alt","control","meta","shift"],E={"\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"},A={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"},D={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let I=(()=>{class t extends m{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const r=t.parseEventName(i),a=t.eventCallback(r.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(n.z)().onAndCancel(e,r.domEventName,a))}static parseEventName(e){const i=e.toLowerCase().split("."),n=i.shift();if(0===i.length||"keydown"!==n&&"keyup"!==n)return null;const s=t._normalizeKey(i.pop());let r="";if(O.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),r+=t+".")}),r+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=n,a.fullKey=r,a}static getEventFullKey(t){let e="",i=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&&A.hasOwnProperty(e)&&(e=A[e]))}return E[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),O.forEach(n=>{n!=i&&(0,D[n])(t)&&(e+=n+".")}),e+=i,e}static eventCallback(e,i,n){return s=>{t.getEventFullKey(s)===e&&n.runGuarded(()=>i(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.d))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),T=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(s.Jb)({factory:function(){return Object(s.Xb)(j)},token:t,providedIn:"root"}),t})();function R(t){return new j(t.get(n.d))}let j=(()=>{class t extends T{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.gb)(e,"HTML")?Object(s.yb)(e):Object(s.eb)(this._doc,String(e));case s.K.STYLE:return Object(s.gb)(e,"Style")?Object(s.yb)(e):e;case s.K.SCRIPT:if(Object(s.gb)(e,"Script"))return Object(s.yb)(e);throw new Error("unsafe value used in a script context");case s.K.URL:return Object(s.qb)(e),Object(s.gb)(e,"URL")?Object(s.yb)(e):Object(s.fb)(String(e));case s.K.RESOURCE_URL:if(Object(s.gb)(e,"ResourceURL"))return Object(s.yb)(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return Object(s.hb)(t)}bypassSecurityTrustStyle(t){return Object(s.kb)(t)}bypassSecurityTrustScript(t){return Object(s.jb)(t)}bypassSecurityTrustUrl(t){return Object(s.lb)(t)}bypassSecurityTrustResourceUrl(t){return Object(s.ib)(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return R(Object(s.Xb)(s.p))},token:t,providedIn:"root"}),t})();const L=[{provide:s.D,useValue:n.y},{provide:s.E,useValue:function(){a.makeCurrent(),u.init()},multi:!0},{provide:n.d,useFactory:function(){return Object(s.wb)(document),document},deps:[]}],N=Object(s.T)(s.Z,"browser",L),P=[[],{provide:s.cb,useValue:"root"},{provide:s.n,useFactory:function(){return new s.n},deps:[]},{provide:d,useClass:S,multi:!0,deps:[n.d,s.B,s.D]},{provide:d,useClass:I,multi:!0,deps:[n.d]},[],{provide:w,useClass:w,deps:[p,g,s.c]},{provide:s.H,useExisting:w},{provide:f,useExisting:g},{provide:g,useClass:g,deps:[n.d]},{provide:s.O,useClass:s.O,deps:[s.B]},{provide:p,useClass:p,deps:[d,s.B]},[]];let F=(()=>{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:c,useExisting:s.c},h]}}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)(s.Xb(t,12))},providers:P,imports:[n.c,s.f]}),t})();"undefined"!=typeof window&&window},jtHE:function(t,e,i){"use strict";i.d(e,"a",function(){return g});var n=i("XNiG"),s=i("3N8a");class r extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}var a=i("IjjT");class o extends a.a{}const l=new o(r);var c=i("quSY"),h=i("7o/Q"),u=i("WMd4");class d extends h.a{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(d.dispatch,this.delay,new p(t,this.destination)))}_next(t){this.scheduleMessage(u.a.createNext(t))}_error(t){this.scheduleMessage(u.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(u.a.createComplete()),this.unsubscribe()}}class p{constructor(t,e){this.notification=t,this.destination=e}}var m=i("9ppp"),f=i("Ylt2");class g extends n.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new b(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),n=this.scheduler,s=i.length;let r;if(this.closed)throw new m.a;if(this.isStopped||this.hasError?r=c.a.EMPTY:(this.observers.push(t),r=new f.a(this,t)),n&&t.add(t=new d(t,n)),e)for(let a=0;ae&&(r=Math.max(r,s-e)),r>0&&n.splice(0,r),n}}class b{constructor(t,e){this.time=t,this.value=e}}},kJWO:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},kmnG:function(t,e,i){"use strict";i.d(e,"a",function(){return J}),i.d(e,"b",function(){return F}),i.d(e,"c",function(){return tt}),i.d(e,"d",function(){return V}),i.d(e,"e",function(){return et}),i.d(e,"f",function(){return H}),i.d(e,"g",function(){return U}),i.d(e,"h",function(){return $}),i.d(e,"i",function(){return K});var n=i("GU7r"),s=i("ofXK"),r=i("fXoL"),a=i("FKr1"),o=i("8LU1"),l=i("XNiG"),c=i("VRyK"),h=i("xgIS"),u=i("JX91"),d=i("1G5W"),p=i("IzEk"),m=i("R0Ic"),f=i("R1ws"),g=i("cH1L"),b=i("nLfN");const _=["underline"],y=["connectionContainer"],v=["inputContainer"],w=["label"];function x(t,e){1&t&&(r.Rb(0),r.Tb(1,"div",14),r.Ob(2,"div",15),r.Ob(3,"div",16),r.Ob(4,"div",17),r.Sb(),r.Tb(5,"div",18),r.Ob(6,"div",15),r.Ob(7,"div",16),r.Ob(8,"div",17),r.Sb(),r.Qb())}function C(t,e){1&t&&(r.Tb(0,"div",19),r.jc(1,1),r.Sb())}function k(t,e){if(1&t&&(r.Rb(0),r.jc(1,2),r.Tb(2,"span"),r.Ec(3),r.Sb(),r.Qb()),2&t){const t=r.fc(2);r.Cb(3),r.Fc(t._control.placeholder)}}function S(t,e){1&t&&r.jc(0,3,["*ngSwitchCase","true"])}function O(t,e){1&t&&(r.Tb(0,"span",23),r.Ec(1," *"),r.Sb())}function E(t,e){if(1&t){const t=r.Ub();r.Tb(0,"label",20,21),r.bc("cdkObserveContent",function(){return r.uc(t),r.fc().updateOutlineGap()}),r.Dc(2,k,4,1,"ng-container",12),r.Dc(3,S,1,0,"ng-content",12),r.Dc(4,O,2,0,"span",22),r.Sb()}if(2&t){const t=r.fc();r.Fb("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.lc("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),r.Db("for",t._control.id)("aria-owns",t._control.id),r.Cb(2),r.lc("ngSwitchCase",!1),r.Cb(1),r.lc("ngSwitchCase",!0),r.Cb(1),r.lc("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function A(t,e){1&t&&(r.Tb(0,"div",24),r.jc(1,4),r.Sb())}function D(t,e){if(1&t&&(r.Tb(0,"div",25,26),r.Ob(2,"span",27),r.Sb()),2&t){const t=r.fc();r.Cb(2),r.Fb("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function I(t,e){if(1&t&&(r.Tb(0,"div"),r.jc(1,5),r.Sb()),2&t){const t=r.fc();r.lc("@transitionMessages",t._subscriptAnimationState)}}function T(t,e){if(1&t&&(r.Tb(0,"div",31),r.Ec(1),r.Sb()),2&t){const t=r.fc(2);r.lc("id",t._hintLabelId),r.Cb(1),r.Fc(t.hintLabel)}}function R(t,e){if(1&t&&(r.Tb(0,"div",28),r.Dc(1,T,2,2,"div",29),r.jc(2,6),r.Ob(3,"div",30),r.jc(4,7),r.Sb()),2&t){const t=r.fc();r.lc("@transitionMessages",t._subscriptAnimationState),r.Cb(1),r.lc("ngIf",t.hintLabel)}}const j=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],L=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let N=0;const P=new r.s("MatError");let F=(()=>{class t{constructor(){this.id="mat-error-"+N++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&r.Db("id",e.id)},inputs:{id:"id"},features:[r.Bb([{provide:P,useExisting:t}])]}),t})();const M={transitionMessages:Object(m.m)("transitionMessages",[Object(m.j)("enter",Object(m.k)({opacity:1,transform:"translateY(0%)"})),Object(m.l)("void => enter",[Object(m.k)({opacity:0,transform:"translateY(-100%)"}),Object(m.e)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let V=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t}),t})(),z=0;const B=new r.s("MatHint");let H=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+z++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(r.Db("id",e.id)("align",null),r.Fb("mat-form-field-hint-end","end"===e.align))},inputs:{align:"align",id:"id"},features:[r.Bb([{provide:B,useExisting:t}])]}),t})(),U=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-label"]]}),t})(),X=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["mat-placeholder"]]}),t})();const q=new r.s("MatPrefix");let $=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["","matPrefix",""]],features:[r.Bb([{provide:q,useExisting:t}])]}),t})();const W=new r.s("MatSuffix");let K=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Ib({type:t,selectors:[["","matSuffix",""]],features:[r.Bb([{provide:W,useExisting:t}])]}),t})(),G=0;class Y{constructor(t){this._elementRef=t}}const Q=Object(a.w)(Y,"primary"),Z=new r.s("MAT_FORM_FIELD_DEFAULT_OPTIONS"),J=new r.s("MatFormField");let tt=(()=>{class t extends Q{constructor(t,e,i,n,s,r,a,o){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=n,this._defaults=s,this._platform=r,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new l.a,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+G++,this._labelId="mat-form-field-label-"+G++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==o,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(o.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(c.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||"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,i=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),i&&t.push(i.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,i=0;const n=this._connectionContainerRef.nativeElement,s=n.querySelectorAll(".mat-form-field-outline-start"),r=n.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const s=n.getBoundingClientRect();if(0===s.width&&0===s.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(s),a=t.children,o=this._getStartEnd(a[0].getBoundingClientRect());let l=0;for(let t=0;t0?.75*l+10:0}for(let a=0;a{class t{}return t.\u0275mod=r.Lb({type:t}),t.\u0275inj=r.Kb({factory:function(e){return new(e||t)},imports:[[s.c,a.i,n.c],a.i]}),t})()},lJxs:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("7o/Q");function s(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new r(t,e))}}class r{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new a(t,this.project,this.thisArg))}}class a extends n.a{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}},lR5k:function(t,e,i){"use strict";i.d(e,"a",function(){return m}),i.d(e,"b",function(){return f}),i.d(e,"c",function(){return h});var n=i("fXoL"),s=i("ofXK"),r=i("OnMO"),a=i("tk/3"),o=i("jhN1"),l=i("lJxs");i("SxV6");const c=["*"];class h{}const u=new n.s("SECURITY_CONTEXT");let d=(()=>{class t{constructor(t,e,i,n,s){this.platform=t,this.securityContext=e,this.http=i,this.sanitizer=s,this.initialMarkedOptions={renderer:new r.Renderer},this.options=n}get options(){return this._options}set options(t){this._options=Object.assign(Object.assign({},this.initialMarkedOptions),t)}get renderer(){return this.options.renderer}set renderer(t){this.options.renderer=t}compile(t,e=!1,i=!1,n=this.options){const s=this.trimIndentation(t),a=e?this.decodeHtml(s):s,o=i?this.renderEmoji(a):a,l=Object(r.parse)(o,n);return this.sanitizer.sanitize(this.securityContext,l)||""}getSource(t){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(t,{responseType:"text"}).pipe(Object(l.a)(e=>this.handleExtension(t,e)))}highlight(t){if(Object(s.v)(this.platform)&&"undefined"!=typeof Prism){t||(t=document);const e=t.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(e,t=>t.classList.add("language-none")),Prism.highlightAllUnder(t)}}renderKatex(t,e){if(!Object(s.v)(this.platform))return t;if("undefined"==typeof katex||void 0===katex.renderToString)throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");return t.replace(/\$([^\s][^$]*?[^\s])\$/gm,(t,i)=>katex.renderToString(i,e))}decodeHtml(t){if(!Object(s.v)(this.platform))return t;const e=document.createElement("textarea");return e.innerHTML=t,e.value}handleExtension(t,e){const i=t?t.split("?")[0].split(".").splice(-1).join():null;return"md"!==i?"```"+i+"\n"+e+"\n```":e}renderEmoji(t){if(!Object(s.v)(this.platform))return t;if("undefined"==typeof joypixels||void 0===joypixels.shortnameToUnicode)throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(t)}trimIndentation(t){if(!t)return"";let e;return t.split("\n").map(t=>{let i=e;return t.length>0&&(i=isNaN(i)?t.search(/\S|$/):Math.min(t.search(/\S|$/),i)),isNaN(e)&&(e=i),i?t.substring(i):t}).join("\n")}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(n.D),n.Xb(u),n.Xb(a.a,8),n.Xb(h,8),n.Xb(o.b))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();var p=function(t){return t.LineHighlight="line-highlight",t.LineNumbers="line-numbers",t}({});let m=(()=>{class t{constructor(t,e){this.element=t,this.markdownService=e,this.error=new n.o,this.load=new n.o,this.ready=new n.o,this._emoji=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1}get emoji(){return this._emoji}set emoji(t){this._emoji=this.coerceBooleanProperty(t)}get katex(){return this._katex}set katex(t){this._katex=this.coerceBooleanProperty(t)}get lineHighlight(){return this._lineHighlight}set lineHighlight(t){this._lineHighlight=this.coerceBooleanProperty(t)}get lineNumbers(){return this._lineNumbers}set lineNumbers(t){this._lineNumbers=this.coerceBooleanProperty(t)}ngOnChanges(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){this.data||this.src||this.handleTransclusion()}render(t,e=!1){let i=this.markdownService.compile(t,e,this.emoji);i=this.katex?this.markdownService.renderKatex(i,this.katexOptions):i,this.element.nativeElement.innerHTML=i,this.handlePlugins(),this.markdownService.highlight(this.element.nativeElement),this.ready.emit()}coerceBooleanProperty(t){return null!=t&&""+t!="false"}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe(t=>{this.render(t),this.load.emit(t)},t=>this.error.emit(t))}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.lineHighlight&&(this.setPluginClass(this.element.nativeElement,p.LineHighlight),this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset})),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,p.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(t,e){const i=t.querySelectorAll("pre");for(let n=0;n{const s=e[t];if(s){const e=this.toLispCase(t);i.item(n).setAttribute(e,s.toString())}})}toLispCase(t){const e=t.match(/([A-Z])/g);if(!e)return t;let i=t.toString();for(let n=0,s=e.length;n{class t{static forRoot(e){return{ngModule:t,providers:[d,e&&e.loader||[],e&&e.markedOptions||[],{provide:u,useValue:e&&null!=e.sanitize?e.sanitize:n.K.HTML}]}}static forChild(){return{ngModule:t}}}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})()},n6bG:function(t,e,i){"use strict";function n(t){return"function"==typeof t}i.d(e,"a",function(){return n})},nLfN:function(t,e,i){"use strict";i.d(e,"a",function(){return o}),i.d(e,"b",function(){return l}),i.d(e,"c",function(){return _}),i.d(e,"d",function(){return b}),i.d(e,"e",function(){return h}),i.d(e,"f",function(){return f}),i.d(e,"g",function(){return g});var n=i("fXoL"),s=i("ofXK");let r;try{r="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(y){r=!1}let a,o=(()=>{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)(n.Xb(n.D))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(n.D))},token:t,providedIn:"root"}),t})(),l=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})();const c=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function h(){if(a)return a;if("object"!=typeof document||!document)return a=new Set(c),a;let t=document.createElement("input");return a=new Set(c.filter(e=>(t.setAttribute("type",e),t.type===e))),a}let u,d,p,m;function f(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 g(){if(null==p)if("object"==typeof document&&document||(p=!1),"scrollBehavior"in document.documentElement.style)p=!0;else{const t=Element.prototype.scrollTo;p=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}return p}function b(){if("object"!=typeof document||!document)return 0;if(null==d){const t=document.createElement("div"),e=t.style;t.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";const i=document.createElement("div"),n=i.style;n.width="2px",n.height="1px",t.appendChild(i),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==m){const t="undefined"!=typeof document?document.head:null;m=!(!t||!t.createShadowRoot&&!t.attachShadow)}return m}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}},nYR2:function(t,e,i){"use strict";i.d(e,"a",function(){return r});var n=i("7o/Q"),s=i("quSY");function r(t){return e=>e.lift(new a(t))}class a{constructor(t){this.callback=t}call(t,e){return e.subscribe(new o(t,this.callback))}}class o extends n.a{constructor(t,e){super(t),this.add(new s.a(e))}}},ngJS:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=t=>e=>{for(let i=0,n=t.length;i{class t{constructor(t){this.http=t,this.apiUrl=h.a.apiurl_root+"/odata/",this.uploadUrl=h.a.apiurl_root+"/api/ImageUpload",this.isMetadataLoaded=!1,this.metadataInfo="",this.mockedKnowledgeItem=[],this.mockedExerciseItem=[],this.previewObjList=[],this.bufferedKnowledgeItems=[],this.bufferedExerciseItems=[]}getMetadata(t){if(!this.isMetadataLoaded||t){let t=new n.c;t=t.append("Content-Type","application/xml,application/json").append("Accept","text/html,application/xhtml+xml,application/xml");let e=this.apiUrl+"$metadata";return h.a.mockdata&&(e=h.a.basehref+"assets/mockdata/metadata.xml"),this.http.get(e,{headers:t,responseType:"text"}).pipe(Object(o.a)(t=>(this.isMetadataLoaded=!0,this.metadataInfo=t,this.metadataInfo)),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}return Object(r.a)(this.metadataInfo)}getKnowledgeItems(t=30,e=0,i,a){if(h.a.mockdata&&this.mockedKnowledgeItem.length>0)return Object(r.a)({totalCount:this.mockedKnowledgeItem.length,items:this.mockedKnowledgeItem});let u=new n.c;u=u.append("Content-Type","application/json").append("Accept","application/json");let d=new n.d;d=d.append("$top",t.toString()),d=d.append("$skip",e.toString()),d=d.append("$count","true"),i&&"createdat"===i&&(d=d.append("$orderby","CreatedAt "+a)),d=d.append("$select","ID,Category,Title,CreatedAt,ModifiedAt");let p=this.apiUrl+"KnowledgeItems";return h.a.mockdata&&(p=h.a.basehref+"assets/mockdata/knowledge-items.json",d=new n.d),this.http.get(p,{headers:u,params:d}).pipe(Object(o.a)(t=>{const e=t,i=[];return e.value.forEach(t=>{const e=new c.f;e.parseData(t),i.push(e)}),h.a.mockdata&&(this.mockedKnowledgeItem=i.slice()),{totalCount:e["@odata.count"],items:i}}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}readKnowledgeItem(t,e=!1){if(h.a.mockdata){const e=this.mockedKnowledgeItem.findIndex(e=>e.ID===t);return-1!==e?Object(r.a)(this.mockedKnowledgeItem[e]):Object(r.a)(new c.f)}const i=this.bufferedKnowledgeItems.findIndex(e=>e.ID===t);if(!e&&-1!==i)return Object(r.a)(this.bufferedKnowledgeItems[i]);let a=new n.c;a=a.append("Content-Type","application/json").append("Accept","application/json");let u=new n.d;return u=u.append("$select","ID,Category,Title,Content"),u=u.append("$expand","Tags"),this.http.get(`${this.apiUrl}KnowledgeItems(${t})`,{headers:a,params:u}).pipe(Object(o.a)(t=>{const e=t,n=new c.f;return n.parseData(e),-1===i?this.bufferedKnowledgeItems.push(n):this.bufferedKnowledgeItems[i]=n,n}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}createKnowledgeItem(t){if(h.a.mockdata)return Object(s.a)("Cannot create in mock mode");let e=new n.c;e=e.append("Content-Type","application/json").append("Accept","application/json");const i=t.generateString();return this.http.post(this.apiUrl+"KnowledgeItems",i,{headers:e}).pipe(Object(o.a)(t=>{const e=t,i=new c.f;return i.parseData(e),this.bufferedKnowledgeItems.push(i),i}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}changeKnowledgeItem(t){if(h.a.mockdata)return Object(s.a)("Cannot change in mock mode");let e=new n.c;e=e.append("Content-Type","application/json").append("Accept","application/json");const i=t.generateString(!0);return this.http.put(`${this.apiUrl}KnowledgeItems(${t.ID})`,i,{headers:e}).pipe(Object(o.a)(t=>{const e=t,i=new c.f;i.parseData(e);const n=this.bufferedKnowledgeItems.findIndex(t=>t.ID===i.ID);return-1===n?this.bufferedKnowledgeItems.push(i):this.bufferedKnowledgeItems[n]=i,i}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}getExerciseItems(t=30,e=0,i,a){if(h.a.mockdata&&this.mockedExerciseItem.length>0)return Object(r.a)({totalCount:this.mockedExerciseItem.length,items:this.mockedExerciseItem});let u=new n.c;u=u.append("Content-Type","application/json").append("Accept","application/json");let d=new n.d;d=d.append("$top",t.toString()),d=d.append("$skip",e.toString()),d=d.append("$count","true"),i&&"createdat"===i&&(d=d.append("$orderby","CreatedAt "+a)),d=d.append("$select","ID,KnowledgeItemID,ExerciseType,CreatedAt"),d=d.append("$expand","Tags");let p=this.apiUrl+"ExerciseItems";return h.a.mockdata&&(p=h.a.basehref+"assets/mockdata/exercise-items.json",d=new n.d),this.http.get(p,{headers:u,params:d}).pipe(Object(o.a)(t=>{const e=t,i=[];return e.value.forEach(t=>{const e=new c.d;e.parseData(t),i.push(e)}),h.a.mockdata&&(this.mockedExerciseItem=i.slice()),{totalCount:e["@odata.count"],items:i}}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}createExerciseItem(t){if(h.a.mockdata)return Object(s.a)("Cannot create in mock mode");let e=new n.c;e=e.append("Content-Type","application/json").append("Accept","application/json");const i=t.generateString();return this.http.post(this.apiUrl+"ExerciseItems",i,{headers:e}).pipe(Object(o.a)(t=>{const e=t,i=new c.d;return i.parseData(e),this.bufferedExerciseItems.push(i),i}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}changeExerciseItem(t){if(h.a.mockdata)return Object(s.a)("Cannot change in mock mode");let e=new n.c;e=e.append("Content-Type","application/json").append("Accept","application/json");const i=t.generateString(!0);return this.http.put(`${this.apiUrl}ExerciseItems(${t.ID})`,i,{headers:e}).pipe(Object(o.a)(t=>{const e=t,i=new c.d;i.parseData(e);const n=this.bufferedExerciseItems.findIndex(t=>t.ID===i.ID);return-1===n?this.bufferedExerciseItems.push(i):this.bufferedExerciseItems[n]=i,i}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}readExerciseItem(t,e=!1){if(h.a.mockdata){const e=this.mockedExerciseItem.findIndex(e=>e.ID===t);return-1!==e?Object(r.a)(this.mockedExerciseItem[e]):Object(r.a)(new c.d)}const i=this.bufferedExerciseItems.findIndex(e=>e.ID===t);if(!e&&-1!==i)return Object(r.a)(this.bufferedExerciseItems[i]);let a=new n.c;a=a.append("Content-Type","application/json").append("Accept","application/json");let u=new n.d;return u=u.append("$select","ID,KnowledgeItemID,ExerciseType,Content,CreatedAt,ModifiedAt"),u=u.append("$expand","Tags,Answer"),this.http.get(`${this.apiUrl}ExerciseItems(${t})`,{headers:a,params:u}).pipe(Object(o.a)(t=>{const e=new c.d;return e.parseData(t),-1===i?this.bufferedExerciseItems.push(e):this.bufferedExerciseItems[i]=e,e}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}uploadFiles(t){const e={};return t.forEach(t=>{const i=new FormData;i.append("file",t,t.name);const s=new n.e("POST",this.uploadUrl,i),r=new a.a;this.http.request(s).subscribe(t=>{if(t instanceof n.f){const e=t.body[0];r.next({delete_type:e.delete_type,delete_url:`${h.a.apiurl_root}${e.delete_url}`,name:e.name,progress:1,size:e.size,thumbnail_url:`${h.a.apiurl_root}${e.thumbnail_url}`,type:e.type,url:`${h.a.apiurl_root}${e.url}`}),r.complete()}}),e[t.name]={result:r.asObservable()}}),e}getTagCounts(){let t=new n.c;t=t.append("Content-Type","application/json").append("Accept","application/json");let e=new n.d;e=e.append("$top","100"),e=e.append("$count","true");let i=this.apiUrl+"TagCounts";return h.a.mockdata&&(i=h.a.basehref+"assets/mockdata/tag-counts.json",e=new n.d),this.http.get(i,{headers:t,params:e}).pipe(Object(o.a)(t=>{const e=t,i=[];return e.value.forEach(t=>{const e=new c.p;e.parseData(t),i.push(e)}),{totalCount:e["@odata.count"],items:i}}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}getTags(t,e){let i=new n.c;i=i.append("Content-Type","application/json").append("Accept","application/json");let r=new n.d;r=r.append("$top","100"),r=r.append("$count","true"),r=r.append("$filter",`TagTerm eq '${t}'`);let a=this.apiUrl+"Tags";return h.a.mockdata&&(a=h.a.basehref+"assets/mockdata/tags.json",r=new n.d),this.http.get(a,{headers:i,params:r}).pipe(Object(o.a)(t=>{const e=t,i=[];return e.value.forEach(t=>{const e=new c.o;e.parseData(t),i.push(e)}),{totalCount:e["@odata.count"],items:i}}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}getOverviewInfo(){let t=new n.c;t=t.append("Content-Type","application/json").append("Accept","application/json");let e=this.apiUrl+"OverviewInfos";return h.a.mockdata&&(e=h.a.basehref+"assets/mockdata/overview-infos.json"),this.http.get(e,{headers:t}).pipe(Object(o.a)(t=>{const e=[];return t.value.forEach(t=>{const i=new c.j;i.parseData(t),e.push(i)}),e}),Object(l.a)(t=>Object(s.a)(t.statusText+"; "+t.error+"; "+t.message)))}}return t.\u0275fac=function(e){return new(e||t)(u.Xb(n.a))},t.\u0275prov=u.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),p=(()=>{class t{constructor(){this.currentQuizID=0,this.elderQuizs=[],this.failedItems=[],this.currScore=0}get NextQuizID(){return this.currentQuizID+1}get ActiveQuiz(){return this.curQuiz}get ElderQuizs(){return this.elderQuizs}get FailedQuizItems(){return this.failedItems}set FailedQuizItems(t){this.failedItems=t}get CurrentScore(){return this.currScore}set CurrentScore(t){this.currScore=t}startNewQuiz(t){if(this.curQuiz)throw new Error("Active Quiz not yet completed");return this.curQuiz=new c.k(t),this.currentQuizID=t,this.curQuiz}completeActiveQuiz(){if(!this.curQuiz)throw new Error("Active Quiz not exist");if(this.curQuiz.ActiveSection)throw new Error("Active Quiz has active section");this.elderQuizs.push(this.curQuiz),this.curQuiz=void 0}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=u.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),m=(()=>{class t{canDeactivate(t){return!t.canDeactivate||t.canDeactivate()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=u.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},ofXK:function(t,e,i){"use strict";i.d(e,"a",function(){return v}),i.d(e,"b",function(){return It}),i.d(e,"c",function(){return jt}),i.d(e,"d",function(){return l}),i.d(e,"e",function(){return Tt}),i.d(e,"f",function(){return Rt}),i.d(e,"g",function(){return x}),i.d(e,"h",function(){return u}),i.d(e,"i",function(){return C}),i.d(e,"j",function(){return _}),i.d(e,"k",function(){return dt}),i.d(e,"l",function(){return mt}),i.d(e,"m",function(){return gt}),i.d(e,"n",function(){return Ct}),i.d(e,"o",function(){return vt}),i.d(e,"p",function(){return wt}),i.d(e,"q",function(){return xt}),i.d(e,"r",function(){return kt}),i.d(e,"s",function(){return w}),i.d(e,"t",function(){return c}),i.d(e,"u",function(){return Ft}),i.d(e,"v",function(){return Nt}),i.d(e,"w",function(){return Pt}),i.d(e,"x",function(){return o}),i.d(e,"y",function(){return Lt}),i.d(e,"z",function(){return r}),i.d(e,"A",function(){return ut}),i.d(e,"B",function(){return a});var n=i("fXoL");let s=null;function r(){return s}function a(t){s||(s=t)}class o{}const l=new n.s("DocumentToken");let c=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Jb)({factory:h,token:t,providedIn:"platform"}),t})();function h(){return Object(n.Xb)(d)}const u=new n.s("Location Initialized");let d=(()=>{class t extends c{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,i){p()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){p()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(l))},t.\u0275prov=Object(n.Jb)({factory:m,token:t,providedIn:"platform"}),t})();function p(){return!!window.history.pushState}function m(){return new d(Object(n.Xb)(l))}function f(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let _=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Jb)({factory:y,token:t,providedIn:"root"}),t})();function y(t){const e=Object(n.Xb)(l).location;return new w(Object(n.Xb)(c),e&&e.origin||"")}const v=new n.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 f(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){const s=this.prepareExternalUrl(i+b(n));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(c),n.Xb(v,8))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),x=(()=>{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=f(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,i,n){let s=this.prepareExternalUrl(i+b(n));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)(n.Xb(c),n.Xb(v,8))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t{constructor(t,e){this._subject=new n.o,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(S(i)),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,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),i)}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(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(_),n.Xb(c))},t.normalizeQueryParams=b,t.joinWithSlash=f,t.stripTrailingSlash=g,t.\u0275prov=Object(n.Jb)({factory:k,token:t,providedIn:"root"}),t})();function k(){return new C(Object(n.Xb)(_),Object(n.Xb)(c))}function S(t){return t.replace(/\/index.html$/,"")}var O=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),E=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),A=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),D=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 R(t,e){return M(Object(n.mb)(t)[n.db.DateFormat],e)}function j(t,e){return M(Object(n.mb)(t)[n.db.TimeFormat],e)}function L(t,e){return M(Object(n.mb)(t)[n.db.DateTimeFormat],e)}function N(t,e){const i=Object(n.mb)(t),s=i[n.db.NumberSymbols][e];if(void 0===s){if(e===T.CurrencyDecimal)return i[n.db.NumberSymbols][T.Decimal];if(e===T.CurrencyGroup)return i[n.db.NumberSymbols][T.Group]}return s}const P=n.pb;function F(t){if(!t[n.db.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[n.db.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function M(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function V(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,B={},H=/((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|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 U=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),X=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 $(t,e,i,n){let s=function(t){if(st(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,i,n]=t.split("-").map(t=>+t);return new Date(e,i-1,n)}let i;if(i=t.match(z))return function(t){const e=new Date(0);let i=0,n=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),n=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const a=Number(t[4]||0)-i,o=Number(t[5]||0)-n,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,a,o,l,c),e}(i)}const e=new Date(t);if(!st(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=W(i,e)||e;let r,a=[];for(;e;){if(r=H.exec(e),!r){a.push(e);break}{a=a.concat(r.slice(1));const t=a.pop();if(!t)break;e=t}}let o=s.getTimezoneOffset();n&&(o=nt(n,o),s=function(t,e,i){const n=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(nt(e,n)-n))}(s,n));let l="";return a.forEach(t=>{const e=function(t){if(it[t])return it[t];let e;switch(t){case"G":case"GG":case"GGG":e=Q(q.Eras,D.Abbreviated);break;case"GGGG":e=Q(q.Eras,D.Wide);break;case"GGGGG":e=Q(q.Eras,D.Narrow);break;case"y":e=Y(X.FullYear,1,0,!1,!0);break;case"yy":e=Y(X.FullYear,2,0,!0,!0);break;case"yyy":e=Y(X.FullYear,3,0,!1,!0);break;case"yyyy":e=Y(X.FullYear,4,0,!1,!0);break;case"Y":e=et(1);break;case"YY":e=et(2,!0);break;case"YYY":e=et(3);break;case"YYYY":e=et(4);break;case"M":case"L":e=Y(X.Month,1,1);break;case"MM":case"LL":e=Y(X.Month,2,1);break;case"MMM":e=Q(q.Months,D.Abbreviated);break;case"MMMM":e=Q(q.Months,D.Wide);break;case"MMMMM":e=Q(q.Months,D.Narrow);break;case"LLL":e=Q(q.Months,D.Abbreviated,A.Standalone);break;case"LLLL":e=Q(q.Months,D.Wide,A.Standalone);break;case"LLLLL":e=Q(q.Months,D.Narrow,A.Standalone);break;case"w":e=tt(1);break;case"ww":e=tt(2);break;case"W":e=tt(1,!0);break;case"d":e=Y(X.Date,1);break;case"dd":e=Y(X.Date,2);break;case"E":case"EE":case"EEE":e=Q(q.Days,D.Abbreviated);break;case"EEEE":e=Q(q.Days,D.Wide);break;case"EEEEE":e=Q(q.Days,D.Narrow);break;case"EEEEEE":e=Q(q.Days,D.Short);break;case"a":case"aa":case"aaa":e=Q(q.DayPeriods,D.Abbreviated);break;case"aaaa":e=Q(q.DayPeriods,D.Wide);break;case"aaaaa":e=Q(q.DayPeriods,D.Narrow);break;case"b":case"bb":case"bbb":e=Q(q.DayPeriods,D.Abbreviated,A.Standalone,!0);break;case"bbbb":e=Q(q.DayPeriods,D.Wide,A.Standalone,!0);break;case"bbbbb":e=Q(q.DayPeriods,D.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":e=Q(q.DayPeriods,D.Abbreviated,A.Format,!0);break;case"BBBB":e=Q(q.DayPeriods,D.Wide,A.Format,!0);break;case"BBBBB":e=Q(q.DayPeriods,D.Narrow,A.Format,!0);break;case"h":e=Y(X.Hours,1,-12);break;case"hh":e=Y(X.Hours,2,-12);break;case"H":e=Y(X.Hours,1);break;case"HH":e=Y(X.Hours,2);break;case"m":e=Y(X.Minutes,1);break;case"mm":e=Y(X.Minutes,2);break;case"s":e=Y(X.Seconds,1);break;case"ss":e=Y(X.Seconds,2);break;case"S":e=Y(X.FractionalSeconds,1);break;case"SS":e=Y(X.FractionalSeconds,2);break;case"SSS":e=Y(X.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Z(U.Short);break;case"ZZZZZ":e=Z(U.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Z(U.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Z(U.Long);break;default:return null}return it[t]=e,e}(t);l+=e?e(s,i,o):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function W(t,e){const i=function(t){return Object(n.mb)(t)[n.db.LocaleId]}(t);if(B[i]=B[i]||{},B[i][e])return B[i][e];let s="";switch(e){case"shortDate":s=R(t,I.Short);break;case"mediumDate":s=R(t,I.Medium);break;case"longDate":s=R(t,I.Long);break;case"fullDate":s=R(t,I.Full);break;case"shortTime":s=j(t,I.Short);break;case"mediumTime":s=j(t,I.Medium);break;case"longTime":s=j(t,I.Long);break;case"fullTime":s=j(t,I.Full);break;case"short":const e=W(t,"shortTime"),i=W(t,"shortDate");s=K(L(t,I.Short),[e,i]);break;case"medium":const n=W(t,"mediumTime"),r=W(t,"mediumDate");s=K(L(t,I.Medium),[n,r]);break;case"long":const a=W(t,"longTime"),o=W(t,"longDate");s=K(L(t,I.Long),[a,o]);break;case"full":const l=W(t,"fullTime"),c=W(t,"fullDate");s=K(L(t,I.Full),[l,c])}return s&&(B[i][e]=s),s}function K(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,i){return null!=e&&i in e?e[i]:t})),t}function G(t,e,i="-",n,s){let r="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,r=i));let a=String(t);for(;a.length0||o>-i)&&(o+=i),t===X.Hours)0===o&&-12===i&&(o=12);else if(t===X.FractionalSeconds)return l=e,G(o,3).substr(0,l);var l;const c=N(a,T.MinusSign);return G(o,e,c,n,s)}}function Q(t,e,i=A.Format,s=!1){return function(r,a){return function(t,e,i,s,r,a){switch(i){case q.Months:return function(t,e,i){const s=Object(n.mb)(t),r=M([s[n.db.MonthsFormat],s[n.db.MonthsStandalone]],e);return M(r,i)}(e,r,s)[t.getMonth()];case q.Days:return function(t,e,i){const s=Object(n.mb)(t),r=M([s[n.db.DaysFormat],s[n.db.DaysStandalone]],e);return M(r,i)}(e,r,s)[t.getDay()];case q.DayPeriods:const o=t.getHours(),l=t.getMinutes();if(a){const t=function(t){const e=Object(n.mb)(t);return F(e),(e[n.db.ExtraData][2]||[]).map(t=>"string"==typeof t?V(t):[V(t[0]),V(t[1])])}(e),i=function(t,e,i){const s=Object(n.mb)(t);F(s);const r=M([s[n.db.ExtraData][0],s[n.db.ExtraData][1]],e)||[];return M(r,i)||[]}(e,r,s),a=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,n=o>=e.hours&&l>=e.minutes,s=o0?Math.floor(s/60):Math.ceil(s/60);switch(t){case U.Short:return(s>=0?"+":"")+G(a,2,r)+G(Math.abs(s%60),2,r);case U.ShortGMT:return"GMT"+(s>=0?"+":"")+G(a,1,r);case U.Long:return"GMT"+(s>=0?"+":"")+G(a,2,r)+":"+G(Math.abs(s%60),2,r);case U.Extended:return 0===n?"Z":(s>=0?"+":"")+G(a,2,r)+":"+G(Math.abs(s%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function J(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function tt(t,e=!1){return function(i,n){let s;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();s=1+Math.floor((e+t)/7)}else{const t=J(i),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),n=t.getTime()-e.getTime();s=1+Math.round(n/6048e5)}return G(s,t,N(n,T.MinusSign))}}function et(t,e=!1){return function(i,n){return G(J(i).getFullYear(),t,N(n,T.MinusSign),e)}}const it={};function nt(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function st(t){return t instanceof Date&&!isNaN(t.valueOf())}const rt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,at=".",ot="0";function lt(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class ct{}let ht=(()=>{class t extends ct{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(P(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(n.w))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();function ut(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[n,s]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(n.trim()===e)return decodeURIComponent(s)}return null}let dt=(()=>{class t{constructor(t,e,i,n){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=n,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(n.sb)(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(n.xb)(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)(n.Nb(n.u),n.Nb(n.v),n.Nb(n.l),n.Nb(n.G))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class pt{constructor(t,e,i,n){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=n}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 mt=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,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,i,n)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new pt(null,this._ngForOf,-1,-1),null===n?void 0:n),s=new ft(t,i);e.push(s)}else if(null==n)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const s=this._viewContainer.get(i);this._viewContainer.move(s,n);const r=new ft(t,s);e.push(r)}});for(let i=0;i{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)(n.Nb(n.R),n.Nb(n.N),n.Nb(n.u))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class ft{constructor(t,e){this.record=t,this.view=e}}let gt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new bt,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){_t("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){_t("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)(n.Nb(n.R),n.Nb(n.N))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class bt{constructor(){this.$implicit=null,this.ngIf=null}}function _t(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(n.xb)(e)}'.`)}class yt{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 vt=(()=>{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,i){this.ngSwitch=i,i._addCase(),this._view=new yt(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.R),n.Nb(n.N),n.Nb(vt,1))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})(),xt=(()=>{class t{constructor(t,e,i){i._addDefault(new yt(t,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.R),n.Nb(n.N),n.Nb(vt,1))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngSwitchDefault",""]]}),t})(),Ct=(()=>{class t{constructor(t,e,i){this._ngEl=t,this._differs=e,this._renderer=i,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[i,n]=t.split(".");null!=(e=null!=e&&n?`${e}${n}`:e)?this._renderer.setStyle(this._ngEl.nativeElement,i,e):this._renderer.removeStyle(this._ngEl.nativeElement,i)}_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)(n.Nb(n.l),n.Nb(n.v),n.Nb(n.G))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),t})(),kt=(()=>{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||{}),i=Object.keys(t.currentValue||{});if(e.length===i.length){for(let t of i)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)(n.Nb(n.R))},t.\u0275dir=n.Ib({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[n.Ab]}),t})();function St(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(n.xb)(t)}'`)}class Ot{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class Et{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const At=new Et,Dt=new Ot;let It=(()=>{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(n.ub)(e))return At;if(Object(n.tb)(e))return Dt;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)(n.Zb())},t.\u0275pipe=n.Mb({name:"async",type:t,pure:!1}),t})(),Tt=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",n,s){if(null==e||""===e||e!=e)return null;try{return $(e,i,s||this.locale,n)}catch(r){throw St(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.w))},t.\u0275pipe=n.Mb({name:"date",type:t,pure:!0}),t})(),Rt=(()=>{class t{constructor(t){this._locale=t}transform(e,i,s){if(!function(t){return!(null==t||""===t||t!=t)}(e))return null;s=s||this._locale;try{return function(t,e,i){return function(t,e,i,n,s,r,a=!1){let o="",l=!1;if(isFinite(t)){let c=function(t){let e,i,n,s,r,a=Math.abs(t)+"",o=0;for((i=a.indexOf(at))>-1&&(a=a.replace(at,"")),(n=a.search(/e/i))>0?(i<0&&(i=n),i+=+a.slice(n+1),a=a.substring(0,n)):i<0&&(i=a.length),n=0;a.charAt(n)===ot;n++);if(n===(r=a.length))e=[0],i=1;else{for(r--;a.charAt(r)===ot;)r--;for(i-=n,e=[],s=0;n<=r;n++,s++)e[s]=Number(a.charAt(n))}return i>22&&(e=e.splice(0,21),o=i-1,i=1),{digits:e,exponent:o,integerLen:i}}(t);a&&(c=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}(c));let h=e.minInt,u=e.minFrac,d=e.maxFrac;if(r){const t=r.match(rt);if(null===t)throw new Error(r+" is not a valid digit info");const e=t[1],i=t[3],n=t[5];null!=e&&(h=lt(e)),null!=i&&(u=lt(i)),null!=n?d=lt(n):null!=i&&u>d&&(d=u)}!function(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let n=t.digits,s=n.length-t.integerLen;const r=Math.min(Math.max(e,s),i);let a=r+t.integerLen,o=n[a];if(a>0){n.splice(Math.max(t.integerLen,a));for(let t=a;t=5)if(a-1<0){for(let e=0;e>a;e--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[a-1]++;for(;s=c?n.pop():l=!1),e>=10?1:0},0);h&&(n.unshift(h),t.integerLen++)}(c,u,d);let p=c.digits,m=c.integerLen;const f=c.exponent;let g=[];for(l=p.every(t=>!t);m0?g=p.splice(m,p.length):(g=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("")),o=b.join(N(i,n)),g.length&&(o+=N(i,s)+g.join("")),f&&(o+=N(i,T.Exponential)+"+"+f)}else o=N(i,T.Infinity);return o=t<0&&!l?e.negPre+o+e.negSuf:e.posPre+o+e.posSuf,o}(t,function(t,e="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(";"),s=n[0],r=n[1],a=-1!==s.indexOf(at)?s.split(at):[s.substring(0,s.lastIndexOf(ot)+1),s.substring(s.lastIndexOf(ot)+1)],o=a[0],l=a[1]||"";i.posPre=o.substr(0,o.indexOf("#"));for(let h=0;h{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[{provide:ct,useClass:ht}]}),t})();const Lt="browser";function Nt(t){return t===Lt}function Pt(t){return"server"===t}let Ft=(()=>{class t{}return t.\u0275prov=Object(n.Jb)({token:t,providedIn:"root",factory:()=>new Mt(Object(n.Xb)(l),window,Object(n.Xb)(n.n))}),t})();class Mt{constructor(t,e,i){this.document=t,this.window=e,this.errorHandler=i,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,n=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],n-s[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=Vt(this.window.history)||Vt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(t){return!1}}}function Vt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},pD6V:function(t,e,i){"use strict";i.d(e,"c",function(){return p}),i.d(e,"d",function(){return g}),i.d(e,"e",function(){return b}),i.d(e,"g",function(){return _}),i.d(e,"a",function(){return y}),i.d(e,"b",function(){return k}),i.d(e,"i",function(){return W}),i.d(e,"h",function(){return K}),i.d(e,"j",function(){return G}),i.d(e,"f",function(){return Q});var n=i("fXoL"),s=i("ofXK"),r=i("XNiG"),a=i("2Vo4"),o=i("HDdC"),l=i("VRyK"),c=(i("7Hc7"),i("LRne"),i("xgIS"),i("pLZG")),h=(i("lJxs"),i("Kj3r"),i("eIep"),i("1G5W"),i("IzEk"),i("vkgz"));const u={provide:n.b,useFactory:function(t,e){return()=>{if(Object(s.v)(e)){const e=Array.from(t.querySelectorAll(`[class*=${d}]`)),i=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(d+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(i,"")})}}},deps:[s.d,n.D],multi:!0},d="flex-layout-";let p=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[u]}),t})();class m{constructor(t=!1,e="all",i="",n="",s=0){this.matches=t,this.mediaQuery=e,this.mqAlias=i,this.suffix=n,this.priority=s,this.property=""}clone(){return new m(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let f=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,i){const n=this.stylesheet.get(t);n?n.set(e,i):this.stylesheet.set(t,new Map([[e,i]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const i=this.stylesheet.get(t);let n="";if(i){const t=i.get(e);"number"!=typeof t&&"string"!=typeof t||(n=t+"")}return n}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(n.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const g={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},b=new n.s("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>g}),_=new n.s("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),y=new n.s("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function v(t,e){return t=t?t.clone():new m,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const w="inline",x=["row","column","row-reverse","column-reverse"];function C(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let k=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.styleBuilder=e,this.styler=i,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new r.a,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const i=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,i)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const i=this.styleBuilder,n=i.shouldCache;let s=this.styleCache.get(t);s&&n||(s=i.buildStyles(t,e),n&&this.styleCache.set(t,s)),this.mru=Object.assign({},s),this.applyStyleToElement(s),i.sideEffect(t,s,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[i,n]=this.styler.getFlowDirection(t);if(!n&&e){const e=function(t){let[e,i,n]=function(t){t=t?t.toLowerCase():"";let[e,i,n]=t.split(" ");return x.find(t=>t===e)||(e=x[0]),i===w&&(i=n!==w?n:"",n=w),[e,C(i),!!n]}(t);return function(t,e=null,i=!1){return{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,i,n)}(i);this.styler.applyStyleToElements(e,[t])}return i.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,i=this.nativeElement){this.styler.applyStyleToElement(i,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){n.ac()},t.\u0275dir=n.Ib({type:t,features:[n.Ab]}),t})();const S=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],O="(orientation: portrait) and (max-width: 599.98px)",E="(orientation: landscape) and (max-width: 959.98px)",A="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",D="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",I="(orientation: portrait) and (min-width: 840px)",T="(orientation: landscape) and (min-width: 1280px)",R={HANDSET:`${O}, ${E}`,TABLET:`${A} , ${D}`,WEB:`${I}, ${T} `,HANDSET_PORTRAIT:""+O,TABLET_PORTRAIT:A+" ",WEB_PORTRAIT:""+I,HANDSET_LANDSCAPE:""+E,TABLET_LANDSCAPE:""+D,WEB_LANDSCAPE:""+T},j=[{alias:"handset",priority:2e3,mediaQuery:R.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:R.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:R.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:R.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:R.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:R.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:R.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:R.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:R.WEB_PORTRAIT,overlapping:!0}],L=/(\.|-|_)/g;function N(t){let e=t.length>0?t.charAt(0):"",i=t.length>1?t.slice(1):"";return e.toUpperCase()+i}const P=new n.s("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Object(n.X)(y),e=Object(n.X)(b),i=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const i={};return t.forEach(t=>{i[t.alias]=t}),e.forEach(t=>{i[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let i of e)if(null!=i)for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e])}(i[t.alias],t):i[t.alias]=t}),(n=Object.keys(i).map(t=>i[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(L,"|").split("|").map(N).join(""),t.overlapping=!!t.overlapping)}),n;var n}((e.disableDefaultBps?[]:S).concat(e.addOrientationBps?j:[]),i)}});function F(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function M(t,e){return(t.priority||0)-(e.priority||0)}let V=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(M)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let i=this.findByMap.get(t);return i||(i=this.items.find(e)||null,this.findByMap.set(t,i)),i||null}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(P))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(P))},token:t,providedIn:"root"}),t})(),z=(()=>{class t{constructor(t,e,i){this._zone=t,this._platformId=e,this._document=i,this.source=new a.a(new m(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,i)=>{e.matches&&t.push(i)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const i=this._observable$.pipe(Object(c.a)(i=>!e||t.indexOf(i.mediaQuery)>-1)),n=new o.a(e=>{const i=this.registerQuery(t);if(i.length){const t=i.pop();i.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()});return Object(l.a)(n,i)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],i=[];return function(t,e){const i=t.filter(t=>!B[t]);if(i.length>0){const t=i.join(", ");try{const n=e.createElement("style");n.setAttribute("type","text/css"),n.styleSheet||n.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(n),i.forEach(t=>B[t]=n)}catch(n){console.error(n)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new m(e.matches,t)))};let n=this.registry.get(t);n||(n=this.buildMQL(t),n.addListener(e),this.pendingRemoveListenerFns.push(()=>n.removeListener(e)),this.registry.set(t,n)),n.matches&&i.push(new m(!0,t))}),i}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Object(s.v)(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(n.B),n.Xb(n.D),n.Xb(s.d))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(n.B),Object(n.Xb)(n.D),Object(n.Xb)(s.d))},token:t,providedIn:"root"}),t})();const B={},H="print",U={alias:H,mediaQuery:H,priority:1e3};let X=(()=>{class t{constructor(t,e,i){this.breakpoints=t,this.layoutConfig=e,this._document=i,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new q,this.deactivations=[]}withPrintQuery(t){return[...t,H]}isPrintEvent(t){return t.mediaQuery.startsWith(H)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(F)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),v(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new m(!0,H))),t.updateStyles())},i=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",i),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(i)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(F))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(V),n.Xb(b),n.Xb(s.d))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(V),Object(n.Xb)(b),Object(n.Xb)(s.d))},token:t,providedIn:"root"}),t})();class q{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(U),t.sort(F),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(H)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function $(t){for(let e in t){let i=t[e]||"";switch(e){case"display":t.display="flex"===i?["-webkit-flex","flex"]:"inline-flex"===i?["-webkit-inline-flex","inline-flex"]:i;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=i;break;case"flex-direction":i=i||"row",t["-webkit-flex-direction"]=i,t["flex-direction"]=i;break;case"order":t.order=t["-webkit-"+e]=isNaN(+i)?"0":i}}return t}let W=(()=>{class t{constructor(t,e,i,n){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=i,this.layoutConfig=n}applyStyleToElement(t,e,i=null){let n={};"string"==typeof e&&(n[e]=i,e=n),n=this.layoutConfig.disableVendorPrefixes?e:$(e),this._applyMultiValueStyleToElement(n,t)}applyStyleToElements(t,e=[]){const i=this.layoutConfig.disableVendorPrefixes?t:$(t);e.forEach(t=>{this._applyMultiValueStyleToElement(i,t)})}getFlowDirection(t){const e="flex-direction";let i=this.lookupStyle(t,e);return[i||"row",this.lookupInlineStyle(t,e)||Object(s.w)(this._platformId)&&this._serverModuleLoaded?i:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Object(s.v)(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,i=!1){let n="";return t&&((n=this.lookupInlineStyle(t,e))||(Object(s.v)(this._platformId)?i||(n=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(t,e)))),n?n.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(i=>{const n=t[i],r=Array.isArray(n)?n:[n];r.sort();for(let t of r)t=t?t+"":"",Object(s.v)(this._platformId)||!this._serverModuleLoaded?Object(s.v)(this._platformId)?e.style.setProperty(i,t):this._setServerStyle(e,i,t):this._serverStylesheet.addStyleToElement(e,i,t)})}_setServerStyle(t,e,i){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const n=this._readStyleAttribute(t);n[e]=i||"",this._writeStyleAttribute(t,n)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},i=t.getAttribute("style");if(i){const t=i.split(/;+/g);for(let i=0;i0){const t=n.indexOf(":");if(-1===t)throw new Error("Invalid CSS style: "+n);e[n.substr(0,t).trim()]=n.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let i="";for(const n in e)e[n]&&(i+=n+":"+e[n]+";");t.setAttribute("style",i)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(f),n.Xb(_),n.Xb(n.D),n.Xb(b))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(f),Object(n.Xb)(_),Object(n.Xb)(n.D),Object(n.Xb)(b))},token:t,providedIn:"root"}),t})();class K{constructor(){this.shouldCache=!0}sideEffect(t,e,i){}}function G(t,e="1",i="1"){let n=[e,i,t],s=t.indexOf("calc");if(s>0){n[2]=Y(t.substring(s).trim());let e=t.substr(0,s).trim().split(" ");2==e.length&&(n[0]=e[0],n[1]=e[1])}else if(0==s)n[2]=Y(t.trim());else{let s=t.split(" ");n=3===s.length?s:[e,i,t]}return n}function Y(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}let Q=(()=>{class t{constructor(t,e,i){this.matchMedia=t,this.breakpoints=e,this.hook=i,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new r.a,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=v(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(F),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(F),this.updateStyles()))}init(t,e,i,n,s=[]){Z(this.updateMap,t,e,i),Z(this.clearMap,t,e,n),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,s)}getValue(t,e,i){const n=this.elementMap.get(t);if(n){const t=void 0!==i?n.get(i):this.getActivatedValues(n,e);if(t)return t.get(e)}}hasValue(t,e){const i=this.elementMap.get(t);if(i){const t=this.getActivatedValues(i,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,i,n){let s=this.elementMap.get(t);if(s){const r=(s.get(n)||new Map).set(e,i);s.set(n,r),this.elementMap.set(t,s)}else s=(new Map).set(n,(new Map).set(e,i)),this.elementMap.set(t,s);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(Object(c.a)(i=>i.element===t&&i.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const i=new Set(this.elementKeyMap.get(e));let n=this.getActivatedValues(t);n&&n.forEach((t,n)=>{this.updateElement(e,n,t),i.delete(n)}),i.forEach(i=>{if(n=this.getActivatedValues(t,i),n){const t=n.get(i);this.updateElement(e,i,t)}else this.clearElement(e,i)})})}clearElement(t,e){const i=this.clearMap.get(t);if(i){const n=i.get(e);n&&(n(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,i){const n=this.updateMap.get(t);if(n){const s=n.get(e);s&&(s(i),this.subject.next({element:t,key:e,value:i}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const i=this.elementMap.get(t);i&&(i.forEach((t,e)=>i.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const i=this.elementMap.get(t);if(i){const n=this.getActivatedValues(i,e);n&&(e?this.updateElement(t,e,n.get(e)):n.forEach((e,i)=>this.updateElement(t,i,e)))}}buildElementKeyMap(t,e){let i=this.elementKeyMap.get(t);i||(i=new Set,this.elementKeyMap.set(t,i)),i.add(e)}watchExtraTriggers(t,e,i){if(i&&i.length){let n=this.watcherMap.get(t);if(n||(n=new Map,this.watcherMap.set(t,n)),!n.get(e)){const s=Object(l.a)(...i).subscribe(()=>{const i=this.getValue(t,e);this.updateElement(t,e,i)});n.set(e,s)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let n=0;nt.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(Object(h.a)(this.hook.interceptEvents(this)),Object(c.a)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(z),n.Xb(V),n.Xb(X))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(z),Object(n.Xb)(V),Object(n.Xb)(X))},token:t,providedIn:"root"}),t})();function Z(t,e,i,n){if(void 0!==n){let s=t.get(e);s||(s=new Map,t.set(e,s)),s.set(i,n)}}},pLZG:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("7o/Q");function s(t,e){return function(i){return i.lift(new r(t,e))}}class r{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))}}class a extends n.a{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}},qFsG:function(t,e,i){"use strict";i.d(e,"a",function(){return m}),i.d(e,"b",function(){return y}),i.d(e,"c",function(){return v});var n=i("nLfN"),s=i("fXoL"),r=i("8LU1"),a=i("EY2u"),o=i("XNiG");i("xgIS"),i("3UWI"),i("1G5W"),i("ofXK");const l=Object(n.f)({passive:!0});let c=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return a.a;const e=Object(r.e)(t),i=this._monitoredElements.get(e);if(i)return i.subject;const n=new o.a,s="cdk-text-field-autofilled",c=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(()=>n.next({target:t.target,isAutofilled:!1}))):(e.classList.add(s),this._ngZone.run(()=>n.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",c,l),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:n,unlisten:()=>{e.removeEventListener("animationstart",c,l)}}),n}stopMonitoring(t){const e=Object(r.e)(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.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.Xb(n.a),s.Xb(s.B))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(n.a),Object(s.Xb)(s.B))},token:t,providedIn:"root"}),t})(),h=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},imports:[[n.b]]}),t})();var u=i("FKr1"),d=i("kmnG"),p=i("3Pt+");const m=new s.s("MAT_INPUT_VALUE_ACCESSOR"),f=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let g=0;class b{constructor(t,e,i,n){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=n}}const _=Object(u.z)(b);let y=(()=>{class t extends _{constructor(t,e,i,s,r,a,l,c,h,u){super(a,s,r,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=c,this._formField=u,this._uid="mat-input-"+g++,this.focused=!1,this.stateChanges=new o.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(n.e)().has(t));const d=this._elementRef.nativeElement,p=d.nodeName.toLowerCase();this._inputValueAccessor=l||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(n.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 i=(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(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){f.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.Nb(s.l),s.Nb(n.a),s.Nb(p.l,10),s.Nb(p.o,8),s.Nb(p.g,8),s.Nb(u.d),s.Nb(m,10),s.Nb(c),s.Nb(s.B),s.Nb(d.a,8))},t.\u0275dir=s.Ib({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.bc("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(s.Wb("disabled",e.disabled)("required",e.required),s.Db("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),s.Fb("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.Bb([{provide:d.d,useExisting:t}]),s.zb,s.Ab]}),t})(),v=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[u.d],imports:[[h,d.e,u.i],h,d.e]}),t})()},quSY:function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i("DH7j"),s=i("XoHu"),r=i("n6bG");const a=(()=>{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 o=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_ctorUnsubscribe:o,_unsubscribe:c,_subscriptions:h}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof a?e.errors:e),[])}},rCpU:function(t,e,i){"use strict";var n,s,r;i.d(e,"a",function(){return a}),i.d(e,"b",function(){return l.a}),i.d(e,"c",function(){return o}),i.d(e,"e",function(){return c}),i.d(e,"d",function(){return h}),function(t){t[t.Link=0]="Link",t[t.Thread=1]="Thread"}(n||(n={}));class a{constructor(t,e){if(t<=0||e<=0)throw new Error("Row count and Column count must be positive!");this._maxrow=t,this._maxcol=e,this._inited=!1,this._cells=[]}get RowCount(){return this._maxrow}get ColumnCount(){return this._maxcol}get isInited(){return this._inited}init(){if(this._inited)throw new Error("already inited");this._cells=[];for(let t=0;t=0&&t.row=0&&t.columnt.row-e.row),i.length>0&&t.push(i)}return t}getBackSlashOutputPos(){if(this._maxrow!==this._maxcol||this._maxrow<=1)throw new Error("Wrong parameter");const t=[];for(let e=0;e<=this._maxrow-1;e++){const i=[];for(let t=0;t<=e;t++)i.push({row:e-t,column:this._maxrow-1-t});i.length>0&&(i.sort((t,e)=>t.row-e.row),t.push(i))}for(let e=1;e<=this._maxrow-1;e++){const i=[];for(let t=0;t<=this._maxrow-1-e;t++)i.push({row:e+t,column:t});i.length>0&&(i.sort((t,e)=>t.row-e.row),t.push(i))}return t}}!function(t){t[t.Add=0]="Add",t[t.Sub=1]="Sub",t[t.Multi=2]="Multi",t[t.Div=3]="Div"}(s||(s={})),function(t){t[t.Add=0]="Add",t[t.Sub=1]="Sub",t[t.Multi=2]="Multi",t[t.Div=3]="Div",t[t.Equal=4]="Equal",t[t.LessThan=5]="LessThan",t[t.GreatThean=6]="GreatThean",t[t.LessEqual=7]="LessEqual",t[t.GreatEqual=8]="GreatEqual",t[t.OpenParenthesis=9]="OpenParenthesis",t[t.CloseParenthesis=10]="CloseParenthesis",t[t.Variable=11]="Variable",t[t.Digit=12]="Digit",t[t.PI=21]="PI"}(r||(r={}));var o,l=i("e1Vu");function c(t,e){const i=e.clientX,n=e.clientY,s=t.getBoundingClientRect();return{x:t.width/s.width*(i-s.left),y:t.height/s.height*(n-s.top)}}function h(t,e,i){return{row:Math.floor(t.y/i),column:Math.floor(t.x/e)}}!function(t){t[t.ListView=0]="ListView",t[t.Create=1]="Create",t[t.Update=2]="Update",t[t.Display=3]="Display",t[t.Invalid=9]="Invalid"}(o||(o={}))},rDax:function(t,e,i){"use strict";i.d(e,"a",function(){return G}),i.d(e,"b",function(){return K}),i.d(e,"c",function(){return q}),i.d(e,"d",function(){return O}),i.d(e,"e",function(){return j}),i.d(e,"f",function(){return Q});var n=i("vxfF"),s=i("fXoL"),r=i("nLfN"),a=i("cH1L"),o=i("ofXK"),l=i("8LU1"),c=i("+rOU"),h=i("XNiG"),u=i("quSY"),d=i("VRyK"),p=i("IzEk"),m=i("1G5W"),f=i("7o/Q");class g{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 f.a{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(n){return void e.error(n)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}var _=i("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(l.d)(-this._previousScrollPosition.left),t.style.top=Object(l.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,i=this._document.body.style,n=e.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=n,i.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,i,n){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=n,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 x(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function C(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class k{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=n,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:i}=this._viewportRuler.getViewportSize();x(t,[{width:e,height:i,bottom:i,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 S=(()=>{class t{constructor(t,e,i,n){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,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 k(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=n}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.c),s.Xb(n.e),s.Xb(s.B),s.Xb(o.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(n.c),Object(s.Xb)(n.e),Object(s.Xb)(s.B),Object(s.Xb)(o.d))},token:t,providedIn:"root"}),t})();class O{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 i of e)void 0!==t[i]&&(this[i]=t[i])}}}class E{constructor(t,e,i,n,s){this.offsetX=i,this.offsetY=n,this.panelClass=s,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class A{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let D=(()=>{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.Xb(o.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(o.d))},token:t,providedIn:"root"}),t})(),I=(()=>{class t extends D{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._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.Xb(o.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(o.d))},token:t,providedIn:"root"}),t})(),T=(()=>{class t extends D{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let n=i.length-1;n>-1;n--){const s=i[n];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.Xb(o.d),s.Xb(r.a))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(o.d),Object(s.Xb)(r.a))},token:t,providedIn:"root"}),t})();const R=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let j=(()=>{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="cdk-overlay-container";if(this._platform.isBrowser||R){const e=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let t=0;tthis._backdropClick.next(t),this._keydownEvents=new h.a,this._outsidePointerEvents=new h.a,n.scrollStrategy&&(this._scrollStrategy=n.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=n.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._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),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.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(l.d)(this._config.width),t.height=Object(l.d)(this._config.height),t.minWidth=Object(l.d)(this._config.minWidth),t.minHeight=Object(l.d)(this._config.minHeight),t.maxWidth=Object(l.d)(this._config.maxWidth),t.maxHeight=Object(l.d)(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),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",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const n=t.classList;Object(l.b)(e).forEach(t=>{t&&(i?n.add(t):n.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Object(m.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 N="cdk-overlay-connected-position-bounding-box",P=/([A-Za-z%]+)$/;class F{constructor(t,e,i,n,s){this._viewportRuler=e,this._document=i,this._platform=n,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(N),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,i=this._viewportRect,n=[];let s;for(let r of this._preferredPositions){let a=this._getOriginPoint(t,r),o=this._getOverlayPoint(a,e,r),l=this._getOverlayFit(o,e,i,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,a);this._canFitWithFlexibleDimensions(l,o,i)?n.push({position:r,origin:a,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(a,r)}):(!s||s.overlayFit.visibleAreae&&(e=n,t=i)}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&&M(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),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 i,n;if("center"==e.originX)i=t.left+t.width/2;else{const n=this._isRtl()?t.right:t.left,s=this._isRtl()?t.left:t.right;i="start"==e.originX?n:s}return n="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:n}}_getOverlayPoint(t,e,i){let n,s;return n="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,s="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+n,y:t.y+s}}_getOverlayFit(t,e,i,n){let{x:s,y:r}=t,a=this._getOffset(n,"x"),o=this._getOffset(n,"y");a&&(s+=a),o&&(r+=o);let l=0-r,c=r+e.height-i.height,h=this._subtractOverflows(e.width,0-s,s+e.width-i.width),u=this._subtractOverflows(e.height,l,c),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const n=i.bottom-e.y,s=i.right-e.x,r=V(this._overlayRef.getConfig().minHeight),a=V(this._overlayRef.getConfig().minWidth),o=t.fitsInViewportHorizontally||null!=a&&a<=s;return(t.fitsInViewportVertically||null!=r&&r<=n)&&o}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const n=this._viewportRect,s=Math.max(t.x+e.width-n.width,0),r=Math.max(t.y+e.height-n.height,0),a=Math.max(n.top-i.top-t.y,0),o=Math.max(n.left-i.left-t.x,0);let l=0,c=0;return l=e.width<=n.width?o||-s:t.xn&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-n/2)}if("end"===e.overlayX&&!n||"start"===e.overlayX&&n)c=i.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!n||"end"===e.overlayX&&n)l=t.x,o=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),n=this._lastBoundingBoxSize.width;o=2*e,l=t.x-e,o>n&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-n/2)}return{top:r,left:l,bottom:a,right:c,width:o,height:s}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const n={};if(this._hasExactPosition())n.top=n.left="0",n.bottom=n.right=n.maxHeight=n.maxWidth="",n.width=n.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;n.height=Object(l.d)(i.height),n.top=Object(l.d)(i.top),n.bottom=Object(l.d)(i.bottom),n.width=Object(l.d)(i.width),n.left=Object(l.d)(i.left),n.right=Object(l.d)(i.right),n.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",n.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(n.maxHeight=Object(l.d)(t)),s&&(n.maxWidth=Object(l.d)(s))}this._lastBoundingBoxSize=i,M(this._boundingBox.style,n)}_resetBoundingBoxStyles(){M(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){M(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},n=this._hasExactPosition(),s=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(n){const n=this._viewportRuler.getViewportScrollPosition();M(i,this._getExactOverlayY(e,t,n)),M(i,this._getExactOverlayX(e,t,n))}else i.position="static";let a="",o=this._getOffset(e,"x"),c=this._getOffset(e,"y");o&&(a+=`translateX(${o}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),r.maxHeight&&(n?i.maxHeight=Object(l.d)(r.maxHeight):s&&(i.maxHeight="")),r.maxWidth&&(n?i.maxWidth=Object(l.d)(r.maxWidth):s&&(i.maxWidth="")),M(this._pane.style,i)}_getExactOverlayY(t,e,i){let n={top:"",bottom:""},s=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return s.y-=r,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":n.top=Object(l.d)(s.y),n}_getExactOverlayX(t,e,i){let n,s={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),n=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===n?s.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":s.left=Object(l.d)(r.x),s}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:C(t,i),isOriginOutsideView:x(t,i),isOverlayClipped:C(e,i),isOverlayOutsideView:x(e,i)}}_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,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.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(l.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,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function M(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function V(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(P);return i&&"px"!==i?null:parseFloat(e)}return t||null}class z{constructor(t,e,i,n,s,r,a){this._preferredPositions=[],this._positionStrategy=new F(i,n,s,r,a).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,i,n){const s=new E(t,e,i,n);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}}const B="cdk-global-overlay-wrapper";class H{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(B),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,i=this._overlayRef.getConfig(),{width:n,height:s,maxWidth:r,maxHeight:a}=i,o=!("100%"!==n&&"100vw"!==n||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=o?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,o?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=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(B),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let U=(()=>{class t{constructor(t,e,i,n){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=n}global(){return new H}connectedTo(t,e,i){return new z(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new F(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.e),s.Xb(o.d),s.Xb(r.a),s.Xb(j))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(n.e),Object(s.Xb)(o.d),Object(s.Xb)(r.a),Object(s.Xb)(j))},token:t,providedIn:"root"}),t})(),X=0,q=(()=>{class t{constructor(t,e,i,n,s,r,a,o,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=n,this._keyboardDispatcher=s,this._injector=r,this._ngZone=a,this._document=o,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),n=this._createPortalOutlet(i),s=new O(t);return s.direction=s.direction||this._directionality.value,new L(n,e,i,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-"+X++,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 c.e(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(S),s.Xb(j),s.Xb(s.j),s.Xb(U),s.Xb(I),s.Xb(s.t),s.Xb(s.B),s.Xb(o.d),s.Xb(a.b),s.Xb(o.i),s.Xb(T))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const $=[{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 K=(()=>{class t{constructor(t){this.elementRef=t}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(s.l))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t})(),G=(()=>{class t{constructor(t,e,i,n,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.disableClose=!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 c.h(e,i),this._scrollStrategyFactory=n,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(l.c)(t)}get lockPosition(){return this._lockPosition}set lockPosition(t){this._lockPosition=Object(l.c)(t)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(t){this._flexibleDimensions=Object(l.c)(t)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(t){this._growAfterOpen=Object(l.c)(t)}get push(){return this._push}set push(t){this._push=Object(l.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=$);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||this.disableClose||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 O({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 i=>i.lift(new g(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.Nb(q),s.Nb(s.N),s.Nb(s.R),s.Nb(W),s.Nb(a.b,8))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[s.Ab]}),t})();const Y={provide:W,deps:[q],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Q=(()=>{class t{}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)},providers:[q,Y],imports:[[a.a,c.g,n.d],n.d]}),t})()},sVev:function(t,e,i){"use strict";i.d(e,"a",function(){return n});const n=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},"tk/3":function(t,e,i){"use strict";i.d(e,"a",function(){return O}),i.d(e,"b",function(){return B}),i.d(e,"c",function(){return d}),i.d(e,"d",function(){return f}),i.d(e,"e",function(){return y}),i.d(e,"f",function(){return C});var n=i("fXoL"),s=i("LRne"),r=i("HDdC"),a=i("bOdf"),o=i("pLZG"),l=i("lJxs"),c=i("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 i=t.slice(0,e),n=i.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(s):this.headers.set(n,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const n=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(n,i),this.maybeSetNormalizedName(e,n))})}: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 i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const n=("a"===t.op?this.headers.get(e):void 0)||[];n.push(...i),this.headers.set(e,n);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 m(t)}encodeValue(t){return m(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function m(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 f{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 i=new Map;return t.length>0&&t.split("&").forEach(t=>{const n=t.indexOf("="),[s,r]=-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],a=i.get(s)||[];a.push(r),i.set(s,a)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):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 f({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 i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _(t){return"undefined"!=typeof FormData&&t instanceof FormData}class y{constructor(t,e,i,n){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)||n?(this.body=void 0!==i?i:null,s=n):s=i,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 i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),o)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new y(e,i,s,{params:l,headers:o,reportProgress:a,responseType:n,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,i="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class x extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new x({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new C({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class k 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 S(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let O=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let n;if(t instanceof y)n=t;else{let s=void 0;s=i.headers instanceof d?i.headers:new d(i.headers);let r=void 0;i.params&&(r=i.params instanceof f?i.params:new f({fromObject:i.params})),n=new y(t,e,void 0!==i.body?i.body:null,{headers:s,params:r,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const r=Object(s.a)(n).pipe(Object(a.a)(t=>this.handler.handle(t)));if(t instanceof y||"events"===i.observe)return r;const c=r.pipe(Object(o.a)(t=>t instanceof C));switch(i.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return c.pipe(Object(l.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return c.pipe(Object(l.a)(t=>t.body))}case"response":return c;default:throw new Error(`Unreachable: unhandled observe type ${i.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 f).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,S(i,e))}post(t,e,i={}){return this.request("POST",t,S(i,e))}put(t,e,i={}){return this.request("PUT",t,S(i,e))}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(h))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();class E{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const A=new n.s("HTTP_INTERCEPTORS");let D=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();const I=/^\)\]\}',?\n/;class T{}let R=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),j=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new r.a(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const n=t.serializeBody();let s=null;const r=()=>{if(null!==s)return s;const e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new d(i.getAllResponseHeaders()),a=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new x({headers:r,status:e,statusText:n,url:a}),s},a=()=>{let{headers:n,status:s,statusText:a,url:o}=r(),l=null;204!==s&&(l=void 0===i.response?i.responseText:i.response),0===s&&(s=l?200:0);let c=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(I,"");try{l=""!==l?JSON.parse(l):null}catch(h){l=t,c&&(c=!1,l={error:h,text:l})}}c?(e.next(new C({body:l,headers:n,status:s,statusText:a,url:o||void 0})),e.complete()):e.error(new k({error:l,headers:n,status:s,statusText:a,url:o||void 0}))},o=t=>{const{url:n}=r(),s=new k({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:n||void 0});e.error(s)};let l=!1;const c=n=>{l||(e.next(r()),l=!0);let s={type:v.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(s.total=n.total),"text"===t.responseType&&i.responseText&&(s.partialText=i.responseText),e.next(s)},h=t=>{let i={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",a),i.addEventListener("error",o),t.reportProgress&&(i.addEventListener("progress",c),null!==n&&i.upload&&i.upload.addEventListener("progress",h)),i.send(n),e.next({type:v.Sent}),()=>{i.removeEventListener("error",o),i.removeEventListener("load",a),t.reportProgress&&(i.removeEventListener("progress",c),null!==n&&i.upload&&i.upload.removeEventListener("progress",h)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(T))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})();const L=new n.s("XSRF_COOKIE_NAME"),N=new n.s("XSRF_HEADER_NAME");class P{}let F=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(c.A)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(c.d),n.Xb(n.D),n.Xb(L))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const n=this.tokenService.getToken();return null===n||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,n)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(P),n.Xb(N))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{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(A,[]);this.chain=t.reduceRight((t,e)=>new E(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(u),n.Xb(n.t))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac}),t})(),z=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:M,useClass:D}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:L,useValue:e.cookieName}:[],e.headerName?{provide:N,useValue:e.headerName}:[]]}}}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[M,{provide:A,useExisting:M,multi:!0},{provide:P,useClass:F},{provide:L,useValue:"XSRF-TOKEN"},{provide:N,useValue:"X-XSRF-TOKEN"}]}),t})(),B=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[O,{provide:h,useClass:V},j,{provide:u,useExisting:j},R,{provide:T,useExisting:R}],imports:[[z.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,i){"use strict";i.d(e,"a",function(){return Ut}),i.d(e,"b",function(){return oi}),i.d(e,"c",function(){return li}),i.d(e,"d",function(){return vi}),i.d(e,"e",function(){return hi});var n=i("ofXK"),s=i("fXoL"),r=i("LRne"),a=i("Cfvw"),o=i("2Vo4"),l=i("itXk"),c=i("HDdC"),h=i("sVev"),u=i("NXyV"),d=i("EY2u"),p=i("XNiG"),m=i("lJxs"),f=i("0EUg"),g=i("pLZG"),b=i("7o/Q"),_=i("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,i=this.total,n=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,n=this.ring;for(let s=0;st.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||n.lengthn[e]===t)}return t===e}function ot(t){return Array.prototype.concat.apply([],t)}function lt(t){return t.length>0?t[t.length-1]:null}function ct(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function ht(t){return Object(s.tb)(t)?t:Object(s.ub)(t)?Object(a.a)(Promise.resolve(t)):Object(r.a)(t)}function ut(t,e,i){return i?function(t,e){return rt(t,e)}(t.queryParams,e.queryParams)&&dt(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>at(t[i],e[i]))}(t.queryParams,e.queryParams)&&pt(t.root,e.root)}function dt(t,e){if(!_t(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const i in e.children){if(!t.children[i])return!1;if(!dt(t.children[i],e.children[i]))return!1}return!0}function pt(t,e){return mt(t,e,e.segments)}function mt(t,e,i){if(t.segments.length>i.length)return!!_t(t.segments.slice(0,i.length),i)&&!e.hasChildren();if(t.segments.length===i.length){if(!_t(t.segments,i))return!1;for(const i in e.children){if(!t.children[i])return!1;if(!pt(t.children[i],e.children[i]))return!1}return!0}{const n=i.slice(0,t.segments.length),s=i.slice(t.segments.length);return!!_t(t.segments,n)&&!!t.children.primary&&mt(t.children.primary,e,s)}}class ft{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=it(this.queryParams)),this._queryParamMap}toString(){return xt.serialize(this)}}class gt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,ct(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ct(this)}}class bt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=it(this.parameters)),this._parameterMap}toString(){return It(this)}}function _t(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function yt(t,e){let i=[];return ct(t.children,(t,n)=>{n===tt&&(i=i.concat(e(t,n)))}),ct(t.children,(t,n)=>{n!==tt&&(i=i.concat(e(t,n)))}),i}class vt{}class wt{parse(t){const e=new Nt(t);return new ft(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+kt(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${Ot(e)}=${Ot(t)}`).join("&"):`${Ot(e)}=${Ot(i)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const xt=new wt;function Ct(t){return t.segments.map(t=>It(t)).join("/")}function kt(t,e){if(!t.hasChildren())return Ct(t);if(e){const e=t.children.primary?kt(t.children.primary,!1):"",i=[];return ct(t.children,(t,e)=>{e!==tt&&i.push(`${e}:${kt(t,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=yt(t,(e,i)=>i===tt?[kt(t.children.primary,!1)]:[`${i}:${kt(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Ct(t)}/${e[0]}`:`${Ct(t)}/(${e.join("//")})`}}function St(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ot(t){return St(t).replace(/%3B/gi,";")}function Et(t){return St(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function At(t){return decodeURIComponent(t)}function Dt(t){return At(t.replace(/\+/g,"%20"))}function It(t){return`${Et(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Et(t)}=${Et(e[t])}`).join("")}`;var e}const Tt=/^[^\/()?;=#]+/;function Rt(t){const e=t.match(Tt);return e?e[0]:""}const jt=/^[^=?&#]+/,Lt=/^[^?&#]+/;class Nt{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],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 i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new gt(t,e)),i}parseSegment(){const t=Rt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new bt(At(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Rt(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=Rt(this.remaining);t&&(i=t,this.capture(i))}t[At(e)]=At(i)}parseQueryParam(t){const e=function(t){const e=t.match(jt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Lt);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const n=Dt(e),s=Dt(i);if(t.hasOwnProperty(n)){let e=t[n];Array.isArray(e)||(e=[e],t[n]=e),e.push(s)}else t[n]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Rt(this.remaining),n=this.remaining[i.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;i.indexOf(":")>-1?(s=i.substr(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=tt);const r=this.parseChildren();e[s]=1===Object.keys(r).length?r.primary:new gt([],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 Pt{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=Ft(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Ft(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Mt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Mt(t,this._root).map(t=>t.value)}}function Ft(t,e){if(t===e.value)return e;for(const i of e.children){const e=Ft(t,i);if(e)return e}return null}function Mt(t,e){if(t===e.value)return[e];for(const i of e.children){const n=Mt(t,i);if(n.length)return n.unshift(e),n}return[]}class Vt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function zt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Bt extends Pt{constructor(t,e){super(t),this.snapshot=e,Wt(this,t)}toString(){return this.snapshot.toString()}}function Ht(t,e){const i=function(t,e){const i=new qt([],{},{},"",{},tt,e,null,t.root,-1,{});return new $t("",new Vt(i,[]))}(t,e),n=new o.a([new bt("",{})]),s=new o.a({}),r=new o.a({}),a=new o.a({}),l=new o.a(""),c=new Ut(n,s,a,l,r,tt,e,i.root);return c.snapshot=i.root,new Bt(new Vt(c,[]),i)}class Ut{constructor(t,e,i,n,s,r,a,o){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=a,this._futureSnapshot=o}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(m.a)(t=>it(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(m.a)(t=>it(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Xt(t,e="emptyOnly"){const i=t.pathFromRoot;let n=0;if("always"!==e)for(n=i.length-1;n>=1;){const t=i[n],e=i[n-1];if(t.routeConfig&&""===t.routeConfig.path)n--;else{if(e.component)break;n--}}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:{}})}(i.slice(n))}class qt{constructor(t,e,i,n,s,r,a,o,l,c,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=r,this.component=a,this.routeConfig=o,this._urlSegment=l,this._lastPathIndex=c,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 $t extends Pt{constructor(t,e){super(e),this.url=t,Wt(this,e)}toString(){return Kt(this._root)}}function Wt(t,e){e.value._routerState=t,e.children.forEach(e=>Wt(t,e))}function Kt(t){const e=t.children.length>0?` { ${t.children.map(Kt).join(", ")} } `:"";return`${t.value}${e}`}function Gt(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,rt(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),rt(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;irt(t.parameters,n[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Yt(t.parent,e.parent))}function Qt(t,e,i){if(i&&t.shouldReuseRoute(e.value,i.value.snapshot)){const n=i.value;n._futureSnapshot=e.value;const s=function(t,e,i){return e.children.map(e=>{for(const n of i.children)if(t.shouldReuseRoute(e.value,n.value.snapshot))return Qt(t,e,n);return Qt(t,e)})}(t,e,i);return new Vt(n,s)}{const i=t.retrieve(e.value);if(i){const t=i.route;return Zt(e,t),t}{const i=new Ut(new o.a((n=e.value).url),new o.a(n.params),new o.a(n.queryParams),new o.a(n.fragment),new o.a(n.data),n.outlet,n.component,n),s=e.children.map(e=>Qt(t,e));return new Vt(i,s)}}var n}function Zt(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let i=0;i{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new ft(i.root===t?e:ie(i.root,t,e),r,s)}function ie(t,e,i){const n={};return ct(t.children,(t,s)=>{n[s]=t===e?i:ie(t,e,i)}),new gt(t.segments,n)}class ne{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Jt(i[0]))throw new Error("Root segment cannot have matrix parameters");const n=i.find(te);if(n&&n!==lt(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class se{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function re(t,e,i){if(t||(t=new gt([],{})),0===t.segments.length&&t.hasChildren())return ae(t,e,i);const n=function(t,e,i){let n=0,s=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;s=i.length)return r;const e=t.segments[s],a=i[n];if(te(a))break;const o=""+a,l=n0&&void 0===o)break;if(o&&l&&"object"==typeof l&&void 0===l.outlets){if(!he(o,l,e))return r;n+=2}else{if(!he(o,{},e))return r;n++}s++}return{match:!0,pathIndex:s,commandIndex:n}}(t,e,i),s=i.slice(n.commandIndex);if(n.match&&n.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(s[n]=re(t.children[n],e,i))}),ct(t.children,(t,e)=>{void 0===n[e]&&(s[e]=t)}),new gt(t.segments,s)}}function oe(t,e,i){const n=t.segments.slice(0,e);let s=0;for(;s{"string"==typeof t&&(t=[t]),null!==t&&(e[i]=oe(new gt([],{}),0,t))}),e}function ce(t){const e={};return ct(t,(t,i)=>e[i]=""+t),e}function he(t,e,i){return t==i.path&&rt(e,i.parameters)}class ue{constructor(t,e,i,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),Gt(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const n=zt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,n[e],i),delete n[e]}),ct(n,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(n===s)if(n.component){const s=i.getContext(n.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),n=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:n})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const n=zt(t),s=t.value.component?i.children:e;ct(n,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const n=zt(e);t.children.forEach(t=>{this.activateRoutes(t,n[t.value.outlet],i),this.forwardEvent(new Z(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Y(t.value.snapshot))}activateRoutes(t,e,i){const n=t.value,s=e?e.value:null;if(Gt(n),n===s)if(n.component){const s=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(n.component){const e=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){const t=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.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),de(t.route)}else{const i=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}(n.snapshot),s=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=n,e.resolver=s,e.outlet&&e.outlet.activateWith(n,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function de(t){Gt(t.value),t.children.forEach(de)}class pe{constructor(t,e){this.routes=t,this.module=e}}function me(t){return"function"==typeof t}function fe(t){return t instanceof ft}const ge=Symbol("INITIAL_VALUE");function be(){return Object(S.a)(t=>Object(l.b)(...t.map(t=>t.pipe(Object(O.a)(1),Object(E.a)(ge)))).pipe(function(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(n){return n.lift(new A(t,e,i))}}((t,e)=>{let i=!1;return e.reduce((t,n,s)=>{if(t!==ge)return t;if(n===ge&&(i=!0),!i){if(!1===n)return n;if(s===e.length-1||fe(n))return n}return t},t)},ge),Object(g.a)(t=>t!==ge),Object(m.a)(t=>fe(t)?t:!0===t),Object(O.a)(1)))}let _e=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Hb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Ob(0,"router-outlet")},directives:function(){return[hi]},encapsulation:2}),t})();function ye(t,e=""){for(let i=0;ie.error(new ke(t)))}function Ee(t){return new c.a(e=>e.error(new Se(t)))}function Ae(t){return new c.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class De{constructor(t,e,i,n,r){this.configLoader=e,this.urlSerializer=i,this.urlTree=n,this.config=r,this.allowRedirects=!0,this.ngModule=t.get(s.z)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,tt).pipe(Object(m.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(I.a)(t=>{if(t instanceof Se)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ke)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,tt).pipe(Object(m.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(I.a)(t=>{if(t instanceof ke)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const n=t.segments.length>0?new gt([],{[tt]:t}):t;return new ft(n,e,i)}expandSegmentGroup(t,e,i,n){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Object(m.a)(t=>new gt([],t))):this.expandSegment(t,i,e,i.segments,n,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return Object(r.a)({});const i=[],n=[],s={};return ct(t,(t,r)=>{const a=e(r,t).pipe(Object(m.a)(t=>s[r]=t));r===tt?i.push(a):n.push(a)}),r.a.apply(null,i.concat(n)).pipe(Object(f.a)(),function(t,e){const i=arguments.length>=2;return n=>n.pipe(t?Object(g.a)((e,i)=>t(e,i,n)):k.a,y(1),i?Object(C.a)(e):Object(x.a)(()=>new h.a))}(),Object(m.a)(()=>s))}(i.children,(i,n)=>this.expandSegmentGroup(t,e,n,i))}expandSegment(t,e,i,n,s,o){const c=function(t){return t.reduce((t,e)=>{const i=Ce(e);return t.has(i)?t.get(i).push(e):t.set(i,[e]),t},new Map)}(i);c.has(s)||c.set(s,[]);const u=i=>Object(a.a)(i).pipe(Object(T.a)(a=>this.expandSegmentAgainstRoute(t,e,i,a,n,s,o).pipe(Object(I.a)(t=>{if(t instanceof ke)return Object(r.a)(null);throw t}))),Object(R.a)(t=>null!==t),Object(I.a)(t=>{if(t instanceof h.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,n,s))return Object(r.a)(new gt([],{}));throw new ke(e)}throw t})),d=Array.from(c.entries()).map(([t,e])=>{const i=u(e);return t===s?i:i.pipe(Object(m.a)(()=>null),Object(I.a)(()=>Object(r.a)(null)))});return Object(a.a)(d).pipe(t=>t.lift(new l.a(void 0)),Object(R.a)(),Object(m.a)(t=>t.find(t=>null!==t)))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,n,s,r,a){return Ce(n)!==r&&""!==n.path?Oe(e):void 0===n.redirectTo?this.matchSegmentAgainstRoute(t,e,n,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r):Oe(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,n,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,n){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Ee(s):this.lineralizeSegments(i,s).pipe(Object(j.a)(i=>{const s=new gt(i,{});return this.expandSegment(t,s,e,i,n,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,n,s,r){const{matched:a,consumedSegments:o,lastChild:l,positionalParamSegments:c}=Ie(e,n,s);if(!a)return Oe(e);const h=this.applyRedirectCommands(o,n.redirectTo,c);return n.redirectTo.startsWith("/")?Ee(h):this.lineralizeSegments(n,h).pipe(Object(j.a)(n=>this.expandSegment(t,e,i,n.concat(s.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,i,n){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(Object(m.a)(t=>(i._loadedConfig=t,new gt(n,{})))):Object(r.a)(new gt(n,{}));const{matched:s,consumedSegments:a,lastChild:o}=Ie(e,i,n);if(!s)return Oe(e);const l=n.slice(o);return this.getChildConfig(t,i,n).pipe(Object(j.a)(t=>{const i=t.module,n=t.routes,{segmentGroup:s,slicedSegments:o}=function(t,e,i,n){return i.length>0&&function(t,e,i){return i.some(i=>Re(t,e,i)&&Ce(i)!==tt)}(t,i,n)?{segmentGroup:Te(new gt(e,function(t,e){const i={};i.primary=e;for(const n of t)""===n.path&&Ce(n)!==tt&&(i[Ce(n)]=new gt([],{}));return i}(n,new gt(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>Re(t,e,i))}(t,i,n)?{segmentGroup:Te(new gt(t.segments,function(t,e,i,n){const s={};for(const r of i)Re(t,e,r)&&!n[Ce(r)]&&(s[Ce(r)]=new gt([],{}));return Object.assign(Object.assign({},n),s)}(t,i,n,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,a,l,n);return 0===o.length&&s.hasChildren()?this.expandChildren(i,n,s).pipe(Object(m.a)(t=>new gt(a,t))):0===n.length&&0===o.length?Object(r.a)(new gt(a,{})):this.expandSegment(i,s,n,o,tt,!0).pipe(Object(m.a)(t=>new gt(a.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Object(r.a)(new pe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(r.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(Object(j.a)(i=>i?this.configLoader.load(t.injector,e).pipe(Object(m.a)(t=>(e._loadedConfig=t,t))):function(t){return new c.a(e=>e.error(nt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(r.a)(new pe([],t))}runCanLoadGuards(t,e,i){const n=e.canLoad;if(!n||0===n.length)return Object(r.a)(!0);const s=n.map(n=>{const s=t.get(n);let r;if(function(t){return t&&me(t.canLoad)}(s))r=s.canLoad(e,i);else{if(!me(s))throw new Error("Invalid CanLoad guard");r=s(e,i)}return ht(r)});return Object(r.a)(s).pipe(be(),Object(L.a)(t=>{if(!fe(t))return;const e=nt(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(m.a)(t=>!0===t))}lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),0===n.numberOfChildren)return Object(r.a)(i);if(n.numberOfChildren>1||!n.children.primary)return Ae(t.redirectTo);n=n.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,n){const s=this.createSegmentGroup(t,e.root,i,n);return new ft(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return ct(t,(t,n)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);i[n]=e[s]}else i[n]=t}),i}createSegmentGroup(t,e,i,n){const s=this.createSegments(t,e.segments,i,n);let r={};return ct(e.children,(e,s)=>{r[s]=this.createSegmentGroup(t,e,i,n)}),new gt(s,r)}createSegments(t,e,i,n){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,n):this.findOrReturn(e,i))}findPosParam(t,e,i){const n=i[e.path.substring(1)];if(!n)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return n}findOrReturn(t,e){let i=0;for(const n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}}function Ie(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const n=(e.matcher||st)(i,t,e);return n?{matched:!0,consumedSegments:n.consumed,lastChild:n.consumed.length,positionalParamSegments:n.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Te(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new gt(t.segments.concat(e.segments),e.children)}return t}function Re(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}class je{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Le{constructor(t,e){this.component=t,this.route=e}}function Ne(t,e,i){const n=t._root;return Fe(n,e?e._root:null,i,[n.value])}function Pe(t,e,i){const n=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(n?n.module.injector:i).get(t)}function Fe(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=zt(e);return t.children.forEach(t=>{!function(t,e,i,n,s={canDeactivateChecks:[],canActivateChecks:[]}){const r=t.value,a=e?e.value:null,o=i?i.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){const l=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!_t(t.url,e.url);case"pathParamsOrQueryParamsChange":return!_t(t.url,e.url)||!rt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Yt(t,e)||!rt(t.queryParams,e.queryParams);case"paramsChange":default:return!Yt(t,e)}}(a,r,r.routeConfig.runGuardsAndResolvers);l?s.canActivateChecks.push(new je(n)):(r.data=a.data,r._resolvedData=a._resolvedData),Fe(t,e,r.component?o?o.children:null:i,n,s),l&&o&&o.outlet&&o.outlet.isActivated&&s.canDeactivateChecks.push(new Le(o.outlet.component,a))}else a&&Me(e,o,s),s.canActivateChecks.push(new je(n)),Fe(t,null,r.component?o?o.children:null:i,n,s)}(t,r[t.value.outlet],i,n.concat([t.value]),s),delete r[t.value.outlet]}),ct(r,(t,e)=>Me(t,i.getContext(e),s)),s}function Me(t,e,i){const n=zt(t),s=t.value;ct(n,(t,n)=>{Me(t,s.component?e?e.children.getContext(n):null:e,i)}),i.canDeactivateChecks.push(new Le(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function Ve(t,e){return null!==t&&e&&e(new Q(t)),Object(r.a)(!0)}function ze(t,e){return null!==t&&e&&e(new G(t)),Object(r.a)(!0)}function Be(t,e,i){const n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||0===n.length)return Object(r.a)(!0);const s=n.map(n=>Object(u.a)(()=>{const s=Pe(n,e,i);let r;if(function(t){return t&&me(t.canActivate)}(s))r=ht(s.canActivate(e,t));else{if(!me(s))throw new Error("Invalid CanActivate guard");r=ht(s(e,t))}return r.pipe(Object(R.a)())}));return Object(r.a)(s).pipe(be())}function He(t,e,i){const n=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=Pe(s,e.node,i);let a;if(function(t){return t&&me(t.canActivateChild)}(r))a=ht(r.canActivateChild(n,t));else{if(!me(r))throw new Error("Invalid CanActivateChild guard");a=ht(r(n,t))}return a.pipe(Object(R.a)())});return Object(r.a)(s).pipe(be())}));return Object(r.a)(s).pipe(be())}class Ue{}class Xe{constructor(t,e,i,n,s,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=n,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=r}recognize(){try{const t=We(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,tt),i=new qt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},tt,this.rootComponentType,null,this.urlTree.root,-1,{}),n=new Vt(i,e),s=new $t(this.url,n);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,i=Xt(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=yt(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),n=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${n}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>t.value.outlet===tt?-1:e.value.outlet===tt?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,n){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,i,n)}catch(s){if(!(s instanceof Ue))throw s}if(this.noLeftoversInUrl(e,i,n))return[];throw new Ue}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,n){if(t.redirectTo)throw new Ue;if((t.outlet||tt)!==n)throw new Ue;let s,r=[],a=[];if("**"===t.path){const r=i.length>0?lt(i).parameters:{};s=new qt(i,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ge(t),n,t.component,t,qe(e),$e(e)+i.length,Ye(t))}else{const o=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new Ue;return{consumedSegments:[],lastChild:0,parameters:{}}}const n=(e.matcher||st)(i,t,e);if(!n)throw new Ue;const s={};ct(n.posParams,(t,e)=>{s[e]=t.path});const r=n.consumed.length>0?Object.assign(Object.assign({},s),n.consumed[n.consumed.length-1].parameters):s;return{consumedSegments:n.consumed,lastChild:n.consumed.length,parameters:r}}(e,t,i);r=o.consumedSegments,a=i.slice(o.lastChild),s=new qt(r,o.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ge(t),n,t.component,t,qe(e),$e(e)+r.length,Ye(t))}const o=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:c}=We(e,r,a,o,this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const t=this.processChildren(o,l);return[new Vt(s,t)]}if(0===o.length&&0===c.length)return[new Vt(s,[])];const h=this.processSegment(o,l,c,tt);return[new Vt(s,h)]}}function qe(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function $e(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function We(t,e,i,n,s){if(i.length>0&&function(t,e,i){return i.some(i=>Ke(t,e,i)&&Ce(i)!==tt)}(t,i,n)){const s=new gt(e,function(t,e,i,n){const s={};s.primary=n,n._sourceSegment=t,n._segmentIndexShift=e.length;for(const r of i)if(""===r.path&&Ce(r)!==tt){const i=new gt([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,s[Ce(r)]=i}return s}(t,e,n,new gt(i,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>Ke(t,e,i))}(t,i,n)){const r=new gt(t.segments,function(t,e,i,n,s,r){const a={};for(const o of n)if(Ke(t,i,o)&&!s[Ce(o)]){const i=new gt([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===r?t.segments.length:e.length,a[Ce(o)]=i}return Object.assign(Object.assign({},s),a)}(t,e,i,n,t.children,s));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}const r=new gt(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}function Ke(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function Ge(t){return t.data||{}}function Ye(t){return t.resolve||{}}function Qe(t){return function(e){return e.pipe(Object(S.a)(e=>{const i=t(e);return i?Object(a.a)(i).pipe(Object(m.a)(()=>e)):Object(a.a)([e])}))}}class Ze extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const Je=new s.s("ROUTES");class ti{constructor(t,e,i,n){this.loader=t,this.compiler=e,this.onLoadStartListener=i,this.onLoadEndListener=n}load(t,e){return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(Object(m.a)(i=>{this.onLoadEndListener&&this.onLoadEndListener(e);const n=i.create(t);return new pe(ot(n.injector.get(Je)).map(xe),n)}))}loadModuleFactory(t){return"string"==typeof t?Object(a.a)(this.loader.load(t)):ht(t()).pipe(Object(j.a)(t=>t instanceof s.x?Object(r.a)(t):Object(a.a)(this.compiler.compileModuleAsync(t))))}}class ei{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new ii,this.attachRef=null}}class ii{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}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 ei,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class ni{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function si(t){throw t}function ri(t,e,i){return e.parse("/")}function ai(t,e){return Object(r.a)(null)}let oi=(()=>{class t{constructor(t,e,i,n,r,a,l,c){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=n,this.config=c,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new p.a,this.errorHandler=si,this.malformedUriErrorHandler=ri,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ai,afterPreactivation:ai},this.urlHandlingStrategy=new ni,this.routeReuseStrategy=new Ze,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=r.get(s.z),this.console=r.get(s.bb);const h=r.get(s.B);this.isNgZoneEnabled=h instanceof s.B,this.resetConfig(c),this.currentUrlTree=new ft(new gt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ti(a,l,t=>this.triggerEvent(new W(t)),t=>this.triggerEvent(new K(t))),this.routerState=Ht(this.currentUrlTree,this.rootComponentType),this.transitions=new o.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(g.a)(t=>0!==t.id),Object(m.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(S.a)(t=>{let i=!1,n=!1;return Object(r.a)(t).pipe(Object(L.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(S.a)(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(r.a)(t).pipe(Object(S.a)(t=>{const i=this.transitions.getValue();return e.next(new M(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?d.a:[t]}),Object(S.a)(t=>Promise.resolve(t)),(n=this.ngModule.injector,s=this.configLoader,a=this.urlSerializer,o=this.config,function(t){return t.pipe(Object(S.a)(t=>function(t,e,i,n,s){return new De(t,e,i,n,s).apply()}(n,s,a,t.extractedUrl,o).pipe(Object(m.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(L.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,n,s){return function(r){return r.pipe(Object(j.a)(r=>function(t,e,i,n,s="emptyOnly",r="legacy"){return new Xe(t,e,i,n,s,r).recognize()}(t,e,r.urlAfterRedirects,i(r.urlAfterRedirects),n,s).pipe(Object(m.a)(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(L.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(L.a)(t=>{const i=new H(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var n,s,a,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:n,source:s,restoredState:a,extras:o}=t,l=new M(i,this.serializeUrl(n),s,a);e.next(l);const c=Ht(n,this.rootComponentType).snapshot;return Object(r.a)(Object.assign(Object.assign({},t),{targetSnapshot:c,urlAfterRedirects:n,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a}),Qe(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:a}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!a})}),Object(L.a)(t=>{const e=new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(m.a)(t=>Object.assign(Object.assign({},t),{guards:Ne(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(Object(j.a)(i=>{const{targetSnapshot:n,currentSnapshot:s,guards:{canActivateChecks:o,canDeactivateChecks:l}}=i;return 0===l.length&&0===o.length?Object(r.a)(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,n){return Object(a.a)(t).pipe(Object(j.a)(t=>function(t,e,i,n,s){const a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!a||0===a.length)return Object(r.a)(!0);const o=a.map(r=>{const a=Pe(r,e,s);let o;if(function(t){return t&&me(t.canDeactivate)}(a))o=ht(a.canDeactivate(t,e,i,n));else{if(!me(a))throw new Error("Invalid CanDeactivate guard");o=ht(a(t,e,i,n))}return o.pipe(Object(R.a)())});return Object(r.a)(o).pipe(be())}(t.component,t.route,i,e,n)),Object(R.a)(t=>!0!==t,!0))}(l,n,s,t).pipe(Object(j.a)(i=>i&&"boolean"==typeof i?function(t,e,i,n){return Object(a.a)(e).pipe(Object(T.a)(e=>Object(a.a)([ze(e.route.parent,n),Ve(e.route,n),He(t,e.path,i),Be(t,e.route,i)]).pipe(Object(f.a)(),Object(R.a)(t=>!0!==t,!0))),Object(R.a)(t=>!0!==t,!0))}(n,o,t,e):Object(r.a)(i)),Object(m.a)(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(L.a)(t=>{if(fe(t.guardsResult)){const e=nt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(L.a)(t=>{const e=new X(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(g.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new z(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),Qe(t=>{if(t.guards.canActivateChecks.length)return Object(r.a)(t).pipe(Object(L.a)(t=>{const e=new q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(S.a)(t=>{let i=!1;return Object(r.a)(t).pipe((n=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(Object(j.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:i}}=t;if(!i.length)return Object(r.a)(t);let o=0;return Object(a.a)(i).pipe(Object(T.a)(t=>function(t,e,i,n){return function(t,e,i,n){const s=Object.keys(t);if(0===s.length)return Object(r.a)({});const o={};return Object(a.a)(s).pipe(Object(j.a)(s=>function(t,e,i,n){const s=Pe(t,e,n);return ht(s.resolve?s.resolve(e,i):s(e,i))}(t[s],e,i,n).pipe(Object(L.a)(t=>{o[s]=t}))),y(1),Object(j.a)(()=>Object.keys(o).length===s.length?Object(r.a)(o):d.a))}(t._resolve,t,e,n).pipe(Object(m.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),Xt(t,i).resolve),null)))}(t.route,e,n,s)),Object(L.a)(()=>o++),y(1),Object(j.a)(e=>o===i.length?Object(r.a)(t):d.a))}))}),Object(L.a)({next:()=>i=!0,complete:()=>{if(!i){const i=new z(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(i),t.resolve(!1)}}}));var n,s}),Object(L.a)(t=>{const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),Qe(t=>{const{targetSnapshot:e,id:i,extractedUrl:n,rawUrl:s,extras:{skipLocationChange:r,replaceUrl:a}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:n,rawUrlTree:s,skipLocationChange:!!r,replaceUrl:!!a})}),Object(m.a)(t=>{const e=function(t,e,i){const n=Qt(t,e._root,i?i._root:void 0);return new Bt(n,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(L.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,o=this.routeReuseStrategy,l=t=>this.triggerEvent(t),Object(m.a)(t=>(new ue(o,t.targetRouterState,t.currentRouterState,l).activate(s),t))),Object(L.a)({next(){i=!0},complete(){i=!0}}),Object(N.a)(()=>{if(!i&&!n){this.resetUrlToCurrentUrlTree();const i=new z(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null}),Object(I.a)(i=>{if(n=!0,(s=i)&&s.ngNavigationCancelingError){const n=fe(i.url);n||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new z(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(s),n?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.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 n=new B(t.id,this.serializeUrl(t.extractedUrl),i);e.next(n);try{t.resolve(this.errorHandler(i))}catch(r){t.reject(r)}}var s;return d.a}));var s,o,l}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:n}=e,s={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(n,t,i,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){ye(t),this.config=t.map(xe),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:n,fragment:s,queryParamsHandling:r,preserveFragment:a}=e,o=i||this.routerState.root,l=a?this.currentUrlTree.fragment:s;let c=null;switch(r){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),n);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=n||null}return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,i,n,s){if(0===i.length)return ee(e.root,e.root,e,n,s);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ne(!0,0,t);let e=0,i=!1;const n=t.reduce((t,n,s)=>{if("object"==typeof n&&null!=n){if(n.outlets){const e={};return ct(n.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(n.segmentPath)return[...t,n.segmentPath]}return"string"!=typeof n?[...t,n]:0===s?(n.split("/").forEach((n,s)=>{0==s&&"."===n||(0==s&&""===n?i=!0:".."===n?e++:""!=n&&t.push(n))}),t):[...t,n]},[]);return new ne(i,e,n)}(i);if(r.toRoot())return ee(e.root,new gt([],{}),e,n,s);const a=function(t,e,i){if(t.isAbsolute)return new se(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new se(t,t===e.root,0)}const n=Jt(t.commands[0])?0:1;return function(t,e,i){let n=t,s=e,r=i;for(;r>s;){if(r-=s,n=n.parent,!n)throw new Error("Invalid number of '../'");s=n.segments.length}return new se(n,!1,s-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+n,t.numberOfDoubleDots)}(r,e,t),o=a.processChildren?ae(a.segmentGroup,a.index,r.commands):re(a.segmentGroup,a.index,r.commands);return ee(a.segmentGroup,o,e,n,s)}(o,this.currentUrlTree,t,c,l)}navigateByUrl(t,e={skipLocationChange:!1}){const i=fe(t)?t:this.parseUrl(t),n=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(n,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const n=t[i];return null!=n&&(e[i]=n),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,i,n,s){const r=this.getTransition(),a="imperative"!==e&&"imperative"===(null==r?void 0:r.source),o=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(a&&o)return Promise.resolve(!0);let l,c,h;s?(l=s.resolve,c=s.reject,h=s.promise):h=new Promise((t,e)=>{l=t,c=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:n,resolve:l,reject:c,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,n){const s=this.urlSerializer.serialize(t);n=n||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},n),{navigationId:i})):this.location.go(s,"",Object.assign(Object.assign({},n),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.P),s.Xb(vt),s.Xb(ii),s.Xb(n.i),s.Xb(s.t),s.Xb(s.y),s.Xb(s.i),s.Xb(void 0))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),li=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new p.a,this.subscription=t.events.subscribe(t=>{t instanceof V&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,n,s){if(0!==t||e||i||n||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:ci(this.skipLocationChange),replaceUrl:ci(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:ci(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(oi),s.Nb(Ut),s.Nb(n.j))},t.\u0275dir=s.Ib({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.bc("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Wb("href",e.href,s.wc),s.Db("target",e.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.Ab]}),t})();function ci(t){return""===t||!!t}let hi=(()=>{class t{constructor(t,e,i,n,r){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.o,this.deactivateEvents=new s.o,this.name=n||tt,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 i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),n=this.parentContexts.getOrCreateContext(this.name).children,s=new ui(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Nb(ii),s.Nb(s.R),s.Nb(s.j),s.Yb("name"),s.Nb(s.h))},t.\u0275dir=s.Ib({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class ui{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===Ut?this.route:t===ii?this.childContexts:this.parent.get(t,e)}}class di{}class pi{preload(t,e){return Object(r.a)(null)}}let mi=(()=>{class t{constructor(t,e,i,n,s){this.router=t,this.injector=n,this.preloadingStrategy=s,this.loader=new ti(e,i,e=>t.triggerEvent(new W(e)),e=>t.triggerEvent(new K(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(g.a)(t=>t instanceof V),Object(T.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 i=[];for(const n of e)if(n.loadChildren&&!n.canLoad&&n._loadedConfig){const t=n._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else n.loadChildren&&!n.canLoad?i.push(this.preloadConfig(t,n)):n.children&&i.push(this.processRoutes(t,n.children));return Object(a.a)(i).pipe(Object(P.a)(),Object(m.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(j.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(oi),s.Xb(s.y),s.Xb(s.i),s.Xb(s.t),s.Xb(di))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})(),fi=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.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 M?(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 J&&(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 J(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.Xb(oi),s.Xb(n.u),s.Xb(void 0))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();const gi=new s.s("ROUTER_CONFIGURATION"),bi=new s.s("ROUTER_FORROOT_GUARD"),_i=[n.i,{provide:vt,useClass:wt},{provide:oi,useFactory:function(t,e,i,s,r,a,o,l={},c,h){const u=new oi(null,t,e,i,s,r,a,ot(o));if(c&&(u.urlHandlingStrategy=c),h&&(u.routeReuseStrategy=h),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}(l,u),l.enableTracing){const t=Object(n.z)();u.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return u},deps:[vt,ii,n.i,s.t,s.y,s.i,Je,gi,[class{},new s.C],[class{},new s.C]]},ii,{provide:Ut,useFactory:function(t){return t.routerState.root},deps:[oi]},{provide:s.y,useClass:s.M},mi,pi,class{preload(t,e){return e().pipe(Object(I.a)(()=>Object(r.a)(null)))}},{provide:gi,useValue:{enableTracing:!1}}];function yi(){return new s.A("Router",oi)}let vi=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[_i,ki(e),{provide:bi,useFactory:Ci,deps:[[oi,new s.C,new s.L]]},{provide:gi,useValue:i||{}},{provide:n.j,useFactory:xi,deps:[n.t,[new s.q(n.a),new s.C],gi]},{provide:fi,useFactory:wi,deps:[oi,n.u,gi]},{provide:di,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:pi},{provide:s.A,multi:!0,useFactory:yi},[Si,{provide:s.d,multi:!0,useFactory:Oi,deps:[Si]},{provide:Ai,useFactory:Ei,deps:[Si]},{provide:s.b,multi:!0,useExisting:Ai}]]}}static forChild(e){return{ngModule:t,providers:[ki(e)]}}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)(s.Xb(bi,8),s.Xb(oi,8))}}),t})();function wi(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new fi(t,e,i)}function xi(t,e,i={}){return i.useHash?new n.g(t,e):new n.s(t,e)}function Ci(t){return"guarded"}function ki(t){return[{provide:s.a,multi:!0,useValue:t},{provide:Je,multi:!0,useValue:t}]}let Si=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new p.a}appInitializer(){return this.injector.get(n.h,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(oi),n=this.injector.get(gi);return"disabled"===n.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===n.initialNavigation||"enabledBlocking"===n.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?Object(r.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()):t(!0),e})}bootstrapListener(t){const e=this.injector.get(gi),i=this.injector.get(mi),n=this.injector.get(fi),r=this.injector.get(oi),a=this.injector.get(s.g);t===a.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),i.setUpPreloading(),n.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.t))},t.\u0275prov=s.Jb({token:t,factory:t.\u0275fac}),t})();function Oi(t){return t.appInitializer.bind(t)}function Ei(t){return t.bootstrapListener.bind(t)}const Ai=new s.s("Router Initializer")},u47x:function(t,e,i){"use strict";i.d(e,"a",function(){return W}),i.d(e,"b",function(){return S}),i.d(e,"c",function(){return C}),i.d(e,"d",function(){return P}),i.d(e,"e",function(){return H}),i.d(e,"f",function(){return R}),i.d(e,"g",function(){return O}),i.d(e,"h",function(){return z}),i.d(e,"i",function(){return T}),i.d(e,"j",function(){return $}),i.d(e,"k",function(){return N}),i.d(e,"l",function(){return F});var n=i("ofXK"),s=i("fXoL"),r=i("nLfN"),a=i("XNiG"),o=i("quSY"),l=i("LRne"),c=i("FtGj"),h=i("vkgz"),u=i("Kj3r"),d=i("pLZG"),p=i("lJxs"),m=i("IzEk"),f=i("8LU1"),g=i("GU7r");function b(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const _="cdk-describedby-message-container",y="cdk-describedby-host";let v=0;const w=new Map;let x=null,C=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),w.set(e,{messageElement:e,referenceCount:0})):w.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=w.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}x&&0===x.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 i=w.get(e);!function(t,e,i){const n=b(t,e);n.some(t=>t.trim()==i.trim())||(n.push(i.trim()),t.setAttribute(e,n.join(" ")))}(t,"aria-describedby",i.messageElement.id),t.setAttribute(y,""),i.referenceCount++}_removeMessageReference(t,e){const i=w.get(e);i.referenceCount--,function(t,e,i){const n=b(t,e).filter(t=>t!=i.trim());n.length?t.setAttribute(e,n.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",i.messageElement.id),t.removeAttribute(y)}_isElementDescribedByMessage(t,e){const i=b(t,"aria-describedby"),n=w.get(e),s=n&&n.messageElement.id;return!!s&&-1!=i.indexOf(s)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const i=null==e?"":(""+e).trim(),n=t.getAttribute("aria-label");return!(!i||n&&n.trim()===i)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(n.d),s.Xb(r.a))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(n.d),Object(s.Xb)(r.a))},token:t,providedIn:"root"}),t})();class k{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new a.a,this._typeaheadSubscription=o.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new a.a,this.change=new a.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 i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case c.p:return void this.tabOut.next();case c.e:if(this._vertical&&i){this.setNextItemActive();break}return;case c.q:if(this._vertical&&i){this.setPreviousItemActive();break}return;case c.n:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case c.j:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case c.i:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case c.f:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Object(c.t)(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=c.a&&e<=c.r||e>=c.s&&e<=c.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(),i="number"==typeof t?t:e.indexOf(t),n=e[i];this._activeItem=null==n?null:n,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const n=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[n]))return void this.setActiveItem(n)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof s.F?this._items.toArray():this._items}}class S extends k{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class O extends k{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 E=(()=>{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}}((i=t).ownerDocument&&i.ownerDocument.defaultView||window);var i;if(e){if(-1===D(e))return!1;if(!this.isVisible(e))return!1}let n=t.nodeName.toLowerCase(),s=D(t);return t.hasAttribute("contenteditable")?-1!==s:"iframe"!==n&&"object"!==n&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){let e=t.nodeName.toLowerCase(),i="input"===e&&t.type;return"text"===i||"password"===i||"select"===e||"textarea"===e}(t))&&("audio"===n?!!t.hasAttribute("controls")&&-1!==s:"video"===n?-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")||A(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(r.a))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(r.a))},token:t,providedIn:"root"}),t})();function A(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(!A(t))return null;const e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class I{constructor(t,e,i,n,s=!1){this._element=t,this._checker=e,this._ngZone=i,this._document=n,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 i=0;i=0;i--){let t=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):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(m.a)(1)).subscribe(t)}}let T=(()=>{class t{constructor(t,e,i){this._checker=t,this._ngZone=e,this._document=i}create(t,e=!1){return new I(t,this._checker,this._ngZone,this._document,e)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(E),s.Xb(s.B),s.Xb(n.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(E),Object(s.Xb)(s.B),Object(s.Xb)(n.d))},token:t,providedIn:"root"}),t})(),R=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=i,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=Object(f.c)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=Object(f.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.Nb(s.l),s.Nb(T),s.Nb(n.d))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[s.Ab]}),t})();"undefined"!=typeof Element&∈const j=new s.s("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),L=new s.s("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let N=(()=>{class t{constructor(t,e,i,n){this._ngZone=e,this._defaultOptions=n,this._document=i,this._liveElement=t||this._createLiveElement()}announce(t,...e){const i=this._defaultOptions;let n,s;return 1===e.length&&"number"==typeof e[0]?s=e[0]:[n,s]=e,this.clear(),clearTimeout(this._previousTimeout),n||(n=i&&i.politeness?i.politeness:"polite"),null==s&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",n),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="cdk-live-announcer-element",e=this._document.getElementsByClassName(t),i=this._document.createElement("div");for(let n=0;n{class t{constructor(t,e,i,n){this._elementRef=t,this._liveAnnouncer=e,this._contentObserver=i,this._ngZone=n,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.Nb(s.l),s.Nb(N),s.Nb(g.b),s.Nb(s.B))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdkAriaLive",""]],inputs:{politeness:["cdkAriaLive","politeness"]},exportAs:["cdkAriaLive"]}),t})();function F(t){return 0===t.buttons}const M=new s.s("cdk-focus-monitor-default-options"),V=Object(r.f)({passive:!0,capture:!0});let z=(()=>{class t{constructor(t,e,i,n){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=F(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=B(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=B(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let n=e;n;n=n.parentElement)i.call(this,t,n)},this._document=i,this._detectionMode=(null==n?void 0:n.detectionMode)||0}monitor(t,e=!1){const i=Object(f.e)(t);if(!this._platform.isBrowser||1!==i.nodeType)return Object(l.a)(null);const n=Object(r.c)(i)||this._getDocument(),s=this._elementInfo.get(i);if(s)return e&&(s.checkChildren=!0),s.subject;const o={checkChildren:e,subject:new a.a,rootNode:n};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){const e=Object(f.e)(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const n=Object(f.e)(t);n===this._getDocument().activeElement&&this._elementInfo.has(n)?this._originChanged(n,e,this._elementInfo.get(n)):(this._setOriginForCurrentEventQueue(e),"function"==typeof n.focus&&n.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?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=B(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);i&&(i.checkChildren||e===B(t))&&this._originChanged(e,this._getFocusOrigin(t),i)}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,V),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,V)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,V),t.addEventListener("mousedown",this._documentMousedownListener,V),t.addEventListener("touchstart",this._documentTouchstartListener,V),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,V),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,V),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,V),t.removeEventListener("mousedown",this._documentMousedownListener,V),t.removeEventListener("touchstart",this._documentTouchstartListener,V),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}_originChanged(t,e,i){this._setClasses(t,e),this._emitOrigin(i.subject,e),this._lastFocusOrigin=e}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.B),s.Xb(r.a),s.Xb(n.d,8),s.Xb(M,8))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(s.B),Object(s.Xb)(r.a),Object(s.Xb)(n.d,8),Object(s.Xb)(M,8))},token:t,providedIn:"root"}),t})();function B(t){return t.composedPath?t.composedPath()[0]:t.target}let H=(()=>{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.Nb(s.l),s.Nb(z))},t.\u0275dir=s.Ib({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const U="cdk-high-contrast-black-on-white",X="cdk-high-contrast-white-on-black",q="cdk-high-contrast-active";let $=(()=>{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,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,n=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),n){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(q),t.remove(U),t.remove(X);const e=this.getHighContrastMode();1===e?(t.add(q),t.add(U)):2===e&&(t.add(q),t.add(X))}}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(r.a),s.Xb(n.d))},t.\u0275prov=Object(s.Jb)({factory:function(){return new t(Object(s.Xb)(r.a),Object(s.Xb)(n.d))},token:t,providedIn:"root"}),t})(),W=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=s.Lb({type:t}),t.\u0275inj=s.Kb({factory:function(e){return new(e||t)(s.Xb($))},imports:[[r.b,g.c]]}),t})()},vkgz:function(t,e,i){"use strict";i.d(e,"a",function(){return a});var n=i("7o/Q");function s(){}var r=i("n6bG");function a(t,e,i){return function(n){return n.lift(new o(t,e,i))}}class o{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new l(t,this.nextOrObserver,this.error,this.complete))}}class l extends n.a{constructor(t,e,i,n){super(t),this._tapNext=s,this._tapError=s,this._tapComplete=s,this._tapError=i||s,this._tapComplete=n||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,i){"use strict";i.d(e,"a",function(){return f}),i.d(e,"b",function(){return b}),i.d(e,"c",function(){return m}),i.d(e,"d",function(){return _}),i.d(e,"e",function(){return g}),i("8LU1");var n=i("fXoL"),s=i("XNiG"),r=i("LRne"),a=i("HDdC"),o=i("xgIS"),l=(i("eNwd"),i("7Hc7"),i("quSY"),i("7+OI"),i("/uUt"),i("3UWI")),c=i("pLZG"),h=i("1G5W");i("JX91"),i("7o/Q"),i("eIep"),i("UXun");var u=i("nLfN"),d=i("ofXK"),p=i("cH1L");i("0EQZ");let m=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new s.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}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 a.a(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(Object(l.a)(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.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 i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Object(c.a)(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,e){let i=e.nativeElement,n=t.getElementRef().nativeElement;do{if(i==n)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const t=this._getWindow();return Object(o.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)(n.Xb(n.B),n.Xb(u.a),n.Xb(d.d,8))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(n.B),Object(n.Xb)(u.a),Object(n.Xb)(d.d,8))},token:t,providedIn:"root"}),t})(),f=(()=>{class t{constructor(t,e,i,n){this.elementRef=t,this.scrollDispatcher=e,this.ngZone=i,this.dir=n,this._destroyed=new s.a,this._elementScrolled=new a.a(t=>this.ngZone.runOutsideAngular(()=>Object(o.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,i=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=i?t.end:t.start),null==t.right&&(t.right=i?t.start:t.end),null!=t.bottom&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),i&&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="left",i="right",n=this.elementRef.nativeElement;if("top"==t)return n.scrollTop;if("bottom"==t)return n.scrollHeight-n.clientHeight-n.scrollTop;const s=this.dir&&"rtl"==this.dir.value;return"start"==t?t=s?i:e:"end"==t&&(t=s?e:i),s&&2==Object(u.d)()?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:s&&1==Object(u.d)()?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.l),n.Nb(m),n.Nb(n.B),n.Nb(p.b,8))},t.\u0275dir=n.Ib({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),t})(),g=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new s.a,this._changeListener=t=>{this._change.next(t)},this._document=i,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:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,e=this._getWindow(),i=t.documentElement,n=i.getBoundingClientRect();return{top:-n.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-n.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Object(l.a)(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(u.a),n.Xb(n.B),n.Xb(d.d,8))},t.\u0275prov=Object(n.Jb)({factory:function(){return new t(Object(n.Xb)(u.a),Object(n.Xb)(n.B),Object(n.Xb)(d.d,8))},token:t,providedIn:"root"}),t})(),b=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)}}),t})(),_=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[p.a,u.b,b],p.a,b]}),t})()},w1tV:function(t,e,i){"use strict";i.d(e,"a",function(){return m});var n=i("XNiG"),s=i("HDdC"),r=i("7o/Q"),a=i("quSY");function o(){return function(t){return t.lift(new l(t))}}class l{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const n=new c(t,i),s=e.subscribe(n);return n.closed||(n.connection=i.connect()),s}}class c 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:i}=this,n=t._connection;this.connection=null,!n||i&&n!==i||n.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 a.a,t.add(this.source.subscribe(new d(this.getSubject(),this))),t.closed&&(this._connection=null,t=a.a.EMPTY)),t}refCount(){return o()(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 n.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 n.a}function m(){return t=>{return o()((e=p,function(t){let i;i="function"==typeof e?e:function(){return e};const n=Object.create(t,u);return n.source=t,n.subjectFactory=i,n})(t));var e}}},xHqg:function(t,e,i){"use strict";i.d(e,"a",function(){return z}),i.d(e,"b",function(){return F}),i.d(e,"c",function(){return A}),i.d(e,"d",function(){return $}),i.d(e,"e",function(){return H}),i.d(e,"f",function(){return X});var n=i("+rOU"),s=i("B/XX"),r=i("ofXK"),a=i("fXoL"),o=i("bTqV"),l=i("FKr1"),c=i("NFeN"),h=i("XNiG"),u=i("1G5W"),d=i("/uUt"),p=i("R0Ic"),m=i("u47x");function f(t,e){if(1&t&&a.Pb(0,8),2&t){const t=a.fc();a.lc("ngTemplateOutlet",t.iconOverrides[t.state])("ngTemplateOutletContext",t._getIconContext())}}function g(t,e){if(1&t&&(a.Tb(0,"span"),a.Ec(1),a.Sb()),2&t){const t=a.fc(2);a.Cb(1),a.Fc(t._getDefaultTextForState(t.state))}}function b(t,e){if(1&t&&(a.Tb(0,"mat-icon"),a.Ec(1),a.Sb()),2&t){const t=a.fc(2);a.Cb(1),a.Fc(t._getDefaultTextForState(t.state))}}function _(t,e){if(1&t&&(a.Rb(0,9),a.Dc(1,g,2,1,"span",10),a.Dc(2,b,2,1,"mat-icon",11),a.Qb()),2&t){const t=a.fc();a.lc("ngSwitch",t.state),a.Cb(1),a.lc("ngSwitchCase","number")}}function y(t,e){if(1&t&&(a.Tb(0,"div",12),a.Pb(1,13),a.Sb()),2&t){const t=a.fc();a.Cb(1),a.lc("ngTemplateOutlet",t._templateLabel().template)}}function v(t,e){if(1&t&&(a.Tb(0,"div",12),a.Ec(1),a.Sb()),2&t){const t=a.fc();a.Cb(1),a.Fc(t.label)}}function w(t,e){if(1&t&&(a.Tb(0,"div",14),a.Ec(1),a.Sb()),2&t){const t=a.fc();a.Cb(1),a.Fc(t._intl.optionalLabel)}}function x(t,e){if(1&t&&(a.Tb(0,"div",15),a.Ec(1),a.Sb()),2&t){const t=a.fc();a.Cb(1),a.Fc(t.errorMessage)}}function C(t,e){1&t&&a.jc(0)}i("cH1L");const k=["*"];function S(t,e){1&t&&a.Ob(0,"div",6)}function O(t,e){if(1&t){const t=a.Ub();a.Rb(0),a.Tb(1,"mat-step-header",4),a.bc("click",function(){return e.$implicit.select()})("keydown",function(e){return a.uc(t),a.fc()._onKeydown(e)}),a.Sb(),a.Dc(2,S,1,0,"div",5),a.Qb()}if(2&t){const t=e.$implicit,i=e.index,n=e.last,s=a.fc();a.Cb(1),a.lc("tabIndex",s._getFocusIndex()===i?0:-1)("id",s._getStepLabelId(i))("index",i)("state",s._getIndicatorType(i,t.state))("label",t.stepLabel||t.label)("selected",s.selectedIndex===i)("active",t.completed||s.selectedIndex===i||!s.linear)("optional",t.optional)("errorMessage",t.errorMessage)("iconOverrides",s._iconOverrides)("disableRipple",s.disableRipple)("color",t.color||s.color),a.Db("aria-posinset",i+1)("aria-setsize",s.steps.length)("aria-controls",s._getStepContentId(i))("aria-selected",s.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),a.Cb(1),a.lc("ngIf",!n)}}function E(t,e){if(1&t){const t=a.Ub();a.Tb(0,"div",7),a.bc("@stepTransition.done",function(e){return a.uc(t),a.fc()._animationDone.next(e)}),a.Pb(1,8),a.Sb()}if(2&t){const t=e.$implicit,i=e.index,n=a.fc();a.lc("@stepTransition",n._getAnimationDirection(i))("id",n._getStepContentId(i)),a.Db("aria-labelledby",n._getStepLabelId(i))("aria-expanded",n.selectedIndex===i),a.Cb(1),a.lc("ngTemplateOutlet",t.content)}}let A=(()=>{class t extends s.c{}return t.\u0275fac=function(e){return D(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matStepLabel",""]],features:[a.zb]}),t})();const D=a.Vb(A);let I=(()=>{class t{constructor(){this.changes=new h.a,this.optionalLabel="Optional"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(a.Jb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const T={provide:I,deps:[[new a.C,new a.L,I]],useFactory:function(t){return t||new I}};class R extends s.b{constructor(t){super(t)}}const j=Object(l.w)(R,"primary");let L=(()=>{class t extends j{constructor(t,e,i,n){super(i),this._intl=t,this._focusMonitor=e,this._intlSubscription=t.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(){this._focusMonitor.focusVia(this._elementRef,"program")}_stringLabel(){return this.label instanceof A?null:this.label}_templateLabel(){return this.label instanceof A?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(t){return"number"==t?""+(this.index+1):"edit"==t?"create":"error"==t?"warning":t}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(I),a.Nb(m.h),a.Nb(a.l),a.Nb(a.h))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header","mat-focus-indicator"],inputs:{color:"color",state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple"},features:[a.zb],decls:10,vars:19,consts:[["matRipple","",1,"mat-step-header-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content",3,"ngSwitch"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngSwitchCase"],[3,"ngSwitch",4,"ngSwitchDefault"],[1,"mat-step-label"],["class","mat-step-text-label",4,"ngIf"],["class","mat-step-optional",4,"ngIf"],["class","mat-step-sub-label-error",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(t,e){1&t&&(a.Ob(0,"div",0),a.Tb(1,"div"),a.Tb(2,"div",1),a.Dc(3,f,1,2,"ng-container",2),a.Dc(4,_,3,2,"ng-container",3),a.Sb(),a.Sb(),a.Tb(5,"div",4),a.Dc(6,y,2,1,"div",5),a.Dc(7,v,2,1,"div",5),a.Dc(8,w,2,1,"div",6),a.Dc(9,x,2,1,"div",7),a.Sb()),2&t&&(a.lc("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disableRipple),a.Cb(1),a.Eb("mat-step-icon-state-",e.state," mat-step-icon"),a.Fb("mat-step-icon-selected",e.selected),a.Cb(1),a.lc("ngSwitch",!(!e.iconOverrides||!e.iconOverrides[e.state])),a.Cb(1),a.lc("ngSwitchCase",!0),a.Cb(2),a.Fb("mat-step-label-active",e.active)("mat-step-label-selected",e.selected)("mat-step-label-error","error"==e.state),a.Cb(1),a.lc("ngIf",e._templateLabel()),a.Cb(1),a.lc("ngIf",e._stringLabel()),a.Cb(1),a.lc("ngIf",e.optional&&"error"!=e.state),a.Cb(1),a.lc("ngIf","error"==e.state))},directives:[l.r,r.o,r.p,r.q,r.m,r.r,c.a],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.mat-step-optional,.mat-step-sub-label-error{font-size:12px}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative}.mat-step-icon-content,.mat-step-icon .mat-icon{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),t})();const N={horizontalStepTransition:Object(p.m)("stepTransition",[Object(p.j)("previous",Object(p.k)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),Object(p.j)("current",Object(p.k)({transform:"none",visibility:"visible"})),Object(p.j)("next",Object(p.k)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),Object(p.l)("* => *",Object(p.e)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:Object(p.m)("stepTransition",[Object(p.j)("previous",Object(p.k)({height:"0px",visibility:"hidden"})),Object(p.j)("next",Object(p.k)({height:"0px",visibility:"hidden"})),Object(p.j)("current",Object(p.k)({height:"*",visibility:"visible"})),Object(p.l)("* <=> current",Object(p.e)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let P=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(a.N))},t.\u0275dir=a.Ib({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),t})(),F=(()=>{class t extends s.a{constructor(t,e,i){super(t,i),this._errorStateMatcher=e}isErrorState(t,e){return this._errorStateMatcher.isErrorState(t,e)||!!(t&&t.invalid&&this.interacted)}}return t.\u0275fac=function(e){return new(e||t)(a.Nb(Object(a.W)(()=>M)),a.Nb(l.d,4),a.Nb(s.h,8))},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-step"]],contentQueries:function(t,e,i){if(1&t&&a.Gb(i,A,!0),2&t){let t;a.rc(t=a.cc())&&(e.stepLabel=t.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[a.Bb([{provide:l.d,useExisting:t},{provide:s.a,useExisting:t}]),a.zb],ngContentSelectors:k,decls:1,vars:0,template:function(t,e){1&t&&(a.kc(),a.Dc(0,C,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),t})(),M=(()=>{class t extends s.d{constructor(){super(...arguments),this.steps=new a.F,this.animationDone=new a.o,this._iconOverrides={},this._animationDone=new h.a}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:t,templateRef:e})=>this._iconOverrides[t]=e),this.steps.changes.pipe(Object(u.a)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe(Object(d.a)((t,e)=>t.fromState===e.fromState&&t.toState===e.toState),Object(u.a)(this._destroyed)).subscribe(t=>{"current"===t.toState&&this.animationDone.emit()})}}return t.\u0275fac=function(e){return V(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["","matStepper",""]],contentQueries:function(t,e,i){if(1&t&&(a.Gb(i,F,!0),a.Gb(i,P,!0)),2&t){let t;a.rc(t=a.cc())&&(e._steps=t),a.rc(t=a.cc())&&(e._icons=t)}},viewQuery:function(t,e){if(1&t&&a.Ic(L,!0),2&t){let t;a.rc(t=a.cc())&&(e._stepHeader=t)}},inputs:{disableRipple:"disableRipple",color:"color"},outputs:{animationDone:"animationDone"},features:[a.Bb([{provide:s.d,useExisting:t}]),a.zb]}),t})();const V=a.Vb(M);let z=(()=>{class t extends M{constructor(){super(...arguments),this.labelPosition="end"}}return t.\u0275fac=function(e){return B(e||t)},t.\u0275cmp=a.Hb({type:t,selectors:[["mat-horizontal-stepper"]],hostAttrs:["aria-orientation","horizontal","role","tablist",1,"mat-stepper-horizontal"],hostVars:4,hostBindings:function(t,e){2&t&&a.Fb("mat-stepper-label-position-end","end"==e.labelPosition)("mat-stepper-label-position-bottom","bottom"==e.labelPosition)},inputs:{selectedIndex:"selectedIndex",labelPosition:"labelPosition"},exportAs:["matHorizontalStepper"],features:[a.Bb([{provide:M,useExisting:t},{provide:s.d,useExisting:t}]),a.zb],decls:4,vars:2,consts:[[1,"mat-horizontal-stepper-header-container"],[4,"ngFor","ngForOf"],[1,"mat-horizontal-content-container"],["class","mat-horizontal-stepper-content","role","tabpanel",3,"id",4,"ngFor","ngForOf"],[1,"mat-horizontal-stepper-header",3,"tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color","click","keydown"],["class","mat-stepper-horizontal-line",4,"ngIf"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"]],template:function(t,e){1&t&&(a.Tb(0,"div",0),a.Dc(1,O,3,19,"ng-container",1),a.Sb(),a.Tb(2,"div",2),a.Dc(3,E,2,5,"div",3),a.Sb()),2&t&&(a.Cb(1),a.lc("ngForOf",e.steps),a.Cb(2),a.lc("ngForOf",e.steps))},directives:[r.l,L,r.m,r.r],styles:['.mat-stepper-vertical,.mat-stepper-horizontal{display:block}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-content{outline:0}.mat-horizontal-stepper-content[aria-expanded=false]{height:0;overflow:hidden}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0}.mat-vertical-content{padding:0 24px 24px 24px}.mat-step:last-child .mat-vertical-content-container{border:none}\n'],encapsulation:2,data:{animation:[N.horizontalStepTransition]},changeDetection:0}),t})();const B=a.Vb(z);let H=(()=>{class t extends s.f{}return t.\u0275fac=function(e){return U(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(t,e){2&t&&a.Wb("type",e.type)},inputs:{type:"type"},features:[a.zb]}),t})();const U=a.Vb(H);let X=(()=>{class t extends s.g{}return t.\u0275fac=function(e){return q(e||t)},t.\u0275dir=a.Ib({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(t,e){2&t&&a.Wb("type",e.type)},inputs:{type:"type"},features:[a.zb]}),t})();const q=a.Vb(X);let $=(()=>{class t{}return t.\u0275mod=a.Lb({type:t}),t.\u0275inj=a.Kb({factory:function(e){return new(e||t)},providers:[T,l.d],imports:[[l.i,r.c,n.g,o.c,s.e,c.b,l.s],l.i]}),t})()},xbPD:function(t,e,i){"use strict";i.d(e,"a",function(){return s});var n=i("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 a(t,this.defaultValue))}}class a extends n.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,i){"use strict";i.d(e,"a",function(){return o});var n=i("HDdC"),s=i("DH7j"),r=i("n6bG"),a=i("lJxs");function o(t,e,i,c){return Object(r.a)(i)&&(c=i,i=void 0),c?o(t,e,i).pipe(Object(a.a)(t=>Object(s.a)(t)?c(...t):c(t))):new n.a(n=>{l(t,e,function(t){n.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},n,i)})}function l(t,e,i,n,s){let r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const n=t;t.addEventListener(e,i,s),r=()=>n.removeEventListener(e,i,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const n=t;t.on(e,i),r=()=>n.off(e,i)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const n=t;t.addListener(e,i),r=()=>n.removeListener(e,i)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let r=0,a=t.length;re.schedule(r,0,{error:t,subscriber:i}):e=>e.error(t))}function r({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,i){"use strict";i.r(e);var n=i("fXoL"),s=i("AytR"),r=i("jhN1"),a=i("tk/3"),o=i("tyNb");const l=[{path:"",pathMatch:"full",redirectTo:"/welcome"},{path:"welcome",loadChildren:()=>i.e(15).then(i.bind(null,"TtBp")).then(t=>t.WelcomeModule)},{path:"knowledge-item",loadChildren:()=>Promise.all([i.e(1),i.e(10)]).then(i.bind(null,"U+IK")).then(t=>t.KnowledgeItemsModule)},{path:"exercise-item",loadChildren:()=>Promise.all([i.e(1),i.e(8)]).then(i.bind(null,"V7M2")).then(t=>t.ExerciseItemsModule)},{path:"tag",loadChildren:()=>i.e(14).then(i.bind(null,"Bbvb")).then(t=>t.TagModule)},{path:"help",loadChildren:()=>i.e(9).then(i.bind(null,"6RTz")).then(t=>t.HelpModule)},{path:"primary-school-math",loadChildren:()=>i.e(6).then(i.bind(null,"GtZ7")).then(t=>t.PrimarySchoolMathModule)},{path:"puzzle-games",loadChildren:()=>i.e(7).then(i.bind(null,"1Ans")).then(t=>t.PuzzleGameModule)},{path:"quiz-summary",loadChildren:()=>i.e(13).then(i.bind(null,"TYNk")).then(t=>t.QuizSummaryModule)},{path:"preview",loadChildren:()=>i.e(12).then(i.bind(null,"caho")).then(t=>t.PreviewModule)},{path:"**",loadChildren:()=>i.e(11).then(i.bind(null,"jSwP")).then(t=>t.NotFoundModule)}];let c=(()=>{class t{}return t.\u0275mod=n.Lb({type:t}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},imports:[[o.d.forRoot(l)],o.d]}),t})();var h=i("VHTt"),u=i("0MNC"),d=i("QPBi"),p=i("/t3+"),m=i("bTqV"),f=i("NFeN"),g=i("Qu3c"),b=i("STbY"),_=i("ofXK"),y=i("XhcP"),v=i("7EHt"),w=i("MutI");let x=(()=>{class t{transform(t,e){return t.filter(t=>void 0===e||t.group===e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=n.Mb({name:"navItemFilter",type:t,pure:!0}),t})();function C(t,e){1&t&&(n.Tb(0,"mat-icon"),n.Ec(1,"check"),n.Sb())}function k(t,e){if(1&t){const t=n.Ub();n.Tb(0,"button",18),n.bc("click",function(){n.uc(t);const i=e.$implicit;return n.fc().switchLanguage(i.value)}),n.Dc(1,C,2,0,"mat-icon",19),n.Ec(2),n.gc(3,"transloco"),n.Sb()}if(2&t){const t=e.$implicit,i=n.fc();n.Cb(1),n.lc("ngIf",i.selectedLanguage===t.value),n.Cb(1),n.Gc(" ",n.hc(3,2,t.displayas)," ")}}const S=function(t){return[t]};function O(t,e){if(1&t&&(n.Tb(0,"a",20),n.Ec(1),n.gc(2,"transloco"),n.Sb()),2&t){const t=e.$implicit;n.lc("routerLink",n.pc(4,S,t.route)),n.Cb(1),n.Gc(" ",n.hc(2,2,t.name)," ")}}function E(t,e){if(1&t&&(n.Tb(0,"a",20),n.Ec(1),n.gc(2,"transloco"),n.Sb()),2&t){const t=e.$implicit;n.lc("routerLink",n.pc(4,S,t.route)),n.Cb(1),n.Gc(" ",n.hc(2,2,t.name)," ")}}function A(t,e){if(1&t&&(n.Tb(0,"a",20),n.Ec(1),n.gc(2,"transloco"),n.Sb()),2&t){const t=e.$implicit;n.lc("routerLink",n.pc(4,S,t.route)),n.Cb(1),n.Gc(" ",n.hc(2,2,t.name)," ")}}function D(t,e){if(1&t&&(n.Tb(0,"a",20),n.Ec(1),n.gc(2,"transloco"),n.Sb()),2&t){const t=e.$implicit;n.lc("routerLink",n.pc(4,S,t.route)),n.Cb(1),n.Gc(" ",n.hc(2,2,t.name)," ")}}function I(t,e){if(1&t&&(n.Tb(0,"a",20),n.Ec(1),n.gc(2,"transloco"),n.Sb()),2&t){const t=e.$implicit;n.lc("routerLink",n.pc(4,S,t.route)),n.Cb(1),n.Gc(" ",n.hc(2,2,t.name)," ")}}let T=(()=>{class t{constructor(t,e,i){this.translocoService=i,this.title="Knowledge Builder",this.navItems=[],this.availableLanguages=[{displayas:"Languages.en",value:"en"},{displayas:"Languages.zh",value:"zh"}],this.selectedLanguage="zh",this.mobileQuery=e.matchMedia("(max-width: 600px)"),this._mobileQueryListener=()=>t.detectChanges(),this.mobileQuery.addEventListener("change",this._mobileQueryListener),this.navItems=[{name:"WelcomePage",route:"/welcome",group:h.b.home},{name:"MathExercise.AdditionExercises",route:"/primary-school-math/add-ex",group:h.b.ps_basic},{name:"MathExercise.SubtractionExercises",route:"/primary-school-math/sub-ex",group:h.b.ps_basic},{name:"MathExercise.MultiplicationExercises",route:"/primary-school-math/multi-ex",group:h.b.ps_basic},{name:"MathExercise.DivisionExercises",route:"/primary-school-math/div-ex",group:h.b.ps_basic},{name:"MathExercise.MixedOperations",route:"/primary-school-math/mixed-op",group:h.b.ps_basic},{name:"Quiz.PrintableQuizGenerator",route:"/primary-school-math/printable-quiz",group:h.b.ps_basic},{name:"KnowledgeItem",route:"/knowledge-item",group:h.b.knowledge},{name:"ExerciseItem",route:"/exercise-item",group:h.b.knowledge},{name:"Tags",route:"/tag",group:h.b.knowledge},{name:"PuzzleGames.Calculate24",route:"/puzzle-games/cal24",group:h.b.games},{name:"PuzzleGames.Sudou",route:"/puzzle-games/sudou",group:h.b.games},{name:"PuzzleGames.TypingTutor",route:"puzzle-games/typegame",group:h.b.games},{name:"PuzzleGames.Gobang",route:"puzzle-games/gobang",group:h.b.games},{name:"Help.About",route:"/help/about",group:h.b.help},{name:"Help.Credits",route:"/help/credits",group:h.b.help}]}switchLanguage(t){this.selectedLanguage=t,this.translocoService.setActiveLang("en"===t?"en":"zh")}toggleFullscreen(){}ngOnDestroy(){this.mobileQuery.removeEventListener("change",this._mobileQueryListener)}openCodeRepo(){window.open("https://github.com/alvachien/knowledgebuilder","_blank")}}return t.\u0275fac=function(e){return new(e||t)(n.Nb(n.h),n.Nb(u.c),n.Nb(d.e))},t.\u0275cmp=n.Hb({type:t,selectors:[["app-root"]],decls:84,vars:55,consts:[[1,"example-container"],["color","primary",1,"example-toolbar"],["mat-icon-button","",3,"click"],[1,"example-app-name"],[1,"toolbar-spacer"],["mat-icon-button","","mat-button","",3,"matTooltip","matMenuTriggerFor"],["overlapTrigger","false","xPosition","after","yPosition","below"],["matMenuLanguage","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["mat-icon-button","","title","Toggle fullscreen",3,"matTooltip","click"],["aria-hidden","false","aria-label","Code Repo"],[1,"example-sidenav-container"],["fixedTopGap","56",3,"mode","fixedInViewport"],["snav",""],["hideToggle","false"],["color","primary"],["mat-list-item","",3,"routerLink",4,"ngFor","ngForOf"],["mat-list-item","",3,"click"],["mat-menu-item","",3,"click"],[4,"ngIf"],["mat-list-item","",3,"routerLink"]],template:function(t,e){if(1&t){const t=n.Ub();n.Tb(0,"div",0),n.Tb(1,"mat-toolbar",1),n.Tb(2,"button",2),n.bc("click",function(){return n.uc(t),n.sc(27).toggle()}),n.Tb(3,"mat-icon"),n.Ec(4,"menu"),n.Sb(),n.Sb(),n.Tb(5,"h1",3),n.Ec(6),n.gc(7,"transloco"),n.Sb(),n.Ob(8,"span",4),n.Tb(9,"button",5),n.gc(10,"transloco"),n.Tb(11,"mat-icon"),n.Ec(12,"language"),n.Sb(),n.Sb(),n.Tb(13,"mat-menu",6,7),n.Dc(15,k,4,4,"button",8),n.Sb(),n.Tb(16,"button",9),n.bc("click",function(){return e.toggleFullscreen()}),n.gc(17,"transloco"),n.Tb(18,"mat-icon"),n.Ec(19,"fullscreen"),n.Sb(),n.Sb(),n.Tb(20,"button",2),n.bc("click",function(){return e.openCodeRepo()}),n.Tb(21,"mat-icon",10),n.Ec(22,"code"),n.Sb(),n.Sb(),n.Tb(23,"span"),n.Ec(24,"V:0.1.32"),n.Sb(),n.Sb(),n.Tb(25,"mat-sidenav-container",11),n.Tb(26,"mat-sidenav",12,13),n.Tb(28,"mat-expansion-panel",14),n.Tb(29,"mat-expansion-panel-header"),n.Tb(30,"mat-panel-title"),n.Tb(31,"mat-icon",15),n.Ec(32,"home"),n.Sb(),n.Ec(33),n.gc(34,"transloco"),n.Sb(),n.Sb(),n.Tb(35,"mat-nav-list"),n.Dc(36,O,3,6,"a",16),n.gc(37,"navItemFilter"),n.Sb(),n.Sb(),n.Tb(38,"mat-expansion-panel",14),n.Tb(39,"mat-expansion-panel-header"),n.Tb(40,"mat-panel-title"),n.Tb(41,"mat-icon",15),n.Ec(42,"school"),n.Sb(),n.Ec(43),n.gc(44,"transloco"),n.Sb(),n.Sb(),n.Tb(45,"mat-nav-list"),n.Dc(46,E,3,6,"a",16),n.gc(47,"navItemFilter"),n.Sb(),n.Sb(),n.Tb(48,"mat-expansion-panel",14),n.Tb(49,"mat-expansion-panel-header"),n.Tb(50,"mat-panel-title"),n.Tb(51,"mat-icon",15),n.Ec(52,"library_books"),n.Sb(),n.Ec(53),n.gc(54,"transloco"),n.Sb(),n.Sb(),n.Tb(55,"mat-nav-list"),n.Dc(56,A,3,6,"a",16),n.gc(57,"navItemFilter"),n.Sb(),n.Sb(),n.Tb(58,"mat-expansion-panel",14),n.Tb(59,"mat-expansion-panel-header"),n.Tb(60,"mat-panel-title"),n.Tb(61,"mat-icon",15),n.Ec(62,"snooze"),n.Sb(),n.Ec(63),n.gc(64,"transloco"),n.Sb(),n.Sb(),n.Tb(65,"mat-nav-list"),n.Dc(66,D,3,6,"a",16),n.gc(67,"navItemFilter"),n.Sb(),n.Sb(),n.Tb(68,"mat-expansion-panel",14),n.Tb(69,"mat-expansion-panel-header"),n.Tb(70,"mat-panel-title"),n.Tb(71,"mat-icon",15),n.Ec(72,"help_outline"),n.Sb(),n.Ec(73),n.gc(74,"transloco"),n.Sb(),n.Sb(),n.Tb(75,"mat-nav-list"),n.Dc(76,I,3,6,"a",16),n.gc(77,"navItemFilter"),n.Sb(),n.Sb(),n.Tb(78,"mat-nav-list"),n.Tb(79,"a",17),n.bc("click",function(){return n.uc(t),n.sc(27).close()}),n.Ec(80),n.gc(81,"transloco"),n.Sb(),n.Sb(),n.Sb(),n.Tb(82,"mat-sidenav-content"),n.Ob(83,"router-outlet"),n.Sb(),n.Sb(),n.Sb()}if(2&t){const t=n.sc(14);n.Fb("example-is-mobile",e.mobileQuery.matches),n.Cb(6),n.Fc(n.hc(7,22,"KnowledgeBuilder")),n.Cb(3),n.mc("matTooltip",n.hc(10,24,"Language")),n.lc("matMenuTriggerFor",t),n.Cb(6),n.lc("ngForOf",e.availableLanguages),n.Cb(1),n.mc("matTooltip",n.hc(17,26,"FullScreen")),n.Cb(9),n.Ac("margin-top",e.mobileQuery.matches?56:0,"px"),n.Cb(1),n.lc("mode",e.mobileQuery.matches?"over":"side")("fixedInViewport",e.mobileQuery.matches),n.Cb(7),n.Gc(" ",n.hc(34,28,"WelcomePage")," "),n.Cb(3),n.lc("ngForOf",n.ic(37,30,e.navItems,0)),n.Cb(7),n.Gc("",n.hc(44,33,"MathExercise.PrimarySchoolBasicMath")," "),n.Cb(3),n.lc("ngForOf",n.ic(47,35,e.navItems,1)),n.Cb(7),n.Gc("",n.hc(54,38,"KnowledgeBuilder")," "),n.Cb(3),n.lc("ngForOf",n.ic(57,40,e.navItems,7)),n.Cb(7),n.Gc("",n.hc(64,43,"PuzzleGames.PuzzleGames")," "),n.Cb(3),n.lc("ngForOf",n.ic(67,45,e.navItems,3)),n.Cb(7),n.Gc("",n.hc(74,48,"Help.About")," "),n.Cb(3),n.lc("ngForOf",n.ic(77,50,e.navItems,6)),n.Cb(4),n.Fc(n.hc(81,53,"Common.Close"))}},directives:[p.a,m.b,f.a,g.a,b.d,b.a,_.l,y.b,y.a,v.b,v.c,v.d,w.e,w.b,y.c,o.e,b.b,_.m,o.c],pipes:[d.d,x],styles:[".example-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:absolute;top:0;bottom:0;left:0;right:0}.mat-sidenav[_ngcontent-%COMP%]{min-width:200px}.example-is-mobile[_ngcontent-%COMP%] .example-toolbar[_ngcontent-%COMP%]{position:fixed;z-index:2}h1.example-app-name[_ngcontent-%COMP%]{margin-left:8px}.example-sidenav-container[_ngcontent-%COMP%]{flex:1}.example-is-mobile[_ngcontent-%COMP%] .example-sidenav-container[_ngcontent-%COMP%]{flex:1 0 auto}"]}),t})();var R=i("R1ws"),j=i("jIBr"),L=i("0LvA"),N=i("lR5k");const P={provide:d.b,useClass:(()=>{class t{constructor(t){this.http=t}getTranslation(t){return this.http.get(`${s.a.basehref}assets/i18n/${t}.json`)}}return t.\u0275fac=function(e){return new(e||t)(n.Xb(a.a))},t.\u0275prov=n.Jb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()};var F=i("o0su");let M=(()=>{class t{}return t.\u0275mod=n.Lb({type:t,bootstrap:[T]}),t.\u0275inj=n.Kb({factory:function(e){return new(e||t)},providers:[F.b,F.c,{provide:d.a,useValue:Object(d.f)({availableLangs:["en","zh"],defaultLang:"zh",reRenderOnLangChange:!0,prodMode:s.a.production})},P],imports:[[r.a,c,R.b,a.b,d.c,L.b,N.b.forRoot({loader:a.a,markedOptions:{provide:N.c,useValue:{gfm:!0,breaks:!1,pedantic:!1,smartLists:!0,smartypants:!1}}}),j.a]]}),t})();s.a.production&&Object(n.V)(),r.c().bootstrapModule(M).catch(t=>console.error(t))},zn8P:function(t,e){function i(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id="zn8P"},zx2A:function(t,e,i){"use strict";i.d(e,"a",function(){return a}),i.d(e,"b",function(){return o}),i.d(e,"c",function(){return l});var n=i("7o/Q"),s=i("HDdC"),r=i("SeVD");class a extends n.a{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class o extends n.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function l(t,e){if(!e.closed)return t instanceof s.a?t.subscribe(e):Object(r.a)(t)(e)}}},[[0,0]]]); \ No newline at end of file diff --git a/dist/runtime.f6713de41b003747b63a.js b/dist/runtime.7d1aefe9ee6af29ff20f.js similarity index 95% rename from dist/runtime.f6713de41b003747b63a.js rename to dist/runtime.7d1aefe9ee6af29ff20f.js index 393dc6a9..9573dbf6 100644 --- a/dist/runtime.f6713de41b003747b63a.js +++ b/dist/runtime.7d1aefe9ee6af29ff20f.js @@ -1 +1 @@ -!function(e){function r(r){for(var n,c,u=r[0],f=r[1],i=r[2],d=0,p=[];d